Modified: ranger/site/trunk/apidocs/security-admin-web.rb URL: http://svn.apache.org/viewvc/ranger/site/trunk/apidocs/security-admin-web.rb?rev=1818327&r1=1818326&r2=1818327&view=diff ============================================================================== --- ranger/site/trunk/apidocs/security-admin-web.rb (original) +++ ranger/site/trunk/apidocs/security-admin-web.rb Fri Dec 15 20:27:30 2017 @@ -81,573 +81,581 @@ module Apache module Ranger -module Plugin +module Common -module Model +module View # (no documentation provided) - class RangerEnumElementDef + class ViewBaseBean - # (no documentation provided) - attr_accessor :name - # (no documentation provided) - attr_accessor :rbKeyLabel - # (no documentation provided) - attr_accessor :itemId - # (no documentation provided) - attr_accessor :label - # the json hash for this RangerEnumElementDef + # the json hash for this ViewBaseBean def to_jaxb_json_hash _h = {} - _h['name'] = name.to_jaxb_json_hash unless name.nil? - _h['rbKeyLabel'] = rbKeyLabel.to_jaxb_json_hash unless rbKeyLabel.nil? - _h['itemId'] = itemId.to_jaxb_json_hash unless itemId.nil? - _h['label'] = label.to_jaxb_json_hash unless label.nil? return _h end - # the json (string form) for this RangerEnumElementDef + # the json (string form) for this ViewBaseBean def to_json to_jaxb_json_hash.to_json end - #initializes this RangerEnumElementDef with a json hash + #initializes this ViewBaseBean with a json hash def init_jaxb_json_hash(_o) - if !_o['name'].nil? - _oa = _o['name'] + 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 View + + # (no documentation provided) + class VXTrxLog < Org::Apache::Ranger::View::VXDataObject + + # Name of the class to which the object id belongs to + # This attribute is of type enum CommonEnums::ClassTypes + attr_accessor :objectClassType + # Id of the object to which this notes refers to + attr_accessor :objectId + # Object Id of the parent object + attr_accessor :parentObjectId + # Object Class Type of the parent object + attr_accessor :parentObjectClassType + # Name of the parent object name that was changed + attr_accessor :parentObjectName + # Name of the object name that was changed + attr_accessor :objectName + # Name of the attribute that was changed + attr_accessor :attributeName + # Previous value + attr_accessor :previousValue + # New value + attr_accessor :newValue + # Transaction id + attr_accessor :transactionId + # Action of the transaction + attr_accessor :action + # Session Id + attr_accessor :sessionId + # Request Id + attr_accessor :requestId + # Session Type + attr_accessor :sessionType + + # the json hash for this VXTrxLog + def to_jaxb_json_hash + _h = super + _h['objectClassType'] = objectClassType.to_jaxb_json_hash unless objectClassType.nil? + _h['objectId'] = objectId.to_jaxb_json_hash unless objectId.nil? + _h['parentObjectId'] = parentObjectId.to_jaxb_json_hash unless parentObjectId.nil? + _h['parentObjectClassType'] = parentObjectClassType.to_jaxb_json_hash unless parentObjectClassType.nil? + _h['parentObjectName'] = parentObjectName.to_jaxb_json_hash unless parentObjectName.nil? + _h['objectName'] = objectName.to_jaxb_json_hash unless objectName.nil? + _h['attributeName'] = attributeName.to_jaxb_json_hash unless attributeName.nil? + _h['previousValue'] = previousValue.to_jaxb_json_hash unless previousValue.nil? + _h['newValue'] = newValue.to_jaxb_json_hash unless newValue.nil? + _h['transactionId'] = transactionId.to_jaxb_json_hash unless transactionId.nil? + _h['action'] = action.to_jaxb_json_hash unless action.nil? + _h['sessionId'] = sessionId.to_jaxb_json_hash unless sessionId.nil? + _h['requestId'] = requestId.to_jaxb_json_hash unless requestId.nil? + _h['sessionType'] = sessionType.to_jaxb_json_hash unless sessionType.nil? + return _h + end + + #initializes this VXTrxLog with a json hash + def init_jaxb_json_hash(_o) + super _o + if !_o['objectClassType'].nil? + _oa = _o['objectClassType'] if(_oa.is_a? Hash) - @name = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @name = String.from_json(_oa) unless _oa['@class'] + @objectClassType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @objectClassType = Fixnum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @name = Array.new + @objectClassType = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @name.push String.from_json(_item) + @objectClassType.push Fixnum.from_json(_item) else - @name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @objectClassType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @name = _oa + @objectClassType = _oa end end - if !_o['rbKeyLabel'].nil? - _oa = _o['rbKeyLabel'] + if !_o['objectId'].nil? + _oa = _o['objectId'] if(_oa.is_a? Hash) - @rbKeyLabel = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @rbKeyLabel = String.from_json(_oa) unless _oa['@class'] + @objectId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @objectId = Bignum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @rbKeyLabel = Array.new + @objectId = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @rbKeyLabel.push String.from_json(_item) + @objectId.push Bignum.from_json(_item) else - @rbKeyLabel.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @objectId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @rbKeyLabel = _oa + @objectId = _oa end end - if !_o['itemId'].nil? - _oa = _o['itemId'] + if !_o['parentObjectId'].nil? + _oa = _o['parentObjectId'] if(_oa.is_a? Hash) - @itemId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @itemId = Bignum.from_json(_oa) unless _oa['@class'] + @parentObjectId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @parentObjectId = Bignum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @itemId = Array.new + @parentObjectId = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @itemId.push Bignum.from_json(_item) + @parentObjectId.push Bignum.from_json(_item) else - @itemId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @parentObjectId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @itemId = _oa + @parentObjectId = _oa end end - if !_o['label'].nil? - _oa = _o['label'] + if !_o['parentObjectClassType'].nil? + _oa = _o['parentObjectClassType'] if(_oa.is_a? Hash) - @label = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @label = String.from_json(_oa) unless _oa['@class'] + @parentObjectClassType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @parentObjectClassType = Fixnum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @label = Array.new + @parentObjectClassType = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @label.push String.from_json(_item) + @parentObjectClassType.push Fixnum.from_json(_item) else - @label.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @parentObjectClassType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @label = _oa + @parentObjectClassType = _oa end end - end - - # constructs a RangerEnumElementDef 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 VXAuthSessionList < Org::Apache::Ranger::Common::View::VList - - # (no documentation provided) - attr_accessor :vXAuthSessions - - # the json hash for this VXAuthSessionList - def to_jaxb_json_hash - _h = super - if !vXAuthSessions.nil? - _ha = Array.new - vXAuthSessions.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['vXAuthSessions'] = _ha - end - return _h - end - - #initializes this VXAuthSessionList with a json hash - def init_jaxb_json_hash(_o) - super _o - if !_o['vXAuthSessions'].nil? - _oa = _o['vXAuthSessions'] + if !_o['parentObjectName'].nil? + _oa = _o['parentObjectName'] if(_oa.is_a? Hash) - @vXAuthSessions = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @vXAuthSessions = Org::Apache::Ranger::View::VXAuthSession.from_json(_oa) unless _oa['@class'] + @parentObjectName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @parentObjectName = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @vXAuthSessions = Array.new + @parentObjectName = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @vXAuthSessions.push Org::Apache::Ranger::View::VXAuthSession.from_json(_item) + @parentObjectName.push String.from_json(_item) else - @vXAuthSessions.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @parentObjectName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @vXAuthSessions = _oa + @parentObjectName = _oa end end - end - - # constructs a VXAuthSessionList 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 Ranger - -module View - - # (no documentation provided) - class VXPolicy < Org::Apache::Ranger::View::VXDataObject - - # PolicyName - attr_accessor :policyName - # resourceName - attr_accessor :resourceName - # Description - attr_accessor :description - # Repository Name - attr_accessor :repositoryName - # Repository Type - attr_accessor :repositoryType - # List of permissions maps - attr_accessor :permMapList - # Tables - attr_accessor :tables - # Column families - attr_accessor :columnFamilies - # Columns - attr_accessor :columns - # Databases - attr_accessor :databases - # UDFs - attr_accessor :udfs - # Table Type - attr_accessor :tableType - # Resource ColumnType - attr_accessor :columnType - # Topologoies - attr_accessor :topologies - # Services - attr_accessor :services - # Resource/Policy Status, boolean values : true/false - attr_accessor :isEnabled - # Is recursive This attribute is of type enum CommonEnums::BooleanValue - attr_accessor :isRecursive - # Audit is enable or not. - attr_accessor :isAuditEnabled - # Version No of Project - attr_accessor :version - # (no documentation provided) - attr_accessor :grantor - # (no documentation provided) - attr_accessor :replacePerm - - # the json hash for this VXPolicy - def to_jaxb_json_hash - _h = super - _h['policyName'] = policyName.to_jaxb_json_hash unless policyName.nil? - _h['resourceName'] = resourceName.to_jaxb_json_hash unless resourceName.nil? - _h['description'] = description.to_jaxb_json_hash unless description.nil? - _h['repositoryName'] = repositoryName.to_jaxb_json_hash unless repositoryName.nil? - _h['repositoryType'] = repositoryType.to_jaxb_json_hash unless repositoryType.nil? - if !permMapList.nil? - _ha = Array.new - permMapList.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['permMapList'] = _ha - end - _h['tables'] = tables.to_jaxb_json_hash unless tables.nil? - _h['columnFamilies'] = columnFamilies.to_jaxb_json_hash unless columnFamilies.nil? - _h['columns'] = columns.to_jaxb_json_hash unless columns.nil? - _h['databases'] = databases.to_jaxb_json_hash unless databases.nil? - _h['udfs'] = udfs.to_jaxb_json_hash unless udfs.nil? - _h['tableType'] = tableType.to_jaxb_json_hash unless tableType.nil? - _h['columnType'] = columnType.to_jaxb_json_hash unless columnType.nil? - _h['topologies'] = topologies.to_jaxb_json_hash unless topologies.nil? - _h['services'] = services.to_jaxb_json_hash unless services.nil? - _h['isEnabled'] = isEnabled.to_jaxb_json_hash unless isEnabled.nil? - _h['isRecursive'] = isRecursive.to_jaxb_json_hash unless isRecursive.nil? - _h['isAuditEnabled'] = isAuditEnabled.to_jaxb_json_hash unless isAuditEnabled.nil? - _h['version'] = version.to_jaxb_json_hash unless version.nil? - _h['grantor'] = grantor.to_jaxb_json_hash unless grantor.nil? - _h['replacePerm'] = replacePerm.to_jaxb_json_hash unless replacePerm.nil? - return _h - end - - #initializes this VXPolicy with a json hash - def init_jaxb_json_hash(_o) - super _o - if !_o['policyName'].nil? - _oa = _o['policyName'] + if !_o['objectName'].nil? + _oa = _o['objectName'] if(_oa.is_a? Hash) - @policyName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @policyName = String.from_json(_oa) unless _oa['@class'] + @objectName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @objectName = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @policyName = Array.new + @objectName = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @policyName.push String.from_json(_item) + @objectName.push String.from_json(_item) else - @policyName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @objectName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @policyName = _oa + @objectName = _oa end end - if !_o['resourceName'].nil? - _oa = _o['resourceName'] + if !_o['attributeName'].nil? + _oa = _o['attributeName'] if(_oa.is_a? Hash) - @resourceName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @resourceName = String.from_json(_oa) unless _oa['@class'] + @attributeName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @attributeName = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @resourceName = Array.new + @attributeName = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @resourceName.push String.from_json(_item) + @attributeName.push String.from_json(_item) else - @resourceName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @attributeName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @resourceName = _oa + @attributeName = _oa end end - if !_o['description'].nil? - _oa = _o['description'] + if !_o['previousValue'].nil? + _oa = _o['previousValue'] if(_oa.is_a? Hash) - @description = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @description = String.from_json(_oa) unless _oa['@class'] + @previousValue = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @previousValue = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @description = Array.new + @previousValue = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @description.push String.from_json(_item) + @previousValue.push String.from_json(_item) else - @description.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @previousValue.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @description = _oa + @previousValue = _oa end end - if !_o['repositoryName'].nil? - _oa = _o['repositoryName'] + if !_o['newValue'].nil? + _oa = _o['newValue'] if(_oa.is_a? Hash) - @repositoryName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @repositoryName = String.from_json(_oa) unless _oa['@class'] + @newValue = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @newValue = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @repositoryName = Array.new + @newValue = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @repositoryName.push String.from_json(_item) + @newValue.push String.from_json(_item) else - @repositoryName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @newValue.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @repositoryName = _oa + @newValue = _oa end end - if !_o['repositoryType'].nil? - _oa = _o['repositoryType'] + if !_o['transactionId'].nil? + _oa = _o['transactionId'] if(_oa.is_a? Hash) - @repositoryType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @repositoryType = String.from_json(_oa) unless _oa['@class'] + @transactionId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @transactionId = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @repositoryType = Array.new + @transactionId = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @repositoryType.push String.from_json(_item) + @transactionId.push String.from_json(_item) else - @repositoryType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @transactionId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @repositoryType = _oa + @transactionId = _oa end end - if !_o['permMapList'].nil? - _oa = _o['permMapList'] + if !_o['action'].nil? + _oa = _o['action'] if(_oa.is_a? Hash) - @permMapList = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @permMapList = Org::Apache::Ranger::View::VXPermObj.from_json(_oa) unless _oa['@class'] + @action = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @action = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @permMapList = Array.new + @action = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @permMapList.push Org::Apache::Ranger::View::VXPermObj.from_json(_item) + @action.push String.from_json(_item) else - @permMapList.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @action.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @permMapList = _oa + @action = _oa end end - if !_o['tables'].nil? - _oa = _o['tables'] + if !_o['sessionId'].nil? + _oa = _o['sessionId'] if(_oa.is_a? Hash) - @tables = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @tables = String.from_json(_oa) unless _oa['@class'] + @sessionId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @sessionId = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @tables = Array.new + @sessionId = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @tables.push String.from_json(_item) + @sessionId.push String.from_json(_item) else - @tables.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @sessionId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @tables = _oa + @sessionId = _oa end end - if !_o['columnFamilies'].nil? - _oa = _o['columnFamilies'] + if !_o['requestId'].nil? + _oa = _o['requestId'] if(_oa.is_a? Hash) - @columnFamilies = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @columnFamilies = String.from_json(_oa) unless _oa['@class'] + @requestId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @requestId = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @columnFamilies = Array.new + @requestId = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @columnFamilies.push String.from_json(_item) + @requestId.push String.from_json(_item) else - @columnFamilies.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @requestId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @columnFamilies = _oa + @requestId = _oa end end - if !_o['columns'].nil? - _oa = _o['columns'] + if !_o['sessionType'].nil? + _oa = _o['sessionType'] if(_oa.is_a? Hash) - @columns = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @columns = String.from_json(_oa) unless _oa['@class'] + @sessionType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @sessionType = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @columns = Array.new + @sessionType = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @columns.push String.from_json(_item) + @sessionType.push String.from_json(_item) else - @columns.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @sessionType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @columns = _oa + @sessionType = _oa end end - if !_o['databases'].nil? - _oa = _o['databases'] - if(_oa.is_a? Hash) - @databases = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @databases = String.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @databases = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @databases.push String.from_json(_item) - else - @databases.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @databases = _oa - end - end - if !_o['udfs'].nil? - _oa = _o['udfs'] + end + + # constructs a VXTrxLog 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 Ranger + +module Plugin + +module Model + + # (no documentation provided) + class RangerContextEnricherDef + + # (no documentation provided) + attr_accessor :itemId + # (no documentation provided) + attr_accessor :enricher + # (no documentation provided) + attr_accessor :enricherOptions + # (no documentation provided) + attr_accessor :name + + # the json hash for this RangerContextEnricherDef + def to_jaxb_json_hash + _h = {} + _h['itemId'] = itemId.to_jaxb_json_hash unless itemId.nil? + _h['enricher'] = enricher.to_jaxb_json_hash unless enricher.nil? + _h['enricherOptions'] = enricherOptions.to_jaxb_json_hash unless enricherOptions.nil? + _h['name'] = name.to_jaxb_json_hash unless name.nil? + return _h + end + + # the json (string form) for this RangerContextEnricherDef + def to_json + to_jaxb_json_hash.to_json + end + + #initializes this RangerContextEnricherDef with a json hash + def init_jaxb_json_hash(_o) + if !_o['itemId'].nil? + _oa = _o['itemId'] if(_oa.is_a? Hash) - @udfs = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @udfs = 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 - @udfs = Array.new + @itemId = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @udfs.push String.from_json(_item) + @itemId.push Bignum.from_json(_item) else - @udfs.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @itemId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @udfs = _oa + @itemId = _oa end end - if !_o['tableType'].nil? - _oa = _o['tableType'] + if !_o['enricher'].nil? + _oa = _o['enricher'] if(_oa.is_a? Hash) - @tableType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @tableType = String.from_json(_oa) unless _oa['@class'] + @enricher = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @enricher = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @tableType = Array.new + @enricher = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @tableType.push String.from_json(_item) + @enricher.push String.from_json(_item) else - @tableType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @enricher.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @tableType = _oa + @enricher = _oa end end - if !_o['columnType'].nil? - _oa = _o['columnType'] + if !_o['enricherOptions'].nil? + _oa = _o['enricherOptions'] if(_oa.is_a? Hash) - @columnType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @columnType = String.from_json(_oa) unless _oa['@class'] + @enricherOptions = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @enricherOptions = Hash.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @columnType = Array.new + @enricherOptions = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @columnType.push String.from_json(_item) + @enricherOptions.push Hash.from_json(_item) else - @columnType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @enricherOptions.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @columnType = _oa + @enricherOptions = _oa end end - if !_o['topologies'].nil? - _oa = _o['topologies'] + if !_o['name'].nil? + _oa = _o['name'] if(_oa.is_a? Hash) - @topologies = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @topologies = 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 - @topologies = Array.new + @name = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @topologies.push String.from_json(_item) + @name.push String.from_json(_item) else - @topologies.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @topologies = _oa + @name = _oa end end + end + + # constructs a RangerContextEnricherDef 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 RangerServiceList < Org::Apache::Ranger::Common::View::VList + + # (no documentation provided) + attr_accessor :services + + # the json hash for this RangerServiceList + def to_jaxb_json_hash + _h = super + if !services.nil? + _ha = Array.new + services.each { | _item | _ha.push _item.to_jaxb_json_hash } + _h['services'] = _ha + end + return _h + end + + #initializes this RangerServiceList with a json hash + def init_jaxb_json_hash(_o) + super _o if !_o['services'].nil? _oa = _o['services'] if(_oa.is_a? Hash) @services = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @services = String.from_json(_oa) unless _oa['@class'] + @services = Org::Apache::Ranger::Plugin::Model::RangerService.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar @services = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @services.push String.from_json(_item) + @services.push Org::Apache::Ranger::Plugin::Model::RangerService.from_json(_item) else @services.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end @@ -656,123 +664,9 @@ module View @services = _oa end end - if !_o['isEnabled'].nil? - _oa = _o['isEnabled'] - if(_oa.is_a? Hash) - @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 - @isEnabled = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @isEnabled.push Boolean.from_json(_item) - else - @isEnabled.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @isEnabled = _oa - end - end - if !_o['isRecursive'].nil? - _oa = _o['isRecursive'] - if(_oa.is_a? Hash) - @isRecursive = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @isRecursive = Boolean.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @isRecursive = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @isRecursive.push Boolean.from_json(_item) - else - @isRecursive.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @isRecursive = _oa - end - end - if !_o['isAuditEnabled'].nil? - _oa = _o['isAuditEnabled'] - if(_oa.is_a? Hash) - @isAuditEnabled = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @isAuditEnabled = Boolean.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @isAuditEnabled = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @isAuditEnabled.push Boolean.from_json(_item) - else - @isAuditEnabled.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @isAuditEnabled = _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['grantor'].nil? - _oa = _o['grantor'] - if(_oa.is_a? Hash) - @grantor = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @grantor = String.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @grantor = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @grantor.push String.from_json(_item) - else - @grantor.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @grantor = _oa - end - end - if !_o['replacePerm'].nil? - _oa = _o['replacePerm'] - if(_oa.is_a? Hash) - @replacePerm = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @replacePerm = Boolean.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @replacePerm = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @replacePerm.push Boolean.from_json(_item) - else - @replacePerm.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @replacePerm = _oa - end - end end - # constructs a VXPolicy from a (parsed) JSON hash + # constructs a RangerServiceList from a (parsed) JSON hash def self.from_json(o) if o.nil? return nil @@ -800,204 +694,186 @@ module Ranger module Plugin -module Model +module Util # (no documentation provided) - class RangerBaseModelObject + class TagPolicies # (no documentation provided) - attr_accessor :isEnabled - # (no documentation provided) - attr_accessor :version + attr_accessor :serviceName # (no documentation provided) - attr_accessor :updatedBy + attr_accessor :policies # (no documentation provided) - attr_accessor :createTime + attr_accessor :serviceId # (no documentation provided) - attr_accessor :id + attr_accessor :serviceDef # (no documentation provided) - attr_accessor :createdBy + attr_accessor :policyUpdateTime # (no documentation provided) - attr_accessor :updateTime + attr_accessor :auditMode # (no documentation provided) - attr_accessor :guid + attr_accessor :policyVersion - # the json hash for this RangerBaseModelObject + # the json hash for this TagPolicies def to_jaxb_json_hash _h = {} - _h['isEnabled'] = isEnabled.to_jaxb_json_hash unless isEnabled.nil? - _h['version'] = version.to_jaxb_json_hash unless version.nil? - _h['updatedBy'] = updatedBy.to_jaxb_json_hash unless updatedBy.nil? - _h['createTime'] = createTime.to_jaxb_json_hash unless createTime.nil? - _h['id'] = id.to_jaxb_json_hash unless id.nil? - _h['createdBy'] = createdBy.to_jaxb_json_hash unless createdBy.nil? - _h['updateTime'] = updateTime.to_jaxb_json_hash unless updateTime.nil? - _h['guid'] = guid.to_jaxb_json_hash unless guid.nil? + _h['serviceName'] = serviceName.to_jaxb_json_hash unless serviceName.nil? + if !policies.nil? + _ha = Array.new + policies.each { | _item | _ha.push _item.to_jaxb_json_hash } + _h['policies'] = _ha + end + _h['serviceId'] = serviceId.to_jaxb_json_hash unless serviceId.nil? + _h['serviceDef'] = serviceDef.to_jaxb_json_hash unless serviceDef.nil? + _h['policyUpdateTime'] = policyUpdateTime.to_jaxb_json_hash unless policyUpdateTime.nil? + _h['auditMode'] = auditMode.to_jaxb_json_hash unless auditMode.nil? + _h['policyVersion'] = policyVersion.to_jaxb_json_hash unless policyVersion.nil? return _h end - # the json (string form) for this RangerBaseModelObject + # the json (string form) for this TagPolicies def to_json to_jaxb_json_hash.to_json end - #initializes this RangerBaseModelObject with a json hash + #initializes this TagPolicies with a json hash def init_jaxb_json_hash(_o) - if !_o['isEnabled'].nil? - _oa = _o['isEnabled'] - if(_oa.is_a? Hash) - @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 - @isEnabled = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @isEnabled.push Boolean.from_json(_item) - else - @isEnabled.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @isEnabled = _oa - end - end - if !_o['version'].nil? - _oa = _o['version'] + if !_o['serviceName'].nil? + _oa = _o['serviceName'] if(_oa.is_a? Hash) - @version = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @version = 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 - @version = Array.new + @serviceName = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @version.push Bignum.from_json(_item) + @serviceName.push String.from_json(_item) else - @version.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @serviceName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @version = _oa + @serviceName = _oa end end - if !_o['updatedBy'].nil? - _oa = _o['updatedBy'] + if !_o['policies'].nil? + _oa = _o['policies'] if(_oa.is_a? Hash) - @updatedBy = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @updatedBy = String.from_json(_oa) unless _oa['@class'] + @policies = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @policies = Org::Apache::Ranger::Plugin::Model::RangerPolicy.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @updatedBy = Array.new + @policies = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @updatedBy.push String.from_json(_item) + @policies.push Org::Apache::Ranger::Plugin::Model::RangerPolicy.from_json(_item) else - @updatedBy.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @policies.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @updatedBy = _oa + @policies = _oa end end - if !_o['createTime'].nil? - _oa = _o['createTime'] + if !_o['serviceId'].nil? + _oa = _o['serviceId'] if(_oa.is_a? Hash) - @createTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @createTime = Time.from_json(_oa) unless _oa['@class'] + @serviceId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @serviceId = Bignum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @createTime = Array.new + @serviceId = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @createTime.push Time.from_json(_item) + @serviceId.push Bignum.from_json(_item) else - @createTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @serviceId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @createTime = _oa + @serviceId = _oa end end - if !_o['id'].nil? - _oa = _o['id'] + if !_o['serviceDef'].nil? + _oa = _o['serviceDef'] if(_oa.is_a? Hash) - @id = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @id = Bignum.from_json(_oa) unless _oa['@class'] + @serviceDef = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @serviceDef = Org::Apache::Ranger::Plugin::Model::RangerServiceDef.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @id = Array.new + @serviceDef = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @id.push Bignum.from_json(_item) + @serviceDef.push Org::Apache::Ranger::Plugin::Model::RangerServiceDef.from_json(_item) else - @id.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @serviceDef.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @id = _oa + @serviceDef = _oa end end - if !_o['createdBy'].nil? - _oa = _o['createdBy'] + if !_o['policyUpdateTime'].nil? + _oa = _o['policyUpdateTime'] if(_oa.is_a? Hash) - @createdBy = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @createdBy = String.from_json(_oa) unless _oa['@class'] + @policyUpdateTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @policyUpdateTime = Time.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @createdBy = Array.new + @policyUpdateTime = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @createdBy.push String.from_json(_item) + @policyUpdateTime.push Time.from_json(_item) else - @createdBy.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @policyUpdateTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @createdBy = _oa + @policyUpdateTime = _oa end end - if !_o['updateTime'].nil? - _oa = _o['updateTime'] + if !_o['auditMode'].nil? + _oa = _o['auditMode'] if(_oa.is_a? Hash) - @updateTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @updateTime = Time.from_json(_oa) unless _oa['@class'] + @auditMode = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @auditMode = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @updateTime = Array.new + @auditMode = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @updateTime.push Time.from_json(_item) + @auditMode.push String.from_json(_item) else - @updateTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @auditMode.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @updateTime = _oa + @auditMode = _oa end end - if !_o['guid'].nil? - _oa = _o['guid'] + if !_o['policyVersion'].nil? + _oa = _o['policyVersion'] if(_oa.is_a? Hash) - @guid = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @guid = String.from_json(_oa) unless _oa['@class'] + @policyVersion = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @policyVersion = Bignum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @guid = Array.new + @policyVersion = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @guid.push String.from_json(_item) + @policyVersion.push Bignum.from_json(_item) else - @guid.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @policyVersion.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @guid = _oa + @policyVersion = _oa end end end - # constructs a RangerBaseModelObject from a (parsed) JSON hash + # constructs a TagPolicies from a (parsed) JSON hash def self.from_json(o) if o.nil? return nil @@ -1028,131 +904,125 @@ module Ranger module View # (no documentation provided) - class VXMessage < Org::Apache::Ranger::Common::View::ViewBaseBean + class VXPermObj - # Message key - attr_accessor :name - # Resource bundle key - attr_accessor :rbKey - # Message description. Use rbKey for doing localized lookup - attr_accessor :message - # Id of the object to which this message is related to - attr_accessor :objectId - # Name of the field or attribute to which this message is related to - attr_accessor :fieldName + # List of userName + attr_accessor :userList + # List of groupName + attr_accessor :groupList + # List of permission + attr_accessor :permList + # IP address for groups + attr_accessor :ipAddress - # the json hash for this VXMessage + # the json hash for this VXPermObj def to_jaxb_json_hash - _h = super - _h['name'] = name.to_jaxb_json_hash unless name.nil? - _h['rbKey'] = rbKey.to_jaxb_json_hash unless rbKey.nil? - _h['message'] = message.to_jaxb_json_hash unless message.nil? - _h['objectId'] = objectId.to_jaxb_json_hash unless objectId.nil? - _h['fieldName'] = fieldName.to_jaxb_json_hash unless fieldName.nil? - return _h - end - - #initializes this VXMessage with a json hash + _h = {} + if !userList.nil? + _ha = Array.new + userList.each { | _item | _ha.push _item.to_jaxb_json_hash } + _h['userList'] = _ha + end + if !groupList.nil? + _ha = Array.new + groupList.each { | _item | _ha.push _item.to_jaxb_json_hash } + _h['groupList'] = _ha + end + if !permList.nil? + _ha = Array.new + permList.each { | _item | _ha.push _item.to_jaxb_json_hash } + _h['permList'] = _ha + end + _h['ipAddress'] = ipAddress.to_jaxb_json_hash unless ipAddress.nil? + return _h + end + + # the json (string form) for this VXPermObj + def to_json + to_jaxb_json_hash.to_json + end + + #initializes this VXPermObj with a json hash def init_jaxb_json_hash(_o) - super _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['rbKey'].nil? - _oa = _o['rbKey'] + if !_o['userList'].nil? + _oa = _o['userList'] if(_oa.is_a? Hash) - @rbKey = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @rbKey = String.from_json(_oa) unless _oa['@class'] + @userList = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @userList = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @rbKey = Array.new + @userList = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @rbKey.push String.from_json(_item) + @userList.push String.from_json(_item) else - @rbKey.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @userList.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @rbKey = _oa + @userList = _oa end end - if !_o['message'].nil? - _oa = _o['message'] + if !_o['groupList'].nil? + _oa = _o['groupList'] if(_oa.is_a? Hash) - @message = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @message = String.from_json(_oa) unless _oa['@class'] + @groupList = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @groupList = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @message = Array.new + @groupList = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @message.push String.from_json(_item) + @groupList.push String.from_json(_item) else - @message.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @groupList.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @message = _oa + @groupList = _oa end end - if !_o['objectId'].nil? - _oa = _o['objectId'] + if !_o['permList'].nil? + _oa = _o['permList'] if(_oa.is_a? Hash) - @objectId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @objectId = Bignum.from_json(_oa) unless _oa['@class'] + @permList = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @permList = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @objectId = Array.new + @permList = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @objectId.push Bignum.from_json(_item) + @permList.push String.from_json(_item) else - @objectId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @permList.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @objectId = _oa + @permList = _oa end end - if !_o['fieldName'].nil? - _oa = _o['fieldName'] + if !_o['ipAddress'].nil? + _oa = _o['ipAddress'] if(_oa.is_a? Hash) - @fieldName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @fieldName = 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 - @fieldName = Array.new + @ipAddress = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @fieldName.push String.from_json(_item) + @ipAddress.push String.from_json(_item) else - @fieldName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @ipAddress.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @fieldName = _oa + @ipAddress = _oa end end end - # constructs a VXMessage from a (parsed) JSON hash + # constructs a VXPermObj from a (parsed) JSON hash def self.from_json(o) if o.nil? return nil @@ -1181,399 +1051,288 @@ module Ranger module View # (no documentation provided) - class VXPortalUserList < Org::Apache::Ranger::Common::View::VList + class VXPermMap < Org::Apache::Ranger::View::VXDataObject - # (no documentation provided) - attr_accessor :vXPortalUsers + # Group to which the permission belongs to + attr_accessor :permGroup + # Id of the resource + attr_accessor :resourceId + # Id of the group + attr_accessor :groupId + # Id of the user + attr_accessor :userId + # Permission for user or group + # This attribute is of type enum CommonEnums::XAPermForType + attr_accessor :permFor + # Type of permission + # This attribute is of type enum CommonEnums::XAPermType + attr_accessor :permType + # Grant is true and revoke is false + attr_accessor :grantOrRevoke + # Name of the group + attr_accessor :groupName + # Name of the user + attr_accessor :userName + # Is recursive + # This attribute is of type enum CommonEnums::BooleanValue + attr_accessor :isRecursive + # Is wild card + attr_accessor :isWildCard + # IP address for groups + attr_accessor :ipAddress - # the json hash for this VXPortalUserList + # the json hash for this VXPermMap def to_jaxb_json_hash _h = super - if !vXPortalUsers.nil? - _ha = Array.new - vXPortalUsers.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['vXPortalUsers'] = _ha - end + _h['permGroup'] = permGroup.to_jaxb_json_hash unless permGroup.nil? + _h['resourceId'] = resourceId.to_jaxb_json_hash unless resourceId.nil? + _h['groupId'] = groupId.to_jaxb_json_hash unless groupId.nil? + _h['userId'] = userId.to_jaxb_json_hash unless userId.nil? + _h['permFor'] = permFor.to_jaxb_json_hash unless permFor.nil? + _h['permType'] = permType.to_jaxb_json_hash unless permType.nil? + _h['grantOrRevoke'] = grantOrRevoke.to_jaxb_json_hash unless grantOrRevoke.nil? + _h['groupName'] = groupName.to_jaxb_json_hash unless groupName.nil? + _h['userName'] = userName.to_jaxb_json_hash unless userName.nil? + _h['isRecursive'] = isRecursive.to_jaxb_json_hash unless isRecursive.nil? + _h['isWildCard'] = isWildCard.to_jaxb_json_hash unless isWildCard.nil? + _h['ipAddress'] = ipAddress.to_jaxb_json_hash unless ipAddress.nil? return _h end - #initializes this VXPortalUserList with a json hash + #initializes this VXPermMap with a json hash def init_jaxb_json_hash(_o) super _o - if !_o['vXPortalUsers'].nil? - _oa = _o['vXPortalUsers'] + if !_o['permGroup'].nil? + _oa = _o['permGroup'] if(_oa.is_a? Hash) - @vXPortalUsers = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @vXPortalUsers = Org::Apache::Ranger::View::VXPortalUser.from_json(_oa) unless _oa['@class'] + @permGroup = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @permGroup = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @vXPortalUsers = Array.new + @permGroup = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @vXPortalUsers.push Org::Apache::Ranger::View::VXPortalUser.from_json(_item) + @permGroup.push String.from_json(_item) else - @vXPortalUsers.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @permGroup.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @vXPortalUsers = _oa + @permGroup = _oa end end - end - - # constructs a VXPortalUserList 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 Ranger - -module View - - # (no documentation provided) - class VXTrxLog < Org::Apache::Ranger::View::VXDataObject - - # Name of the class to which the object id belongs to - # This attribute is of type enum CommonEnums::ClassTypes - attr_accessor :objectClassType - # Id of the object to which this notes refers to - attr_accessor :objectId - # Object Id of the parent object - attr_accessor :parentObjectId - # Object Class Type of the parent object - attr_accessor :parentObjectClassType - # Name of the parent object name that was changed - attr_accessor :parentObjectName - # Name of the object name that was changed - attr_accessor :objectName - # Name of the attribute that was changed - attr_accessor :attributeName - # Previous value - attr_accessor :previousValue - # New value - attr_accessor :newValue - # Transaction id - attr_accessor :transactionId - # Action of the transaction - attr_accessor :action - # Session Id - attr_accessor :sessionId - # Request Id - attr_accessor :requestId - # Session Type - attr_accessor :sessionType - - # the json hash for this VXTrxLog - def to_jaxb_json_hash - _h = super - _h['objectClassType'] = objectClassType.to_jaxb_json_hash unless objectClassType.nil? - _h['objectId'] = objectId.to_jaxb_json_hash unless objectId.nil? - _h['parentObjectId'] = parentObjectId.to_jaxb_json_hash unless parentObjectId.nil? - _h['parentObjectClassType'] = parentObjectClassType.to_jaxb_json_hash unless parentObjectClassType.nil? - _h['parentObjectName'] = parentObjectName.to_jaxb_json_hash unless parentObjectName.nil? - _h['objectName'] = objectName.to_jaxb_json_hash unless objectName.nil? - _h['attributeName'] = attributeName.to_jaxb_json_hash unless attributeName.nil? - _h['previousValue'] = previousValue.to_jaxb_json_hash unless previousValue.nil? - _h['newValue'] = newValue.to_jaxb_json_hash unless newValue.nil? - _h['transactionId'] = transactionId.to_jaxb_json_hash unless transactionId.nil? - _h['action'] = action.to_jaxb_json_hash unless action.nil? - _h['sessionId'] = sessionId.to_jaxb_json_hash unless sessionId.nil? - _h['requestId'] = requestId.to_jaxb_json_hash unless requestId.nil? - _h['sessionType'] = sessionType.to_jaxb_json_hash unless sessionType.nil? - return _h - end - - #initializes this VXTrxLog with a json hash - def init_jaxb_json_hash(_o) - super _o - if !_o['objectClassType'].nil? - _oa = _o['objectClassType'] - if(_oa.is_a? Hash) - @objectClassType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @objectClassType = Fixnum.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @objectClassType = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @objectClassType.push Fixnum.from_json(_item) - else - @objectClassType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @objectClassType = _oa - end - end - if !_o['objectId'].nil? - _oa = _o['objectId'] - if(_oa.is_a? Hash) - @objectId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @objectId = Bignum.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @objectId = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @objectId.push Bignum.from_json(_item) - else - @objectId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @objectId = _oa - end - end - if !_o['parentObjectId'].nil? - _oa = _o['parentObjectId'] - if(_oa.is_a? Hash) - @parentObjectId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @parentObjectId = Bignum.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @parentObjectId = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @parentObjectId.push Bignum.from_json(_item) - else - @parentObjectId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @parentObjectId = _oa - end - end - if !_o['parentObjectClassType'].nil? - _oa = _o['parentObjectClassType'] + if !_o['resourceId'].nil? + _oa = _o['resourceId'] if(_oa.is_a? Hash) - @parentObjectClassType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @parentObjectClassType = Fixnum.from_json(_oa) unless _oa['@class'] + @resourceId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @resourceId = Bignum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @parentObjectClassType = Array.new + @resourceId = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @parentObjectClassType.push Fixnum.from_json(_item) + @resourceId.push Bignum.from_json(_item) else - @parentObjectClassType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @resourceId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @parentObjectClassType = _oa + @resourceId = _oa end end - if !_o['parentObjectName'].nil? - _oa = _o['parentObjectName'] + if !_o['groupId'].nil? + _oa = _o['groupId'] if(_oa.is_a? Hash) - @parentObjectName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @parentObjectName = String.from_json(_oa) unless _oa['@class'] + @groupId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @groupId = Bignum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @parentObjectName = Array.new + @groupId = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @parentObjectName.push String.from_json(_item) + @groupId.push Bignum.from_json(_item) else - @parentObjectName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @groupId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @parentObjectName = _oa + @groupId = _oa end end - if !_o['objectName'].nil? - _oa = _o['objectName'] + if !_o['userId'].nil? + _oa = _o['userId'] if(_oa.is_a? Hash) - @objectName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @objectName = String.from_json(_oa) unless _oa['@class'] + @userId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @userId = Bignum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @objectName = Array.new + @userId = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @objectName.push String.from_json(_item) + @userId.push Bignum.from_json(_item) else - @objectName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @userId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @objectName = _oa + @userId = _oa end end - if !_o['attributeName'].nil? - _oa = _o['attributeName'] + if !_o['permFor'].nil? + _oa = _o['permFor'] if(_oa.is_a? Hash) - @attributeName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @attributeName = String.from_json(_oa) unless _oa['@class'] + @permFor = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @permFor = Fixnum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @attributeName = Array.new + @permFor = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @attributeName.push String.from_json(_item) + @permFor.push Fixnum.from_json(_item) else - @attributeName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @permFor.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @attributeName = _oa + @permFor = _oa end end - if !_o['previousValue'].nil? - _oa = _o['previousValue'] + if !_o['permType'].nil? + _oa = _o['permType'] if(_oa.is_a? Hash) - @previousValue = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @previousValue = String.from_json(_oa) unless _oa['@class'] + @permType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @permType = Fixnum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @previousValue = Array.new + @permType = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @previousValue.push String.from_json(_item) + @permType.push Fixnum.from_json(_item) else - @previousValue.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @permType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @previousValue = _oa + @permType = _oa end end - if !_o['newValue'].nil? - _oa = _o['newValue'] + if !_o['grantOrRevoke'].nil? + _oa = _o['grantOrRevoke'] if(_oa.is_a? Hash) - @newValue = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @newValue = String.from_json(_oa) unless _oa['@class'] + @grantOrRevoke = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @grantOrRevoke = Boolean.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @newValue = Array.new + @grantOrRevoke = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @newValue.push String.from_json(_item) + @grantOrRevoke.push Boolean.from_json(_item) else - @newValue.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @grantOrRevoke.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @newValue = _oa + @grantOrRevoke = _oa end end - if !_o['transactionId'].nil? - _oa = _o['transactionId'] + if !_o['groupName'].nil? + _oa = _o['groupName'] if(_oa.is_a? Hash) - @transactionId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @transactionId = String.from_json(_oa) unless _oa['@class'] + @groupName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @groupName = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @transactionId = Array.new + @groupName = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @transactionId.push String.from_json(_item) + @groupName.push String.from_json(_item) else - @transactionId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @groupName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @transactionId = _oa + @groupName = _oa end end - if !_o['action'].nil? - _oa = _o['action'] + if !_o['userName'].nil? + _oa = _o['userName'] if(_oa.is_a? Hash) - @action = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @action = String.from_json(_oa) unless _oa['@class'] + @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 - @action = Array.new + @userName = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @action.push String.from_json(_item) + @userName.push String.from_json(_item) else - @action.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @userName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @action = _oa + @userName = _oa end end - if !_o['sessionId'].nil? - _oa = _o['sessionId'] + if !_o['isRecursive'].nil? + _oa = _o['isRecursive'] if(_oa.is_a? Hash) - @sessionId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @sessionId = String.from_json(_oa) unless _oa['@class'] + @isRecursive = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @isRecursive = Fixnum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @sessionId = Array.new + @isRecursive = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @sessionId.push String.from_json(_item) + @isRecursive.push Fixnum.from_json(_item) else - @sessionId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @isRecursive.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @sessionId = _oa + @isRecursive = _oa end end - if !_o['requestId'].nil? - _oa = _o['requestId'] + if !_o['isWildCard'].nil? + _oa = _o['isWildCard'] if(_oa.is_a? Hash) - @requestId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @requestId = String.from_json(_oa) unless _oa['@class'] + @isWildCard = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @isWildCard = Boolean.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @requestId = Array.new + @isWildCard = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @requestId.push String.from_json(_item) + @isWildCard.push Boolean.from_json(_item) else - @requestId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @isWildCard.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @requestId = _oa + @isWildCard = _oa end end - if !_o['sessionType'].nil? - _oa = _o['sessionType'] + if !_o['ipAddress'].nil? + _oa = _o['ipAddress'] if(_oa.is_a? Hash) - @sessionType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @sessionType = 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 - @sessionType = Array.new + @ipAddress = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @sessionType.push String.from_json(_item) + @ipAddress.push String.from_json(_item) else - @sessionType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @ipAddress.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @sessionType = _oa + @ipAddress = _oa end end end - # constructs a VXTrxLog from a (parsed) JSON hash + # constructs a VXPermMap from a (parsed) JSON hash def self.from_json(o) if o.nil? return nil @@ -1599,365 +1358,203 @@ module Apache module Ranger -module Plugin - -module Model +module View # (no documentation provided) - class RangerPolicyConditionDef + class RangerPluginInfoList < Org::Apache::Ranger::Common::View::VList # (no documentation provided) - attr_accessor :name - # (no documentation provided) - attr_accessor :evaluatorOptions - # (no documentation provided) - attr_accessor :label - # (no documentation provided) - attr_accessor :rbKeyDescription - # (no documentation provided) - attr_accessor :description - # (no documentation provided) - attr_accessor :validationMessage - # (no documentation provided) - attr_accessor :rbKeyLabel - # (no documentation provided) - attr_accessor :itemId - # (no documentation provided) - attr_accessor :uiHint - # (no documentation provided) - attr_accessor :validationRegEx - # (no documentation provided) - attr_accessor :evaluator - # (no documentation provided) - attr_accessor :rbKeyValidationMessage + attr_accessor :pluginInfoList - # the json hash for this RangerPolicyConditionDef + # the json hash for this RangerPluginInfoList def to_jaxb_json_hash - _h = {} - _h['name'] = name.to_jaxb_json_hash unless name.nil? - _h['evaluatorOptions'] = evaluatorOptions.to_jaxb_json_hash unless evaluatorOptions.nil? - _h['label'] = label.to_jaxb_json_hash unless label.nil? - _h['rbKeyDescription'] = rbKeyDescription.to_jaxb_json_hash unless rbKeyDescription.nil? - _h['description'] = description.to_jaxb_json_hash unless description.nil? - _h['validationMessage'] = validationMessage.to_jaxb_json_hash unless validationMessage.nil? - _h['rbKeyLabel'] = rbKeyLabel.to_jaxb_json_hash unless rbKeyLabel.nil? - _h['itemId'] = itemId.to_jaxb_json_hash unless itemId.nil? - _h['uiHint'] = uiHint.to_jaxb_json_hash unless uiHint.nil? - _h['validationRegEx'] = validationRegEx.to_jaxb_json_hash unless validationRegEx.nil? - _h['evaluator'] = evaluator.to_jaxb_json_hash unless evaluator.nil? - _h['rbKeyValidationMessage'] = rbKeyValidationMessage.to_jaxb_json_hash unless rbKeyValidationMessage.nil? + _h = super + if !pluginInfoList.nil? + _ha = Array.new + pluginInfoList.each { | _item | _ha.push _item.to_jaxb_json_hash } + _h['pluginInfoList'] = _ha + end return _h end - # the json (string form) for this RangerPolicyConditionDef - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this RangerPolicyConditionDef with a json hash + #initializes this RangerPluginInfoList 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['evaluatorOptions'].nil? - _oa = _o['evaluatorOptions'] - if(_oa.is_a? Hash) - @evaluatorOptions = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @evaluatorOptions = Hash.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @evaluatorOptions = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @evaluatorOptions.push Hash.from_json(_item) - else - @evaluatorOptions.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @evaluatorOptions = _oa - end - end - if !_o['label'].nil? - _oa = _o['label'] + super _o + if !_o['pluginInfoList'].nil? + _oa = _o['pluginInfoList'] if(_oa.is_a? Hash) - @label = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @label = String.from_json(_oa) unless _oa['@class'] + @pluginInfoList = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @pluginInfoList = Org::Apache::Ranger::Plugin::Model::RangerPluginInfo.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @label = Array.new + @pluginInfoList = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @label.push String.from_json(_item) + @pluginInfoList.push Org::Apache::Ranger::Plugin::Model::RangerPluginInfo.from_json(_item) else - @label.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @pluginInfoList.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @label = _oa + @pluginInfoList = _oa end end - if !_o['rbKeyDescription'].nil?
[... 21315 lines stripped ...]