You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ve...@apache.org on 2018/10/04 17:23:59 UTC
svn commit: r1842832 [10/13] - in /ranger/site/trunk: ./ apidocs/ apidocs/ui/
Modified: ranger/site/trunk/apidocs/security-admin-web.rb
URL: http://svn.apache.org/viewvc/ranger/site/trunk/apidocs/security-admin-web.rb?rev=1842832&r1=1842831&r2=1842832&view=diff
==============================================================================
--- ranger/site/trunk/apidocs/security-admin-web.rb (original)
+++ ranger/site/trunk/apidocs/security-admin-web.rb Thu Oct 4 17:23:58 2018
@@ -91,24 +91,24 @@ module Model
# (no documentation provided)
attr_accessor :year
# (no documentation provided)
- attr_accessor :hour
- # (no documentation provided)
attr_accessor :minute
# (no documentation provided)
- attr_accessor :month
+ attr_accessor :hour
# (no documentation provided)
attr_accessor :dayOfMonth
# (no documentation provided)
+ attr_accessor :month
+ # (no documentation provided)
attr_accessor :dayOfWeek
# the json hash for this RecurrenceSchedule
def to_jaxb_json_hash
_h = {}
_h['year'] = year.to_jaxb_json_hash unless year.nil?
- _h['hour'] = hour.to_jaxb_json_hash unless hour.nil?
_h['minute'] = minute.to_jaxb_json_hash unless minute.nil?
- _h['month'] = month.to_jaxb_json_hash unless month.nil?
+ _h['hour'] = hour.to_jaxb_json_hash unless hour.nil?
_h['dayOfMonth'] = dayOfMonth.to_jaxb_json_hash unless dayOfMonth.nil?
+ _h['month'] = month.to_jaxb_json_hash unless month.nil?
_h['dayOfWeek'] = dayOfWeek.to_jaxb_json_hash unless dayOfWeek.nil?
return _h
end
@@ -139,25 +139,6 @@ module Model
@year = _oa
end
end
- if !_o['hour'].nil?
- _oa = _o['hour']
- if(_oa.is_a? Hash)
- @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
- @hour = Array.new
- _oa.each { | _item |
- if ((_item.nil? || _item['@class'].nil?)rescue true)
- @hour.push String.from_json(_item)
- else
- @hour.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
- end
- }
- else
- @hour = _oa
- end
- end
if !_o['minute'].nil?
_oa = _o['minute']
if(_oa.is_a? Hash)
@@ -177,23 +158,23 @@ module Model
@minute = _oa
end
end
- if !_o['month'].nil?
- _oa = _o['month']
+ if !_o['hour'].nil?
+ _oa = _o['hour']
if(_oa.is_a? Hash)
- @month = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @month = 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
- @month = Array.new
+ @hour = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @month.push String.from_json(_item)
+ @hour.push String.from_json(_item)
else
- @month.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @hour.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @month = _oa
+ @hour = _oa
end
end
if !_o['dayOfMonth'].nil?
@@ -215,6 +196,25 @@ module Model
@dayOfMonth = _oa
end
end
+ if !_o['month'].nil?
+ _oa = _o['month']
+ if(_oa.is_a? Hash)
+ @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
+ @month = Array.new
+ _oa.each { | _item |
+ if ((_item.nil? || _item['@class'].nil?)rescue true)
+ @month.push String.from_json(_item)
+ else
+ @month.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ end
+ }
+ else
+ @month = _oa
+ end
+ end
if !_o['dayOfWeek'].nil?
_oa = _o['dayOfWeek']
if(_oa.is_a? Hash)
@@ -272,45 +272,45 @@ module Model
class RangerPolicyConditionDef
# (no documentation provided)
- attr_accessor :label
- # (no documentation provided)
- attr_accessor :rbKeyDescription
+ attr_accessor :rbKeyLabel
# (no documentation provided)
attr_accessor :uiHint
# (no documentation provided)
- attr_accessor :evaluatorOptions
+ attr_accessor :validationMessage
# (no documentation provided)
- attr_accessor :name
+ attr_accessor :rbKeyDescription
+ # (no documentation provided)
+ attr_accessor :evaluatorOptions
# (no documentation provided)
attr_accessor :rbKeyValidationMessage
# (no documentation provided)
- attr_accessor :rbKeyLabel
+ attr_accessor :description
# (no documentation provided)
- attr_accessor :validationMessage
+ attr_accessor :validationRegEx
# (no documentation provided)
- attr_accessor :itemId
+ attr_accessor :name
# (no documentation provided)
- attr_accessor :description
+ attr_accessor :label
# (no documentation provided)
attr_accessor :evaluator
# (no documentation provided)
- attr_accessor :validationRegEx
+ attr_accessor :itemId
# the json hash for this RangerPolicyConditionDef
def to_jaxb_json_hash
_h = {}
- _h['label'] = label.to_jaxb_json_hash unless label.nil?
- _h['rbKeyDescription'] = rbKeyDescription.to_jaxb_json_hash unless rbKeyDescription.nil?
+ _h['rbKeyLabel'] = rbKeyLabel.to_jaxb_json_hash unless rbKeyLabel.nil?
_h['uiHint'] = uiHint.to_jaxb_json_hash unless uiHint.nil?
+ _h['validationMessage'] = validationMessage.to_jaxb_json_hash unless validationMessage.nil?
+ _h['rbKeyDescription'] = rbKeyDescription.to_jaxb_json_hash unless rbKeyDescription.nil?
_h['evaluatorOptions'] = evaluatorOptions.to_jaxb_json_hash unless evaluatorOptions.nil?
- _h['name'] = name.to_jaxb_json_hash unless name.nil?
_h['rbKeyValidationMessage'] = rbKeyValidationMessage.to_jaxb_json_hash unless rbKeyValidationMessage.nil?
- _h['rbKeyLabel'] = rbKeyLabel.to_jaxb_json_hash unless rbKeyLabel.nil?
- _h['validationMessage'] = validationMessage.to_jaxb_json_hash unless validationMessage.nil?
- _h['itemId'] = itemId.to_jaxb_json_hash unless itemId.nil?
_h['description'] = description.to_jaxb_json_hash unless description.nil?
- _h['evaluator'] = evaluator.to_jaxb_json_hash unless evaluator.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['evaluator'] = evaluator.to_jaxb_json_hash unless evaluator.nil?
+ _h['itemId'] = itemId.to_jaxb_json_hash unless itemId.nil?
return _h
end
@@ -321,99 +321,99 @@ module Model
#initializes this RangerPolicyConditionDef with a json hash
def init_jaxb_json_hash(_o)
- if !_o['label'].nil?
- _oa = _o['label']
+ if !_o['rbKeyLabel'].nil?
+ _oa = _o['rbKeyLabel']
if(_oa.is_a? Hash)
- @label = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @label = 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
- @label = Array.new
+ @rbKeyLabel = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @label.push String.from_json(_item)
+ @rbKeyLabel.push String.from_json(_item)
else
- @label.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @rbKeyLabel.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @label = _oa
+ @rbKeyLabel = _oa
end
end
- if !_o['rbKeyDescription'].nil?
- _oa = _o['rbKeyDescription']
+ if !_o['uiHint'].nil?
+ _oa = _o['uiHint']
if(_oa.is_a? Hash)
- @rbKeyDescription = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @rbKeyDescription = String.from_json(_oa) unless _oa['@class']
+ @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
- @rbKeyDescription = Array.new
+ @uiHint = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @rbKeyDescription.push String.from_json(_item)
+ @uiHint.push String.from_json(_item)
else
- @rbKeyDescription.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @uiHint.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @rbKeyDescription = _oa
+ @uiHint = _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['evaluatorOptions'].nil?
- _oa = _o['evaluatorOptions']
+ if !_o['rbKeyDescription'].nil?
+ _oa = _o['rbKeyDescription']
if(_oa.is_a? Hash)
- @evaluatorOptions = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @evaluatorOptions = Hash.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
- @evaluatorOptions = Array.new
+ @rbKeyDescription = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @evaluatorOptions.push Hash.from_json(_item)
+ @rbKeyDescription.push String.from_json(_item)
else
- @evaluatorOptions.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @rbKeyDescription.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @evaluatorOptions = _oa
+ @rbKeyDescription = _oa
end
end
- if !_o['name'].nil?
- _oa = _o['name']
+ if !_o['evaluatorOptions'].nil?
+ _oa = _o['evaluatorOptions']
if(_oa.is_a? Hash)
- @name = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @name = String.from_json(_oa) unless _oa['@class']
+ @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
- @name = Array.new
+ @evaluatorOptions = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @name.push String.from_json(_item)
+ @evaluatorOptions.push Hash.from_json(_item)
else
- @name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @evaluatorOptions.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @name = _oa
+ @evaluatorOptions = _oa
end
end
if !_o['rbKeyValidationMessage'].nil?
@@ -435,80 +435,80 @@ module Model
@rbKeyValidationMessage = _oa
end
end
- if !_o['rbKeyLabel'].nil?
- _oa = _o['rbKeyLabel']
+ if !_o['description'].nil?
+ _oa = _o['description']
if(_oa.is_a? Hash)
- @rbKeyLabel = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @rbKeyLabel = 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
- @rbKeyLabel = Array.new
+ @description = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @rbKeyLabel.push String.from_json(_item)
+ @description.push String.from_json(_item)
else
- @rbKeyLabel.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @description.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @rbKeyLabel = _oa
+ @description = _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['itemId'].nil?
- _oa = _o['itemId']
+ if !_o['name'].nil?
+ _oa = _o['name']
if(_oa.is_a? Hash)
- @itemId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @itemId = Bignum.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
- @itemId = Array.new
+ @name = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @itemId.push Bignum.from_json(_item)
+ @name.push String.from_json(_item)
else
- @itemId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @itemId = _oa
+ @name = _oa
end
end
- if !_o['description'].nil?
- _oa = _o['description']
+ if !_o['label'].nil?
+ _oa = _o['label']
if(_oa.is_a? Hash)
- @description = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @description = 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
- @description = Array.new
+ @label = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @description.push String.from_json(_item)
+ @label.push String.from_json(_item)
else
- @description.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @label.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @description = _oa
+ @label = _oa
end
end
if !_o['evaluator'].nil?
@@ -530,23 +530,23 @@ module Model
@evaluator = _oa
end
end
- if !_o['validationRegEx'].nil?
- _oa = _o['validationRegEx']
+ if !_o['itemId'].nil?
+ _oa = _o['itemId']
if(_oa.is_a? Hash)
- @validationRegEx = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @validationRegEx = 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
- @validationRegEx = Array.new
+ @itemId = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @validationRegEx.push String.from_json(_item)
+ @itemId.push Bignum.from_json(_item)
else
- @validationRegEx.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @itemId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @validationRegEx = _oa
+ @itemId = _oa
end
end
end
@@ -587,15 +587,15 @@ module Model
class RangerTagAttributeDef
# (no documentation provided)
- attr_accessor :type
- # (no documentation provided)
attr_accessor :name
+ # (no documentation provided)
+ attr_accessor :type
# the json hash for this RangerTagAttributeDef
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['type'] = type.to_jaxb_json_hash unless type.nil?
return _h
end
@@ -606,42 +606,42 @@ module Model
#initializes this RangerTagAttributeDef with a json hash
def init_jaxb_json_hash(_o)
- if !_o['type'].nil?
- _oa = _o['type']
+ if !_o['name'].nil?
+ _oa = _o['name']
if(_oa.is_a? Hash)
- @type = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @type = 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
- @type = Array.new
+ @name = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @type.push String.from_json(_item)
+ @name.push String.from_json(_item)
else
- @type.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @type = _oa
+ @name = _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
end
@@ -682,15 +682,15 @@ module Model
class RangerValidityRecurrence
# (no documentation provided)
- attr_accessor :interval
- # (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['interval'] = interval.to_jaxb_json_hash unless interval.nil?
_h['schedule'] = schedule.to_jaxb_json_hash unless schedule.nil?
+ _h['interval'] = interval.to_jaxb_json_hash unless interval.nil?
return _h
end
@@ -701,42 +701,42 @@ module Model
#initializes this RangerValidityRecurrence with a json hash
def init_jaxb_json_hash(_o)
- if !_o['interval'].nil?
- _oa = _o['interval']
+ if !_o['schedule'].nil?
+ _oa = _o['schedule']
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']
+ @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
- @interval = Array.new
+ @schedule = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @interval.push Org::Apache::Ranger::Plugin::Model::ValidityInterval.from_json(_item)
+ @schedule.push Org::Apache::Ranger::Plugin::Model::RecurrenceSchedule.from_json(_item)
else
- @interval.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @schedule.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @interval = _oa
+ @schedule = _oa
end
end
- if !_o['schedule'].nil?
- _oa = _o['schedule']
+ if !_o['interval'].nil?
+ _oa = _o['interval']
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']
+ @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
- @schedule = Array.new
+ @interval = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @schedule.push Org::Apache::Ranger::Plugin::Model::RecurrenceSchedule.from_json(_item)
+ @interval.push Org::Apache::Ranger::Plugin::Model::ValidityInterval.from_json(_item)
else
- @schedule.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @interval.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @schedule = _oa
+ @interval = _oa
end
end
end
@@ -777,17 +777,17 @@ module Model
class ValidityInterval
# (no documentation provided)
- attr_accessor :minutes
- # (no documentation provided)
attr_accessor :days
# (no documentation provided)
+ attr_accessor :minutes
+ # (no documentation provided)
attr_accessor :hours
# the json hash for this ValidityInterval
def to_jaxb_json_hash
_h = {}
- _h['minutes'] = minutes.to_jaxb_json_hash unless minutes.nil?
_h['days'] = days.to_jaxb_json_hash unless days.nil?
+ _h['minutes'] = minutes.to_jaxb_json_hash unless minutes.nil?
_h['hours'] = hours.to_jaxb_json_hash unless hours.nil?
return _h
end
@@ -799,42 +799,42 @@ module Model
#initializes this ValidityInterval with a json hash
def init_jaxb_json_hash(_o)
- if !_o['minutes'].nil?
- _oa = _o['minutes']
+ if !_o['days'].nil?
+ _oa = _o['days']
if(_oa.is_a? Hash)
- @minutes = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @minutes = Fixnum.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
- @minutes = Array.new
+ @days = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @minutes.push Fixnum.from_json(_item)
+ @days.push Fixnum.from_json(_item)
else
- @minutes.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @days.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @minutes = _oa
+ @days = _oa
end
end
- if !_o['days'].nil?
- _oa = _o['days']
+ if !_o['minutes'].nil?
+ _oa = _o['minutes']
if(_oa.is_a? Hash)
- @days = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @days = Fixnum.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
- @days = Array.new
+ @minutes = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @days.push Fixnum.from_json(_item)
+ @minutes.push Fixnum.from_json(_item)
else
- @days.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @minutes.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @days = _oa
+ @minutes = _oa
end
end
if !_o['hours'].nil?
@@ -894,51 +894,51 @@ module Model
class RangerServiceConfigDef
# (no documentation provided)
- attr_accessor :rbKeyLabel
- # (no documentation provided)
- attr_accessor :subType
+ attr_accessor :itemId
# (no documentation provided)
attr_accessor :name
# (no documentation provided)
- attr_accessor :description
+ attr_accessor :rbKeyDescription
# (no documentation provided)
- attr_accessor :type
+ attr_accessor :rbKeyValidationMessage
# (no documentation provided)
- attr_accessor :rbKeyDescription
+ attr_accessor :validationMessage
+ # (no documentation provided)
+ attr_accessor :type
# (no documentation provided)
attr_accessor :label
# (no documentation provided)
- attr_accessor :validationMessage
+ attr_accessor :validationRegEx
# (no documentation provided)
- attr_accessor :rbKeyValidationMessage
+ attr_accessor :mandatory
# (no documentation provided)
- attr_accessor :itemId
+ attr_accessor :subType
# (no documentation provided)
attr_accessor :uiHint
# (no documentation provided)
- attr_accessor :mandatory
+ attr_accessor :rbKeyLabel
# (no documentation provided)
attr_accessor :defaultValue
# (no documentation provided)
- attr_accessor :validationRegEx
+ attr_accessor :description
# the json hash for this RangerServiceConfigDef
def to_jaxb_json_hash
_h = {}
- _h['rbKeyLabel'] = rbKeyLabel.to_jaxb_json_hash unless rbKeyLabel.nil?
- _h['subType'] = subType.to_jaxb_json_hash unless subType.nil?
+ _h['itemId'] = itemId.to_jaxb_json_hash unless itemId.nil?
_h['name'] = name.to_jaxb_json_hash unless name.nil?
- _h['description'] = description.to_jaxb_json_hash unless description.nil?
- _h['type'] = type.to_jaxb_json_hash unless type.nil?
_h['rbKeyDescription'] = rbKeyDescription.to_jaxb_json_hash unless rbKeyDescription.nil?
- _h['label'] = label.to_jaxb_json_hash unless label.nil?
- _h['validationMessage'] = validationMessage.to_jaxb_json_hash unless validationMessage.nil?
_h['rbKeyValidationMessage'] = rbKeyValidationMessage.to_jaxb_json_hash unless rbKeyValidationMessage.nil?
- _h['itemId'] = itemId.to_jaxb_json_hash unless itemId.nil?
- _h['uiHint'] = uiHint.to_jaxb_json_hash unless uiHint.nil?
+ _h['validationMessage'] = validationMessage.to_jaxb_json_hash unless validationMessage.nil?
+ _h['type'] = type.to_jaxb_json_hash unless type.nil?
+ _h['label'] = label.to_jaxb_json_hash unless label.nil?
+ _h['validationRegEx'] = validationRegEx.to_jaxb_json_hash unless validationRegEx.nil?
_h['mandatory'] = mandatory.to_jaxb_json_hash unless mandatory.nil?
+ _h['subType'] = subType.to_jaxb_json_hash unless subType.nil?
+ _h['uiHint'] = uiHint.to_jaxb_json_hash unless uiHint.nil?
+ _h['rbKeyLabel'] = rbKeyLabel.to_jaxb_json_hash unless rbKeyLabel.nil?
_h['defaultValue'] = defaultValue.to_jaxb_json_hash unless defaultValue.nil?
- _h['validationRegEx'] = validationRegEx.to_jaxb_json_hash unless validationRegEx.nil?
+ _h['description'] = description.to_jaxb_json_hash unless description.nil?
return _h
end
@@ -949,118 +949,118 @@ module Model
#initializes this RangerServiceConfigDef with a json hash
def init_jaxb_json_hash(_o)
- 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['subType'].nil?
- _oa = _o['subType']
+ if !_o['name'].nil?
+ _oa = _o['name']
if(_oa.is_a? Hash)
- @subType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @subType = 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
- @subType = Array.new
+ @name = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @subType.push String.from_json(_item)
+ @name.push String.from_json(_item)
else
- @subType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @subType = _oa
+ @name = _oa
end
end
- if !_o['name'].nil?
- _oa = _o['name']
+ if !_o['rbKeyDescription'].nil?
+ _oa = _o['rbKeyDescription']
if(_oa.is_a? Hash)
- @name = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @name = 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
- @name = Array.new
+ @rbKeyDescription = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @name.push String.from_json(_item)
+ @rbKeyDescription.push String.from_json(_item)
else
- @name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @rbKeyDescription.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @name = _oa
+ @rbKeyDescription = _oa
end
end
- if !_o['description'].nil?
- _oa = _o['description']
+ if !_o['rbKeyValidationMessage'].nil?
+ _oa = _o['rbKeyValidationMessage']
if(_oa.is_a? Hash)
- @description = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @description = String.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
- @description = Array.new
+ @rbKeyValidationMessage = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @description.push String.from_json(_item)
+ @rbKeyValidationMessage.push String.from_json(_item)
else
- @description.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @rbKeyValidationMessage.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @description = _oa
+ @rbKeyValidationMessage = _oa
end
end
- if !_o['type'].nil?
- _oa = _o['type']
+ if !_o['validationMessage'].nil?
+ _oa = _o['validationMessage']
if(_oa.is_a? Hash)
- @type = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @type = 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
- @type = Array.new
+ @validationMessage = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @type.push String.from_json(_item)
+ @validationMessage.push String.from_json(_item)
else
- @type.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @validationMessage.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @type = _oa
+ @validationMessage = _oa
end
end
- if !_o['rbKeyDescription'].nil?
- _oa = _o['rbKeyDescription']
+ if !_o['type'].nil?
+ _oa = _o['type']
if(_oa.is_a? Hash)
- @rbKeyDescription = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @rbKeyDescription = 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
- @rbKeyDescription = Array.new
+ @type = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @rbKeyDescription.push String.from_json(_item)
+ @type.push String.from_json(_item)
else
- @rbKeyDescription.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @type.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @rbKeyDescription = _oa
+ @type = _oa
end
end
if !_o['label'].nil?
@@ -1082,61 +1082,61 @@ module Model
@label = _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['rbKeyValidationMessage'].nil?
- _oa = _o['rbKeyValidationMessage']
+ if !_o['mandatory'].nil?
+ _oa = _o['mandatory']
if(_oa.is_a? Hash)
- @rbKeyValidationMessage = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @rbKeyValidationMessage = String.from_json(_oa) unless _oa['@class']
+ @mandatory = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @mandatory = Boolean.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @rbKeyValidationMessage = Array.new
+ @mandatory = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @rbKeyValidationMessage.push String.from_json(_item)
+ @mandatory.push Boolean.from_json(_item)
else
- @rbKeyValidationMessage.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @mandatory.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @rbKeyValidationMessage = _oa
+ @mandatory = _oa
end
end
- if !_o['itemId'].nil?
- _oa = _o['itemId']
+ if !_o['subType'].nil?
+ _oa = _o['subType']
if(_oa.is_a? Hash)
- @itemId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @itemId = Bignum.from_json(_oa) unless _oa['@class']
+ @subType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @subType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @itemId = Array.new
+ @subType = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @itemId.push Bignum.from_json(_item)
+ @subType.push String.from_json(_item)
else
- @itemId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @subType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @itemId = _oa
+ @subType = _oa
end
end
if !_o['uiHint'].nil?
@@ -1158,23 +1158,23 @@ module Model
@uiHint = _oa
end
end
- if !_o['mandatory'].nil?
- _oa = _o['mandatory']
+ if !_o['rbKeyLabel'].nil?
+ _oa = _o['rbKeyLabel']
if(_oa.is_a? Hash)
- @mandatory = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @mandatory = Boolean.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
- @mandatory = Array.new
+ @rbKeyLabel = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @mandatory.push Boolean.from_json(_item)
+ @rbKeyLabel.push String.from_json(_item)
else
- @mandatory.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @rbKeyLabel.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @mandatory = _oa
+ @rbKeyLabel = _oa
end
end
if !_o['defaultValue'].nil?
@@ -1196,23 +1196,23 @@ module Model
@defaultValue = _oa
end
end
- if !_o['validationRegEx'].nil?
- _oa = _o['validationRegEx']
+ if !_o['description'].nil?
+ _oa = _o['description']
if(_oa.is_a? Hash)
- @validationRegEx = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @validationRegEx = 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
- @validationRegEx = Array.new
+ @description = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @validationRegEx.push String.from_json(_item)
+ @description.push String.from_json(_item)
else
- @validationRegEx.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @description.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @validationRegEx = _oa
+ @description = _oa
end
end
end
@@ -1255,27 +1255,27 @@ module Datatype
class RESTResponse
# (no documentation provided)
- attr_accessor :msgDesc
- # (no documentation provided)
- attr_accessor :messageList
- # (no documentation provided)
attr_accessor :httpStatusCode
# (no documentation provided)
attr_accessor :message
# (no documentation provided)
+ attr_accessor :messageList
+ # (no documentation provided)
+ attr_accessor :msgDesc
+ # (no documentation provided)
attr_accessor :statusCode
# the json hash for this RESTResponse
def to_jaxb_json_hash
_h = {}
- _h['msgDesc'] = msgDesc.to_jaxb_json_hash unless msgDesc.nil?
+ _h['httpStatusCode'] = httpStatusCode.to_jaxb_json_hash unless httpStatusCode.nil?
+ _h['message'] = message.to_jaxb_json_hash unless message.nil?
if !messageList.nil?
_ha = Array.new
messageList.each { | _item | _ha.push _item.to_jaxb_json_hash }
_h['messageList'] = _ha
end
- _h['httpStatusCode'] = httpStatusCode.to_jaxb_json_hash unless httpStatusCode.nil?
- _h['message'] = message.to_jaxb_json_hash unless message.nil?
+ _h['msgDesc'] = msgDesc.to_jaxb_json_hash unless msgDesc.nil?
_h['statusCode'] = statusCode.to_jaxb_json_hash unless statusCode.nil?
return _h
end
@@ -1287,80 +1287,80 @@ module Datatype
#initializes this RESTResponse with a json hash
def init_jaxb_json_hash(_o)
- if !_o['msgDesc'].nil?
- _oa = _o['msgDesc']
+ if !_o['httpStatusCode'].nil?
+ _oa = _o['httpStatusCode']
if(_oa.is_a? Hash)
- @msgDesc = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @msgDesc = String.from_json(_oa) unless _oa['@class']
+ @httpStatusCode = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @httpStatusCode = Fixnum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @msgDesc = Array.new
+ @httpStatusCode = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @msgDesc.push String.from_json(_item)
+ @httpStatusCode.push Fixnum.from_json(_item)
else
- @msgDesc.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @httpStatusCode.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @msgDesc = _oa
+ @httpStatusCode = _oa
end
end
- if !_o['messageList'].nil?
- _oa = _o['messageList']
+ if !_o['message'].nil?
+ _oa = _o['message']
if(_oa.is_a? Hash)
- @messageList = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @messageList = Org::Apache::Ranger::Admin::Client::Datatype::Message.from_json(_oa) unless _oa['@class']
+ @message = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @message = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @messageList = Array.new
+ @message = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @messageList.push Org::Apache::Ranger::Admin::Client::Datatype::Message.from_json(_item)
+ @message.push String.from_json(_item)
else
- @messageList.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @message.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @messageList = _oa
+ @message = _oa
end
end
- if !_o['httpStatusCode'].nil?
- _oa = _o['httpStatusCode']
+ if !_o['messageList'].nil?
+ _oa = _o['messageList']
if(_oa.is_a? Hash)
- @httpStatusCode = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @httpStatusCode = Fixnum.from_json(_oa) unless _oa['@class']
+ @messageList = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @messageList = Org::Apache::Ranger::Admin::Client::Datatype::Message.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @httpStatusCode = Array.new
+ @messageList = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @httpStatusCode.push Fixnum.from_json(_item)
+ @messageList.push Org::Apache::Ranger::Admin::Client::Datatype::Message.from_json(_item)
else
- @httpStatusCode.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @messageList.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @httpStatusCode = _oa
+ @messageList = _oa
end
end
- if !_o['message'].nil?
- _oa = _o['message']
+ if !_o['msgDesc'].nil?
+ _oa = _o['msgDesc']
if(_oa.is_a? Hash)
- @message = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @message = String.from_json(_oa) unless _oa['@class']
+ @msgDesc = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @msgDesc = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @message = Array.new
+ @msgDesc = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @message.push String.from_json(_item)
+ @msgDesc.push String.from_json(_item)
else
- @message.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @msgDesc.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @message = _oa
+ @msgDesc = _oa
end
end
if !_o['statusCode'].nil?
@@ -1422,29 +1422,29 @@ module Model
class RangerDataMaskDef
# (no documentation provided)
- attr_accessor :maskTypes
+ attr_accessor :accessTypes
# (no documentation provided)
attr_accessor :resources
# (no documentation provided)
- attr_accessor :accessTypes
+ attr_accessor :maskTypes
# the json hash for this RangerDataMaskDef
def to_jaxb_json_hash
_h = {}
- if !maskTypes.nil?
+ if !accessTypes.nil?
_ha = Array.new
- maskTypes.each { | _item | _ha.push _item.to_jaxb_json_hash }
- _h['maskTypes'] = _ha
+ accessTypes.each { | _item | _ha.push _item.to_jaxb_json_hash }
+ _h['accessTypes'] = _ha
end
if !resources.nil?
_ha = Array.new
resources.each { | _item | _ha.push _item.to_jaxb_json_hash }
_h['resources'] = _ha
end
- if !accessTypes.nil?
+ if !maskTypes.nil?
_ha = Array.new
- accessTypes.each { | _item | _ha.push _item.to_jaxb_json_hash }
- _h['accessTypes'] = _ha
+ maskTypes.each { | _item | _ha.push _item.to_jaxb_json_hash }
+ _h['maskTypes'] = _ha
end
return _h
end
@@ -1456,23 +1456,23 @@ module Model
#initializes this RangerDataMaskDef with a json hash
def init_jaxb_json_hash(_o)
- if !_o['maskTypes'].nil?
- _oa = _o['maskTypes']
+ if !_o['accessTypes'].nil?
+ _oa = _o['accessTypes']
if(_oa.is_a? Hash)
- @maskTypes = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @maskTypes = Org::Apache::Ranger::Plugin::Model::RangerDataMaskTypeDef.from_json(_oa) unless _oa['@class']
+ @accessTypes = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @accessTypes = Org::Apache::Ranger::Plugin::Model::RangerAccessTypeDef.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @maskTypes = Array.new
+ @accessTypes = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @maskTypes.push Org::Apache::Ranger::Plugin::Model::RangerDataMaskTypeDef.from_json(_item)
+ @accessTypes.push Org::Apache::Ranger::Plugin::Model::RangerAccessTypeDef.from_json(_item)
else
- @maskTypes.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @accessTypes.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @maskTypes = _oa
+ @accessTypes = _oa
end
end
if !_o['resources'].nil?
@@ -1494,23 +1494,23 @@ module Model
@resources = _oa
end
end
- if !_o['accessTypes'].nil?
- _oa = _o['accessTypes']
+ if !_o['maskTypes'].nil?
+ _oa = _o['maskTypes']
if(_oa.is_a? Hash)
- @accessTypes = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @accessTypes = Org::Apache::Ranger::Plugin::Model::RangerAccessTypeDef.from_json(_oa) unless _oa['@class']
+ @maskTypes = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @maskTypes = Org::Apache::Ranger::Plugin::Model::RangerDataMaskTypeDef.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @accessTypes = Array.new
+ @maskTypes = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @accessTypes.push Org::Apache::Ranger::Plugin::Model::RangerAccessTypeDef.from_json(_item)
+ @maskTypes.push Org::Apache::Ranger::Plugin::Model::RangerDataMaskTypeDef.from_json(_item)
else
- @accessTypes.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @maskTypes.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @accessTypes = _oa
+ @maskTypes = _oa
end
end
end
@@ -1933,23 +1933,23 @@ module Model
# (no documentation provided)
attr_accessor :startTime
# (no documentation provided)
- attr_accessor :recurrences
- # (no documentation provided)
attr_accessor :timeZone
# (no documentation provided)
attr_accessor :endTime
+ # (no documentation provided)
+ attr_accessor :recurrences
# the json hash for this RangerValiditySchedule
def to_jaxb_json_hash
_h = {}
_h['startTime'] = startTime.to_jaxb_json_hash unless startTime.nil?
+ _h['timeZone'] = timeZone.to_jaxb_json_hash unless timeZone.nil?
+ _h['endTime'] = endTime.to_jaxb_json_hash unless endTime.nil?
if !recurrences.nil?
_ha = Array.new
recurrences.each { | _item | _ha.push _item.to_jaxb_json_hash }
_h['recurrences'] = _ha
end
- _h['timeZone'] = timeZone.to_jaxb_json_hash unless timeZone.nil?
- _h['endTime'] = endTime.to_jaxb_json_hash unless endTime.nil?
return _h
end
@@ -1979,25 +1979,6 @@ module Model
@startTime = _oa
end
end
- if !_o['recurrences'].nil?
- _oa = _o['recurrences']
- if(_oa.is_a? Hash)
- @recurrences = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @recurrences = Org::Apache::Ranger::Plugin::Model::RangerValidityRecurrence.from_json(_oa) unless _oa['@class']
- elsif (_oa.is_a? Array)
- #an array(of hashes hopefully) or scalar
- @recurrences = Array.new
- _oa.each { | _item |
- if ((_item.nil? || _item['@class'].nil?)rescue true)
- @recurrences.push Org::Apache::Ranger::Plugin::Model::RangerValidityRecurrence.from_json(_item)
- else
- @recurrences.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
- end
- }
- else
- @recurrences = _oa
- end
- end
if !_o['timeZone'].nil?
_oa = _o['timeZone']
if(_oa.is_a? Hash)
@@ -2036,6 +2017,25 @@ module Model
@endTime = _oa
end
end
+ if !_o['recurrences'].nil?
+ _oa = _o['recurrences']
+ if(_oa.is_a? Hash)
+ @recurrences = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @recurrences = Org::Apache::Ranger::Plugin::Model::RangerValidityRecurrence.from_json(_oa) unless _oa['@class']
+ elsif (_oa.is_a? Array)
+ #an array(of hashes hopefully) or scalar
+ @recurrences = Array.new
+ _oa.each { | _item |
+ if ((_item.nil? || _item['@class'].nil?)rescue true)
+ @recurrences.push Org::Apache::Ranger::Plugin::Model::RangerValidityRecurrence.from_json(_item)
+ else
+ @recurrences.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ end
+ }
+ else
+ @recurrences = _oa
+ end
+ end
end
# constructs a RangerValiditySchedule from a (parsed) JSON hash
@@ -2169,34 +2169,34 @@ module Util
class TagPolicies
# (no documentation provided)
- attr_accessor :policies
+ attr_accessor :auditMode
# (no documentation provided)
- attr_accessor :policyUpdateTime
+ attr_accessor :serviceDef
# (no documentation provided)
attr_accessor :serviceId
# (no documentation provided)
attr_accessor :serviceName
# (no documentation provided)
- attr_accessor :auditMode
- # (no documentation provided)
- attr_accessor :serviceDef
+ attr_accessor :policies
# (no documentation provided)
attr_accessor :policyVersion
+ # (no documentation provided)
+ attr_accessor :policyUpdateTime
# the json hash for this TagPolicies
def to_jaxb_json_hash
_h = {}
+ _h['auditMode'] = auditMode.to_jaxb_json_hash unless auditMode.nil?
+ _h['serviceDef'] = serviceDef.to_jaxb_json_hash unless serviceDef.nil?
+ _h['serviceId'] = serviceId.to_jaxb_json_hash unless serviceId.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['policyUpdateTime'] = policyUpdateTime.to_jaxb_json_hash unless policyUpdateTime.nil?
- _h['serviceId'] = serviceId.to_jaxb_json_hash unless serviceId.nil?
- _h['serviceName'] = serviceName.to_jaxb_json_hash unless serviceName.nil?
- _h['auditMode'] = auditMode.to_jaxb_json_hash unless auditMode.nil?
- _h['serviceDef'] = serviceDef.to_jaxb_json_hash unless serviceDef.nil?
_h['policyVersion'] = policyVersion.to_jaxb_json_hash unless policyVersion.nil?
+ _h['policyUpdateTime'] = policyUpdateTime.to_jaxb_json_hash unless policyUpdateTime.nil?
return _h
end
@@ -2207,42 +2207,42 @@ module Util
#initializes this TagPolicies with a json hash
def init_jaxb_json_hash(_o)
- if !_o['policies'].nil?
- _oa = _o['policies']
+ if !_o['auditMode'].nil?
+ _oa = _o['auditMode']
if(_oa.is_a? Hash)
- @policies = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @policies = Org::Apache::Ranger::Plugin::Model::RangerPolicy.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
- @policies = Array.new
+ @auditMode = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @policies.push Org::Apache::Ranger::Plugin::Model::RangerPolicy.from_json(_item)
+ @auditMode.push String.from_json(_item)
else
- @policies.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @auditMode.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @policies = _oa
+ @auditMode = _oa
end
end
- if !_o['policyUpdateTime'].nil?
- _oa = _o['policyUpdateTime']
+ if !_o['serviceDef'].nil?
+ _oa = _o['serviceDef']
if(_oa.is_a? Hash)
- @policyUpdateTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @policyUpdateTime = Time.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
- @policyUpdateTime = Array.new
+ @serviceDef = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @policyUpdateTime.push Time.from_json(_item)
+ @serviceDef.push Org::Apache::Ranger::Plugin::Model::RangerServiceDef.from_json(_item)
else
- @policyUpdateTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @serviceDef.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @policyUpdateTime = _oa
+ @serviceDef = _oa
end
end
if !_o['serviceId'].nil?
@@ -2283,61 +2283,61 @@ module Util
@serviceName = _oa
end
end
- if !_o['auditMode'].nil?
- _oa = _o['auditMode']
+ if !_o['policies'].nil?
+ _oa = _o['policies']
if(_oa.is_a? Hash)
- @auditMode = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @auditMode = 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
- @auditMode = Array.new
+ @policies = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @auditMode.push String.from_json(_item)
+ @policies.push Org::Apache::Ranger::Plugin::Model::RangerPolicy.from_json(_item)
else
- @auditMode.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @policies.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @auditMode = _oa
+ @policies = _oa
end
end
- if !_o['serviceDef'].nil?
- _oa = _o['serviceDef']
+ if !_o['policyVersion'].nil?
+ _oa = _o['policyVersion']
if(_oa.is_a? Hash)
- @serviceDef = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @serviceDef = Org::Apache::Ranger::Plugin::Model::RangerServiceDef.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
- @serviceDef = Array.new
+ @policyVersion = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @serviceDef.push Org::Apache::Ranger::Plugin::Model::RangerServiceDef.from_json(_item)
+ @policyVersion.push Bignum.from_json(_item)
else
- @serviceDef.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @policyVersion.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @serviceDef = _oa
+ @policyVersion = _oa
end
end
- if !_o['policyVersion'].nil?
- _oa = _o['policyVersion']
+ if !_o['policyUpdateTime'].nil?
+ _oa = _o['policyUpdateTime']
if(_oa.is_a? Hash)
- @policyVersion = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @policyVersion = Bignum.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
- @policyVersion = Array.new
+ @policyUpdateTime = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @policyVersion.push Bignum.from_json(_item)
+ @policyUpdateTime.push Time.from_json(_item)
else
- @policyVersion.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @policyUpdateTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @policyVersion = _oa
+ @policyUpdateTime = _oa
end
end
end
@@ -2378,33 +2378,33 @@ module Model
class RangerDataMaskTypeDef
# (no documentation provided)
- attr_accessor :name
- # (no documentation provided)
- attr_accessor :transformer
+ attr_accessor :description
# (no documentation provided)
attr_accessor :itemId
# (no documentation provided)
+ attr_accessor :dataMaskOptions
+ # (no documentation provided)
+ attr_accessor :label
+ # (no documentation provided)
attr_accessor :rbKeyLabel
# (no documentation provided)
attr_accessor :rbKeyDescription
# (no documentation provided)
- attr_accessor :dataMaskOptions
- # (no documentation provided)
- attr_accessor :description
+ attr_accessor :transformer
# (no documentation provided)
- attr_accessor :label
+ attr_accessor :name
# the json hash for this RangerDataMaskTypeDef
def to_jaxb_json_hash
_h = {}
- _h['name'] = name.to_jaxb_json_hash unless name.nil?
- _h['transformer'] = transformer.to_jaxb_json_hash unless transformer.nil?
+ _h['description'] = description.to_jaxb_json_hash unless description.nil?
_h['itemId'] = itemId.to_jaxb_json_hash unless itemId.nil?
- _h['rbKeyLabel'] = rbKeyLabel.to_jaxb_json_hash unless rbKeyLabel.nil?
- _h['rbKeyDescription'] = rbKeyDescription.to_jaxb_json_hash unless rbKeyDescription.nil?
_h['dataMaskOptions'] = dataMaskOptions.to_jaxb_json_hash unless dataMaskOptions.nil?
- _h['description'] = description.to_jaxb_json_hash unless description.nil?
_h['label'] = label.to_jaxb_json_hash unless label.nil?
+ _h['rbKeyLabel'] = rbKeyLabel.to_jaxb_json_hash unless rbKeyLabel.nil?
+ _h['rbKeyDescription'] = rbKeyDescription.to_jaxb_json_hash unless rbKeyDescription.nil?
+ _h['transformer'] = transformer.to_jaxb_json_hash unless transformer.nil?
+ _h['name'] = name.to_jaxb_json_hash unless name.nil?
return _h
end
@@ -2415,61 +2415,80 @@ module Model
#initializes this RangerDataMaskTypeDef with a json hash
def init_jaxb_json_hash(_o)
- 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['transformer'].nil?
- _oa = _o['transformer']
+ if !_o['itemId'].nil?
+ _oa = _o['itemId']
if(_oa.is_a? Hash)
- @transformer = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @transformer = 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
- @transformer = Array.new
+ @itemId = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @transformer.push String.from_json(_item)
+ @itemId.push Bignum.from_json(_item)
else
- @transformer.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @itemId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @transformer = _oa
+ @itemId = _oa
end
end
- if !_o['itemId'].nil?
- _oa = _o['itemId']
+ if !_o['dataMaskOptions'].nil?
+ _oa = _o['dataMaskOptions']
if(_oa.is_a? Hash)
- @itemId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @itemId = Bignum.from_json(_oa) unless _oa['@class']
+ @dataMaskOptions = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @dataMaskOptions = Hash.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @itemId = Array.new
+ @dataMaskOptions = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @itemId.push Bignum.from_json(_item)
+ @dataMaskOptions.push Hash.from_json(_item)
else
- @itemId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @dataMaskOptions.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @itemId = _oa
+ @dataMaskOptions = _oa
+ end
+ end
+ if !_o['label'].nil?
+ _oa = _o['label']
+ if(_oa.is_a? Hash)
+ @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
+ @label = Array.new
+ _oa.each { | _item |
+ if ((_item.nil? || _item['@class'].nil?)rescue true)
+ @label.push String.from_json(_item)
+ else
+ @label.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ end
+ }
+ else
+ @label = _oa
end
end
if !_o['rbKeyLabel'].nil?
@@ -2510,61 +2529,42 @@ module Model
@rbKeyDescription = _oa
end
end
- if !_o['dataMaskOptions'].nil?
- _oa = _o['dataMaskOptions']
- if(_oa.is_a? Hash)
- @dataMaskOptions = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @dataMaskOptions = Hash.from_json(_oa) unless _oa['@class']
- elsif (_oa.is_a? Array)
- #an array(of hashes hopefully) or scalar
- @dataMaskOptions = Array.new
- _oa.each { | _item |
- if ((_item.nil? || _item['@class'].nil?)rescue true)
- @dataMaskOptions.push Hash.from_json(_item)
- else
- @dataMaskOptions.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
- end
- }
- else
- @dataMaskOptions = _oa
- end
- end
- if !_o['description'].nil?
- _oa = _o['description']
+ if !_o['transformer'].nil?
+ _oa = _o['transformer']
if(_oa.is_a? Hash)
- @description = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @description = String.from_json(_oa) unless _oa['@class']
+ @transformer = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @transformer = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @description = Array.new
+ @transformer = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @description.push String.from_json(_item)
+ @transformer.push String.from_json(_item)
else
- @description.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @transformer.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @description = _oa
+ @transformer = _oa
end
end
- if !_o['label'].nil?
- _oa = _o['label']
+ if !_o['name'].nil?
+ _oa = _o['name']
if(_oa.is_a? Hash)
- @label = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @label = 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
- @label = Array.new
+ @name = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @label.push String.from_json(_item)
+ @name.push String.from_json(_item)
else
- @label.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @label = _oa
+ @name = _oa
end
end
end
@@ -2605,18 +2605,18 @@ module Model
class RangerPolicyItemDataMaskInfo
# (no documentation provided)
+ attr_accessor :dataMaskType
+ # (no documentation provided)
attr_accessor :conditionExpr
# (no documentation provided)
attr_accessor :valueExpr
- # (no documentation provided)
- attr_accessor :dataMaskType
# the json hash for this RangerPolicyItemDataMaskInfo
def to_jaxb_json_hash
_h = {}
+ _h['dataMaskType'] = dataMaskType.to_jaxb_json_hash unless dataMaskType.nil?
_h['conditionExpr'] = conditionExpr.to_jaxb_json_hash unless conditionExpr.nil?
_h['valueExpr'] = valueExpr.to_jaxb_json_hash unless valueExpr.nil?
- _h['dataMaskType'] = dataMaskType.to_jaxb_json_hash unless dataMaskType.nil?
return _h
end
@@ -2627,61 +2627,61 @@ module Model
#initializes this RangerPolicyItemDataMaskInfo with a json hash
def init_jaxb_json_hash(_o)
- if !_o['conditionExpr'].nil?
- _oa = _o['conditionExpr']
+ if !_o['dataMaskType'].nil?
+ _oa = _o['dataMaskType']
if(_oa.is_a? Hash)
- @conditionExpr = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @conditionExpr = String.from_json(_oa) unless _oa['@class']
+ @dataMaskType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @dataMaskType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @conditionExpr = Array.new
+ @dataMaskType = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @conditionExpr.push String.from_json(_item)
+ @dataMaskType.push String.from_json(_item)
else
- @conditionExpr.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @dataMaskType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @conditionExpr = _oa
+ @dataMaskType = _oa
end
end
- if !_o['valueExpr'].nil?
- _oa = _o['valueExpr']
+ if !_o['conditionExpr'].nil?
+ _oa = _o['conditionExpr']
if(_oa.is_a? Hash)
- @valueExpr = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @valueExpr = String.from_json(_oa) unless _oa['@class']
+ @conditionExpr = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @conditionExpr = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @valueExpr = Array.new
+ @conditionExpr = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @valueExpr.push String.from_json(_item)
+ @conditionExpr.push String.from_json(_item)
else
- @valueExpr.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @conditionExpr.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @valueExpr = _oa
+ @conditionExpr = _oa
end
end
- if !_o['dataMaskType'].nil?
- _oa = _o['dataMaskType']
+ if !_o['valueExpr'].nil?
+ _oa = _o['valueExpr']
if(_oa.is_a? Hash)
- @dataMaskType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @dataMaskType = String.from_json(_oa) unless _oa['@class']
+ @valueExpr = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
+ @valueExpr = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
- @dataMaskType = Array.new
+ @valueExpr = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
- @dataMaskType.push String.from_json(_item)
+ @valueExpr.push String.from_json(_item)
else
- @dataMaskType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
+ @valueExpr.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
- @dataMaskType = _oa
+ @valueExpr = _oa
end
end
end
@@ -2866,151 +2866,47 @@ module Plugin
module Model
# (no documentation provided)
- class RangerPolicyItem
+ class RangerPolicyItemRowFilterInfo
# (no documentation provided)
- attr_accessor :delegateAdmin
- # (no documentation provided)
- attr_accessor :users
- # (no documentation provided)
- attr_accessor :conditions
- # (no documentation provided)
- attr_accessor :accesses
- # (no documentation provided)
- attr_accessor :groups
+ attr_accessor :filterExpr
- # the json hash for this RangerPolicyItem
+ # the json hash for this RangerPolicyItemRowFilterInfo
def to_jaxb_json_hash
_h = {}
- _h['delegateAdmin'] = delegateAdmin.to_jaxb_json_hash unless delegateAdmin.nil?
- if !users.nil?
- _ha = Array.new
- users.each { | _item | _ha.push _item.to_jaxb_json_hash }
- _h['users'] = _ha
- end
- if !conditions.nil?
- _ha = Array.new
- conditions.each { | _item | _ha.push _item.to_jaxb_json_hash }
- _h['conditions'] = _ha
- end
- if !accesses.nil?
- _ha = Array.new
- accesses.each { | _item | _ha.push _item.to_jaxb_json_hash }
- _h['accesses'] = _ha
- end
- if !groups.nil?
- _ha = Array.new
- groups.each { | _item | _ha.push _item.to_jaxb_json_hash }
- _h['groups'] = _ha
- end
+ _h['filterExpr'] = filterExpr.to_jaxb_json_hash unless filterExpr.nil?
return _h
end
- # the json (string form) for this RangerPolicyItem
+ # the json (string form) for this RangerPolicyItemRowFilterInfo
def to_json
to_jaxb_json_hash.to_json
end
- #initializes this RangerPolicyItem with a json hash
+ #initializes this RangerPolicyItemRowFilterInfo with a json hash
def init_jaxb_json_hash(_o)
- if !_o['delegateAdmin'].nil?
- _oa = _o['delegateAdmin']
- if(_oa.is_a? Hash)
- @delegateAdmin = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @delegateAdmin = Boolean.from_json(_oa) unless _oa['@class']
- elsif (_oa.is_a? Array)
- #an array(of hashes hopefully) or scalar
- @delegateAdmin = Array.new
- _oa.each { | _item |
- if ((_item.nil? || _item['@class'].nil?)rescue true)
- @delegateAdmin.push Boolean.from_json(_item)
- else
- @delegateAdmin.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
- end
- }
- else
- @delegateAdmin = _oa
- end
- end
- if !_o['users'].nil?
- _oa = _o['users']
- if(_oa.is_a? Hash)
- @users = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @users = String.from_json(_oa) unless _oa['@class']
- elsif (_oa.is_a? Array)
- #an array(of hashes hopefully) or scalar
- @users = Array.new
- _oa.each { | _item |
- if ((_item.nil? || _item['@class'].nil?)rescue true)
- @users.push String.from_json(_item)
- else
- @users.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
- end
- }
- else
- @users = _oa
- end
- end
- if !_o['conditions'].nil?
- _oa = _o['conditions']
- if(_oa.is_a? Hash)
- @conditions = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
- @conditions = Org::Apache::Ranger::Plugin::Model::RangerPolicyItemCondition.from_json(_oa) unless _oa['@class']
- elsif (_oa.is_a? Array)
- #an array(of hashes hopefully) or scalar
- @conditions = Array.new
- _oa.each { | _item |
- if ((_item.nil? || _item['@class'].nil?)rescue true)
[... 14268 lines stripped ...]