lib/ruby-fs-stack/enunciate/familytree.rb in ruby-fs-stack-0.3.3 vs lib/ruby-fs-stack/enunciate/familytree.rb in ruby-fs-stack-0.4.0

- old
+ new

@@ -330,10 +330,12 @@ # A contributor of information to new FamilySearch. class Contact # The id of the contributor. attr_accessor :id + # The requested id of the contributor. + attr_accessor :requestedId # The contact name of the user. attr_accessor :contactName # The full name of the user. attr_accessor :fullName # The email of the user. @@ -345,10 +347,11 @@ # the json hash for this Contact def to_jaxb_json_hash _h = {} _h['id'] = id.to_jaxb_json_hash unless id.nil? + _h['requestedId'] = requestedId.to_jaxb_json_hash unless requestedId.nil? _h['contactName'] = contactName.to_jaxb_json_hash unless contactName.nil? _h['fullName'] = fullName.to_jaxb_json_hash unless fullName.nil? _h['email'] = email.to_jaxb_json_hash unless email.nil? _h['address'] = address.to_jaxb_json_hash unless address.nil? _h['phone'] = phone.to_jaxb_json_hash unless phone.nil? @@ -361,10 +364,11 @@ end #initializes this Contact with a json hash def init_jaxb_json_hash(_o) @id = String.from_json(_o['id']) unless _o['id'].nil? + @requestedId = String.from_json(_o['requestedId']) unless _o['requestedId'].nil? @contactName = String.from_json(_o['contactName']) unless _o['contactName'].nil? @fullName = String.from_json(_o['fullName']) unless _o['fullName'].nil? @email = String.from_json(_o['email']) unless _o['email'].nil? @address = Org::Familysearch::Ws::Familytree::V2::Schema::PostalAddress.from_json(_o['address']) unless _o['address'].nil? @phone = String.from_json(_o['phone']) unless _o['phone'].nil? @@ -697,15 +701,18 @@ # class ContributorAlias # The alias id. attr_accessor :id + # The alias contact name. + attr_accessor :contactName # the json hash for this ContributorAlias def to_jaxb_json_hash _h = {} _h['id'] = id.to_jaxb_json_hash unless id.nil? + _h['contactName'] = contactName.to_jaxb_json_hash unless contactName.nil? return _h end # the json (string form) for this ContributorAlias def to_json @@ -713,10 +720,11 @@ end #initializes this ContributorAlias with a json hash def init_jaxb_json_hash(_o) @id = String.from_json(_o['id']) unless _o['id'].nil? + @contactName = String.from_json(_o['contactName']) unless _o['contactName'].nil? end # constructs a ContributorAlias from a (parsed) JSON hash def self.from_json(o) if o.nil? @@ -1754,2920 +1762,10 @@ module Ws module Familytree -module V1 - -module Schema - - # The set of assertions assigned to a person. - class Assertions - - # The name assertions associated with this person. - attr_accessor :names - # The gender assertions associated with this person. - attr_accessor :genders - # The event assertions associated with this person. - attr_accessor :events - # The fact assertions associated with this person. - attr_accessor :facts - # The ordinance assertions associated with this person. - attr_accessor :ordinances - # The relationship assertions associated with this person. - attr_accessor :relationships - - # the json hash for this Assertions - def to_jaxb_json_hash - _h = {} - if !names.nil? - _ha = Array.new - names.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['name'] = _ha - end - if !genders.nil? - _ha = Array.new - genders.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['gender'] = _ha - end - if !events.nil? - _ha = Array.new - events.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['event'] = _ha - end - if !facts.nil? - _ha = Array.new - facts.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['fact'] = _ha - end - if !ordinances.nil? - _ha = Array.new - ordinances.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['ordinance'] = _ha - end - if !relationships.nil? - _ha = Array.new - relationships.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['relationship'] = _ha - end - return _h - end - - # the json (string form) for this Assertions - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Assertions with a json hash - def init_jaxb_json_hash(_o) - if !_o['name'].nil? - @names = Array.new - _oa = _o['name'] - _oa.each { | _item | @names.push Org::Familysearch::Ws::Familytree::V1::Schema::Name.from_json(_item) } - end - if !_o['gender'].nil? - @genders = Array.new - _oa = _o['gender'] - _oa.each { | _item | @genders.push Org::Familysearch::Ws::Familytree::V1::Schema::Gender.from_json(_item) } - end - if !_o['event'].nil? - @events = Array.new - _oa = _o['event'] - _oa.each { | _item | @events.push Org::Familysearch::Ws::Familytree::V1::Schema::Event.from_json(_item) } - end - if !_o['fact'].nil? - @facts = Array.new - _oa = _o['fact'] - _oa.each { | _item | @facts.push Org::Familysearch::Ws::Familytree::V1::Schema::Fact.from_json(_item) } - end - if !_o['ordinance'].nil? - @ordinances = Array.new - _oa = _o['ordinance'] - _oa.each { | _item | @ordinances.push Org::Familysearch::Ws::Familytree::V1::Schema::Ordinance.from_json(_item) } - end - if !_o['relationship'].nil? - @relationships = Array.new - _oa = _o['relationship'] - _oa.each { | _item | @relationships.push Org::Familysearch::Ws::Familytree::V1::Schema::Relationship.from_json(_item) } - end - end - - # constructs a Assertions from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class Changes - - # The count of changes. - attr_accessor :count - # The changes. - attr_accessor :changeItems - - # the json hash for this Changes - def to_jaxb_json_hash - _h = {} - _h['count'] = count.to_jaxb_json_hash unless count.nil? - if !changeItems.nil? - _ha = Array.new - changeItems.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['change'] = _ha - end - return _h - end - - # the json (string form) for this Changes - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Changes with a json hash - def init_jaxb_json_hash(_o) - @count = Fixnum.from_json(_o['count']) unless _o['count'].nil? - if !_o['change'].nil? - @changeItems = Array.new - _oa = _o['change'] - _oa.each { | _item | @changeItems.push Org::Familysearch::Ws::Familytree::V1::Schema::Change.from_json(_item) } - end - end - - # constructs a Changes from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Citation Field - class CitationField - - # (no documentation provided) - attr_accessor :type - # (no documentation provided) - attr_accessor :value - - # the json hash for this CitationField - def to_jaxb_json_hash - _h = {} - _h['type'] = type.to_jaxb_json_hash unless type.nil? - _h['value'] = value.to_jaxb_json_hash unless value.nil? - return _h - end - - # the json (string form) for this CitationField - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this CitationField with a json hash - def init_jaxb_json_hash(_o) - @type = String.from_json(_o['type']) unless _o['type'].nil? - @value = String.from_json(_o['value']) unless _o['value'].nil? - end - - # constructs a CitationField from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A date. - class DateData - - # The date value. - attr_accessor :original - # The normalized value. - attr_accessor :normalized - # The astro date. - attr_accessor :astro - - # the json hash for this DateData - def to_jaxb_json_hash - _h = {} - _h['original'] = original.to_jaxb_json_hash unless original.nil? - _h['normalized'] = normalized.to_jaxb_json_hash unless normalized.nil? - _h['astro'] = astro.to_jaxb_json_hash unless astro.nil? - return _h - end - - # the json (string form) for this DateData - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this DateData with a json hash - def init_jaxb_json_hash(_o) - @original = String.from_json(_o['original']) unless _o['original'].nil? - @normalized = String.from_json(_o['normalized']) unless _o['normalized'].nil? - @astro = Org::Familysearch::Ws::Familytree::V1::Schema::DateAstro.from_json(_o['astro']) unless _o['astro'].nil? - end - - # constructs a DateData from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A summary of an event. - class EventSummary - - # The scope of the event. - attr_accessor :scope - # The id of the assertion whose value is to be set as the summary value. - attr_accessor :assertionId - # The contributor of the event. - attr_accessor :contributor - # The type of the event. - attr_accessor :type - # The modified date of the event. - attr_accessor :modified - # The string form of the date of the event. - attr_accessor :date - # The string form of the place of the event. - attr_accessor :place - - # the json hash for this EventSummary - def to_jaxb_json_hash - _h = {} - _h['scope'] = scope.to_jaxb_json_hash unless scope.nil? - _h['assertionId'] = assertionId.to_jaxb_json_hash unless assertionId.nil? - _h['contributor'] = contributor.to_jaxb_json_hash unless contributor.nil? - _h['type'] = type.to_jaxb_json_hash unless type.nil? - _h['modified'] = modified.to_jaxb_json_hash unless modified.nil? - _h['date'] = date.to_jaxb_json_hash unless date.nil? - _h['place'] = place.to_jaxb_json_hash unless place.nil? - return _h - end - - # the json (string form) for this EventSummary - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this EventSummary with a json hash - def init_jaxb_json_hash(_o) - @scope = String.from_json(_o['scope']) unless _o['scope'].nil? - @assertionId = String.from_json(_o['assertionId']) unless _o['assertionId'].nil? - @contributor = String.from_json(_o['contributor']) unless _o['contributor'].nil? - @type = String.from_json(_o['type']) unless _o['type'].nil? - @modified = Time.from_json(_o['modified']) unless _o['modified'].nil? - @date = Org::Familysearch::Ws::Familytree::V1::Schema::DateData.from_json(_o['date']) unless _o['date'].nil? - @place = Org::Familysearch::Ws::Familytree::V1::Schema::Place.from_json(_o['place']) unless _o['place'].nil? - end - - # constructs a EventSummary from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A reference to an element from an error. - class ErrorReference - - # The reference to the id of the element. - attr_accessor :ref - # The temporary id that was supplied in the request. - attr_accessor :tempId - - # the json hash for this ErrorReference - def to_jaxb_json_hash - _h = {} - _h['ref'] = ref.to_jaxb_json_hash unless ref.nil? - _h['tempId'] = tempId.to_jaxb_json_hash unless tempId.nil? - return _h - end - - # the json (string form) for this ErrorReference - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this ErrorReference with a json hash - def init_jaxb_json_hash(_o) - @ref = String.from_json(_o['ref']) unless _o['ref'].nil? - @tempId = String.from_json(_o['tempId']) unless _o['tempId'].nil? - end - - # constructs a ErrorReference from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Gender Summary. - class GenderSummary - - # The id of the assertion whose value is to be set as the summary value. - attr_accessor :assertionId - # The contributor of the gender. - attr_accessor :contributor - # The modified date of the gender. - attr_accessor :modified - # The summary gender. - attr_accessor :genderType - - # the json hash for this GenderSummary - def to_jaxb_json_hash - _h = {} - _h['assertionId'] = assertionId.to_jaxb_json_hash unless assertionId.nil? - _h['contributor'] = contributor.to_jaxb_json_hash unless contributor.nil? - _h['modified'] = modified.to_jaxb_json_hash unless modified.nil? - _h['genderType'] = genderType.to_jaxb_json_hash unless genderType.nil? - return _h - end - - # the json (string form) for this GenderSummary - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this GenderSummary with a json hash - def init_jaxb_json_hash(_o) - @assertionId = String.from_json(_o['assertionId']) unless _o['assertionId'].nil? - @contributor = String.from_json(_o['contributor']) unless _o['contributor'].nil? - @modified = Time.from_json(_o['modified']) unless _o['modified'].nil? - @genderType = String.from_json(_o['genderType']) unless _o['genderType'].nil? - end - - # constructs a GenderSummary from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class Matches - - # The id of the person to which the matches are applicable. - attr_accessor :ref - # The count of matches. - attr_accessor :count - # The matches. - attr_accessor :matchItems - - # the json hash for this Matches - def to_jaxb_json_hash - _h = {} - _h['ref'] = ref.to_jaxb_json_hash unless ref.nil? - _h['count'] = count.to_jaxb_json_hash unless count.nil? - if !matchItems.nil? - _ha = Array.new - matchItems.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['match'] = _ha - end - return _h - end - - # the json (string form) for this Matches - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Matches with a json hash - def init_jaxb_json_hash(_o) - @ref = String.from_json(_o['ref']) unless _o['ref'].nil? - @count = Fixnum.from_json(_o['count']) unless _o['count'].nil? - if !_o['match'].nil? - @matchItems = Array.new - _oa = _o['match'] - _oa.each { | _item | @matchItems.push Org::Familysearch::Ws::Familytree::V1::Schema::Match.from_json(_item) } - end - end - - # constructs a Matches from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A piece of a name. - class NamePiece - - # The type of the name piece. - attr_accessor :type - # The predelimiters. - attr_accessor :predelimiters - # The value of the name piece. - attr_accessor :value - # The postdelimiters. - attr_accessor :postdelimiters - - # the json hash for this NamePiece - def to_jaxb_json_hash - _h = {} - _h['type'] = type.to_jaxb_json_hash unless type.nil? - _h['predelimiters'] = predelimiters.to_jaxb_json_hash unless predelimiters.nil? - _h['value'] = value.to_jaxb_json_hash unless value.nil? - _h['postdelimiters'] = postdelimiters.to_jaxb_json_hash unless postdelimiters.nil? - return _h - end - - # the json (string form) for this NamePiece - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this NamePiece with a json hash - def init_jaxb_json_hash(_o) - @type = String.from_json(_o['type']) unless _o['type'].nil? - @predelimiters = String.from_json(_o['predelimiters']) unless _o['predelimiters'].nil? - @value = String.from_json(_o['value']) unless _o['value'].nil? - @postdelimiters = String.from_json(_o['postdelimiters']) unless _o['postdelimiters'].nil? - end - - # constructs a NamePiece from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class Note - - # The id of the note. - attr_accessor :id - # Id of the assertion to which this note applies. - attr_accessor :assertion - # A temporary id for this note (e.g. for a note not persisted yet). - attr_accessor :tempId - # The text of the note. - attr_accessor :text - - # the json hash for this Note - def to_jaxb_json_hash - _h = {} - _h['id'] = id.to_jaxb_json_hash unless id.nil? - _h['assertion'] = assertion.to_jaxb_json_hash unless assertion.nil? - _h['tempId'] = tempId.to_jaxb_json_hash unless tempId.nil? - _h['text'] = text.to_jaxb_json_hash unless text.nil? - return _h - end - - # the json (string form) for this Note - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Note with a json hash - def init_jaxb_json_hash(_o) - @id = String.from_json(_o['id']) unless _o['id'].nil? - @assertion = String.from_json(_o['assertion']) unless _o['assertion'].nil? - @tempId = String.from_json(_o['tempId']) unless _o['tempId'].nil? - @text = String.from_json(_o['text']) unless _o['text'].nil? - end - - # constructs a Note from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class Notes - - # The notes. - attr_accessor :noteItems - - # the json hash for this Notes - def to_jaxb_json_hash - _h = {} - if !noteItems.nil? - _ha = Array.new - noteItems.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['note'] = _ha - end - return _h - end - - # the json (string form) for this Notes - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Notes with a json hash - def init_jaxb_json_hash(_o) - if !_o['note'].nil? - @noteItems = Array.new - _oa = _o['note'] - _oa.each { | _item | @noteItems.push Org::Familysearch::Ws::Familytree::V1::Schema::Note.from_json(_item) } - end - end - - # constructs a Notes from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Meta-information about a person. - class PersonInformation - - # The gender of the person. - attr_accessor :gender - # Whether the person is living. - attr_accessor :living - # The alternate ids for the person. - attr_accessor :alternateIds - - # the json hash for this PersonInformation - def to_jaxb_json_hash - _h = {} - _h['gender'] = gender.to_jaxb_json_hash unless gender.nil? - _h['living'] = living.to_jaxb_json_hash unless living.nil? - if !alternateIds.nil? - _ha = Array.new - alternateIds.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['alternateIds'] = _ha - end - return _h - end - - # the json (string form) for this PersonInformation - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this PersonInformation with a json hash - def init_jaxb_json_hash(_o) - @gender = String.from_json(_o['gender']) unless _o['gender'].nil? - @living = Boolean.from_json(_o['living']) unless _o['living'].nil? - if !_o['alternateIds'].nil? - @alternateIds = Array.new - _oa = _o['alternateIds'] - _oa.each { | _item | @alternateIds.push String.from_json(_item) } - end - end - - # constructs a PersonInformation from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class PersonSummaryChildren - - # Whether there are additional childs. - attr_accessor :additional - # The most relevant children. - attr_accessor :children - - # the json hash for this PersonSummaryChildren - def to_jaxb_json_hash - _h = {} - _h['additional'] = additional.to_jaxb_json_hash unless additional.nil? - if !children.nil? - _ha = Array.new - children.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['child'] = _ha - end - return _h - end - - # the json (string form) for this PersonSummaryChildren - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this PersonSummaryChildren with a json hash - def init_jaxb_json_hash(_o) - @additional = Boolean.from_json(_o['additional']) unless _o['additional'].nil? - if !_o['child'].nil? - @children = Array.new - _oa = _o['child'] - _oa.each { | _item | @children.push Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_item) } - end - end - - # constructs a PersonSummaryChildren from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A persona reference in a person combination. - class PersonaReference - - # The id of the persona. - attr_accessor :ref - # The temp id of this person reference (used for updates). - attr_accessor :tempId - # The version of the persona to combine. - attr_accessor :version - - # the json hash for this PersonaReference - def to_jaxb_json_hash - _h = {} - _h['ref'] = ref.to_jaxb_json_hash unless ref.nil? - _h['tempId'] = tempId.to_jaxb_json_hash unless tempId.nil? - _h['version'] = version.to_jaxb_json_hash unless version.nil? - return _h - end - - # the json (string form) for this PersonaReference - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this PersonaReference with a json hash - def init_jaxb_json_hash(_o) - @ref = String.from_json(_o['ref']) unless _o['ref'].nil? - @tempId = String.from_json(_o['tempId']) unless _o['tempId'].nil? - @version = String.from_json(_o['version']) unless _o['version'].nil? - end - - # constructs a PersonaReference from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class Personas - - # The id to separate the personas to. - attr_accessor :id - # Temp id to provide a hook for the new combination. - attr_accessor :tempId - # The personas. - attr_accessor :personaItems - - # the json hash for this Personas - def to_jaxb_json_hash - _h = {} - _h['id'] = id.to_jaxb_json_hash unless id.nil? - _h['tempId'] = tempId.to_jaxb_json_hash unless tempId.nil? - if !personaItems.nil? - _ha = Array.new - personaItems.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['persona'] = _ha - end - return _h - end - - # the json (string form) for this Personas - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Personas with a json hash - def init_jaxb_json_hash(_o) - @id = String.from_json(_o['id']) unless _o['id'].nil? - @tempId = String.from_json(_o['tempId']) unless _o['tempId'].nil? - if !_o['persona'].nil? - @personaItems = Array.new - _oa = _o['persona'] - _oa.each { | _item | @personaItems.push Org::Familysearch::Ws::Familytree::V1::Schema::PersonaReference.from_json(_item) } - end - end - - # constructs a Personas from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A persona. - class Persona - - # The id of the persona. - attr_accessor :id - # The assertions for this persona. - attr_accessor :assertions - # The assertion values for this persona. - attr_accessor :values - - # the json hash for this Persona - def to_jaxb_json_hash - _h = {} - _h['id'] = id.to_jaxb_json_hash unless id.nil? - _h['assertions'] = assertions.to_jaxb_json_hash unless assertions.nil? - _h['values'] = values.to_jaxb_json_hash unless values.nil? - return _h - end - - # the json (string form) for this Persona - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Persona with a json hash - def init_jaxb_json_hash(_o) - @id = String.from_json(_o['id']) unless _o['id'].nil? - @assertions = Org::Familysearch::Ws::Familytree::V1::Schema::Assertions.from_json(_o['assertions']) unless _o['assertions'].nil? - @values = Org::Familysearch::Ws::Familytree::V1::Schema::Assertions.from_json(_o['values']) unless _o['values'].nil? - end - - # constructs a Persona from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # The results of a search. - class SearchResults - - # The number of returned hits. - attr_accessor :count - # The estimated number of partial hits. - attr_accessor :partial - # The total number of close hits. - attr_accessor :close - # The hits in the search. - attr_accessor :hits - # The context id for repeating the search. - attr_accessor :contextId - - # the json hash for this SearchResults - def to_jaxb_json_hash - _h = {} - _h['count'] = count.to_jaxb_json_hash unless count.nil? - _h['partial'] = partial.to_jaxb_json_hash unless partial.nil? - _h['close'] = close.to_jaxb_json_hash unless close.nil? - if !hits.nil? - _ha = Array.new - hits.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['search'] = _ha - end - _h['contextId'] = contextId.to_jaxb_json_hash unless contextId.nil? - return _h - end - - # the json (string form) for this SearchResults - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this SearchResults with a json hash - def init_jaxb_json_hash(_o) - @count = Fixnum.from_json(_o['count']) unless _o['count'].nil? - @partial = Fixnum.from_json(_o['partial']) unless _o['partial'].nil? - @close = Fixnum.from_json(_o['close']) unless _o['close'].nil? - if !_o['search'].nil? - @hits = Array.new - _oa = _o['search'] - _oa.each { | _item | @hits.push Org::Familysearch::Ws::Familytree::V1::Schema::SearchHit.from_json(_item) } - end - @contextId = String.from_json(_o['contextId']) unless _o['contextId'].nil? - end - - # constructs a SearchResults from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Source Field - class SourceField - - # (no documentation provided) - attr_accessor :type - # (no documentation provided) - attr_accessor :value - - # the json hash for this SourceField - def to_jaxb_json_hash - _h = {} - _h['type'] = type.to_jaxb_json_hash unless type.nil? - _h['value'] = value.to_jaxb_json_hash unless value.nil? - return _h - end - - # the json (string form) for this SourceField - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this SourceField with a json hash - def init_jaxb_json_hash(_o) - @type = String.from_json(_o['type']) unless _o['type'].nil? - @value = String.from_json(_o['value']) unless _o['value'].nil? - end - - # constructs a SourceField from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class UserAlias - - # The alias id. - attr_accessor :id - - # the json hash for this UserAlias - def to_jaxb_json_hash - _h = {} - _h['ref'] = id.to_jaxb_json_hash unless id.nil? - return _h - end - - # the json (string form) for this UserAlias - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this UserAlias with a json hash - def init_jaxb_json_hash(_o) - @id = String.from_json(_o['id']) unless _o['ref'].nil? - end - - # constructs a UserAlias from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Citation Source - class Source - - # source detail - attr_accessor :detail - # (no documentation provided) - attr_accessor :originalSource - # source type - attr_accessor :type - # source media type - attr_accessor :media - # The source repository. - attr_accessor :repository - # source fields. - attr_accessor :sourceFields - - # the json hash for this Source - def to_jaxb_json_hash - _h = {} - _h['detail'] = detail.to_jaxb_json_hash unless detail.nil? - _h['originalSource'] = originalSource.to_jaxb_json_hash unless originalSource.nil? - _h['type'] = type.to_jaxb_json_hash unless type.nil? - _h['media'] = media.to_jaxb_json_hash unless media.nil? - _h['repository'] = repository.to_jaxb_json_hash unless repository.nil? - if !sourceFields.nil? - _ha = Array.new - sourceFields.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['sourceFields'] = _ha - end - return _h - end - - # the json (string form) for this Source - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Source with a json hash - def init_jaxb_json_hash(_o) - @detail = String.from_json(_o['detail']) unless _o['detail'].nil? - @originalSource = Boolean.from_json(_o['originalSource']) unless _o['originalSource'].nil? - @type = String.from_json(_o['type']) unless _o['type'].nil? - @media = String.from_json(_o['media']) unless _o['media'].nil? - @repository = Org::Familysearch::Ws::Familytree::V1::Schema::Repository.from_json(_o['repository']) unless _o['repository'].nil? - if !_o['sourceFields'].nil? - @sourceFields = Array.new - _oa = _o['sourceFields'] - _oa.each { | _item | @sourceFields.push Org::Familysearch::Ws::Familytree::V1::Schema::SourceField.from_json(_item) } - end - end - - # constructs a Source from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class SearchResult - - # The id of the primary person. - attr_accessor :ref - # The primary person in this search hit. - attr_accessor :primaryPerson - # The parents of the primary person for this search hit. - attr_accessor :parents - # The spouses of the primary person for this search hit. - attr_accessor :spouses - # The children of the primary person for this search hit. - attr_accessor :children - - # the json hash for this SearchResult - def to_jaxb_json_hash - _h = {} - _h['ref'] = ref.to_jaxb_json_hash unless ref.nil? - _h['person'] = primaryPerson.to_jaxb_json_hash unless primaryPerson.nil? - if !parents.nil? - _ha = Array.new - parents.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['parents'] = _ha - end - if !spouses.nil? - _ha = Array.new - spouses.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['spouses'] = _ha - end - if !children.nil? - _ha = Array.new - children.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['children'] = _ha - end - return _h - end - - # the json (string form) for this SearchResult - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this SearchResult with a json hash - def init_jaxb_json_hash(_o) - @ref = String.from_json(_o['ref']) unless _o['ref'].nil? - @primaryPerson = Org::Familysearch::Ws::Familytree::V1::Schema::SearchPerson.from_json(_o['primaryPerson']) unless _o['person'].nil? - if !_o['parents'].nil? - @parents = Array.new - _oa = _o['parents'] - _oa.each { | _item | @parents.push Org::Familysearch::Ws::Familytree::V1::Schema::SearchPerson.from_json(_item) } - end - if !_o['spouses'].nil? - @spouses = Array.new - _oa = _o['spouses'] - _oa.each { | _item | @spouses.push Org::Familysearch::Ws::Familytree::V1::Schema::SearchPerson.from_json(_item) } - end - if !_o['children'].nil? - @children = Array.new - _oa = _o['children'] - _oa.each { | _item | @children.push Org::Familysearch::Ws::Familytree::V1::Schema::SearchPerson.from_json(_item) } - end - end - - # constructs a SearchResult from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class PersonSummarySpouses - - # The assertion id of the spouse relationship to use as the selected spouse. - attr_accessor :spouseAssertionId - # Whether there are additional spouses. - attr_accessor :additional - # The most relevant spouses. - attr_accessor :spouses - - # the json hash for this PersonSummarySpouses - def to_jaxb_json_hash - _h = {} - _h['spouseAssertionId'] = spouseAssertionId.to_jaxb_json_hash unless spouseAssertionId.nil? - _h['additional'] = additional.to_jaxb_json_hash unless additional.nil? - if !spouses.nil? - _ha = Array.new - spouses.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['spouse'] = _ha - end - return _h - end - - # the json (string form) for this PersonSummarySpouses - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this PersonSummarySpouses with a json hash - def init_jaxb_json_hash(_o) - @spouseAssertionId = String.from_json(_o['spouseAssertionId']) unless _o['spouseAssertionId'].nil? - @additional = Boolean.from_json(_o['additional']) unless _o['additional'].nil? - if !_o['spouse'].nil? - @spouses = Array.new - _oa = _o['spouse'] - _oa.each { | _item | @spouses.push Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_item) } - end - end - - # constructs a PersonSummarySpouses from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class PersonSummaryParents - - # The assertion id of the mother relationship to use as the selected mother. - attr_accessor :motherAssertionId - # Whether there are additional parents. - attr_accessor :additional - # The assertion id of the father relationship to use as the selected father. - attr_accessor :fatherAssertionId - # The most relevant parents. - attr_accessor :parents - - # the json hash for this PersonSummaryParents - def to_jaxb_json_hash - _h = {} - _h['motherAssertionId'] = motherAssertionId.to_jaxb_json_hash unless motherAssertionId.nil? - _h['additional'] = additional.to_jaxb_json_hash unless additional.nil? - _h['fatherAssertionId'] = fatherAssertionId.to_jaxb_json_hash unless fatherAssertionId.nil? - if !parents.nil? - _ha = Array.new - parents.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['parent'] = _ha - end - return _h - end - - # the json (string form) for this PersonSummaryParents - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this PersonSummaryParents with a json hash - def init_jaxb_json_hash(_o) - @motherAssertionId = String.from_json(_o['motherAssertionId']) unless _o['motherAssertionId'].nil? - @additional = Boolean.from_json(_o['additional']) unless _o['additional'].nil? - @fatherAssertionId = String.from_json(_o['fatherAssertionId']) unless _o['fatherAssertionId'].nil? - if !_o['parent'].nil? - @parents = Array.new - _oa = _o['parent'] - _oa.each { | _item | @parents.push Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_item) } - end - end - - # constructs a PersonSummaryParents from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # The base for a person summary. - class PersonSummaryBase - - # The most relevant name. - attr_accessor :name - # The most relevant gender. - attr_accessor :gender - # The most relevant events. - attr_accessor :events - - # the json hash for this PersonSummaryBase - def to_jaxb_json_hash - _h = {} - _h['name'] = name.to_jaxb_json_hash unless name.nil? - _h['gender'] = gender.to_jaxb_json_hash unless gender.nil? - if !events.nil? - _ha = Array.new - events.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['events'] = _ha - end - return _h - end - - # the json (string form) for this PersonSummaryBase - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this PersonSummaryBase with a json hash - def init_jaxb_json_hash(_o) - @name = Org::Familysearch::Ws::Familytree::V1::Schema::NameSummary.from_json(_o['name']) unless _o['name'].nil? - @gender = Org::Familysearch::Ws::Familytree::V1::Schema::GenderSummary.from_json(_o['gender']) unless _o['gender'].nil? - if !_o['events'].nil? - @events = Array.new - _oa = _o['events'] - _oa.each { | _item | @events.push Org::Familysearch::Ws::Familytree::V1::Schema::EventSummary.from_json(_item) } - end - end - - # constructs a PersonSummaryBase from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A reference to a person. Designed to contain only a limited set of data compared to the actual person data. - class PersonReference - - # The ref. - attr_accessor :ref - # The role of this ref in relation to the person. - attr_accessor :role - # The temp id of this person reference (used for updates). - attr_accessor :tempId - # The version number for this person. - attr_accessor :version - - # the json hash for this PersonReference - def to_jaxb_json_hash - _h = {} - _h['ref'] = ref.to_jaxb_json_hash unless ref.nil? - _h['role'] = role.to_jaxb_json_hash unless role.nil? - _h['tempId'] = tempId.to_jaxb_json_hash unless tempId.nil? - _h['version'] = version.to_jaxb_json_hash unless version.nil? - return _h - end - - # the json (string form) for this PersonReference - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this PersonReference with a json hash - def init_jaxb_json_hash(_o) - @ref = String.from_json(_o['ref']) unless _o['ref'].nil? - @role = String.from_json(_o['role']) unless _o['role'].nil? - @tempId = String.from_json(_o['tempId']) unless _o['tempId'].nil? - @version = String.from_json(_o['version']) unless _o['version'].nil? - end - - # constructs a PersonReference from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A composition of personas. - class PersonComposition - - # The personas in this combination. - attr_accessor :personas - # List of persons (to combine). - attr_accessor :persons - - # the json hash for this PersonComposition - def to_jaxb_json_hash - _h = {} - _h['personas'] = personas.to_jaxb_json_hash unless personas.nil? - if !persons.nil? - _ha = Array.new - persons.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['persons'] = _ha - end - return _h - end - - # the json (string form) for this PersonComposition - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this PersonComposition with a json hash - def init_jaxb_json_hash(_o) - @personas = Org::Familysearch::Ws::Familytree::V1::Schema::Personas.from_json(_o['personas']) unless _o['personas'].nil? - if !_o['persons'].nil? - @persons = Array.new - _oa = _o['persons'] - _oa.each { | _item | @persons.push Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_item) } - end - end - - # constructs a PersonComposition from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A person. - class Person - - # The id that was actually requested (sometimes different from the real id if the person was combined). - attr_accessor :requestedId - # The version number for this person. - attr_accessor :version - # The modified timestamp for this person. - attr_accessor :modified - # The id of the person. - attr_accessor :id - # A temporary id for this person (e.g. for a person not persisted yet). - attr_accessor :tempId - # The meta-information about this person. - attr_accessor :information - # The summary of the person. - attr_accessor :summary - # The assertions for this person. - attr_accessor :assertions - # The assertion values for this person. - attr_accessor :values - # The composition of this person. - attr_accessor :composition - # A list of changes to the person - attr_accessor :changes - - # the json hash for this Person - def to_jaxb_json_hash - _h = {} - _h['requestedId'] = requestedId.to_jaxb_json_hash unless requestedId.nil? - _h['version'] = version.to_jaxb_json_hash unless version.nil? - _h['modified'] = modified.to_jaxb_json_hash unless modified.nil? - _h['id'] = id.to_jaxb_json_hash unless id.nil? - _h['tempId'] = tempId.to_jaxb_json_hash unless tempId.nil? - _h['information'] = information.to_jaxb_json_hash unless information.nil? - _h['summary'] = summary.to_jaxb_json_hash unless summary.nil? - _h['assertions'] = assertions.to_jaxb_json_hash unless assertions.nil? - _h['values'] = values.to_jaxb_json_hash unless values.nil? - _h['composition'] = composition.to_jaxb_json_hash unless composition.nil? - _h['changes'] = changes.to_jaxb_json_hash unless changes.nil? - return _h - end - - # the json (string form) for this Person - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Person with a json hash - def init_jaxb_json_hash(_o) - @requestedId = String.from_json(_o['requestedId']) unless _o['requestedId'].nil? - @version = String.from_json(_o['version']) unless _o['version'].nil? - @modified = Time.from_json(_o['modified']) unless _o['modified'].nil? - @id = String.from_json(_o['id']) unless _o['id'].nil? - @tempId = String.from_json(_o['tempId']) unless _o['tempId'].nil? - @information = Org::Familysearch::Ws::Familytree::V1::Schema::PersonInformation.from_json(_o['information']) unless _o['information'].nil? - @summary = Org::Familysearch::Ws::Familytree::V1::Schema::PersonSummary.from_json(_o['summary']) unless _o['summary'].nil? - @assertions = Org::Familysearch::Ws::Familytree::V1::Schema::Assertions.from_json(_o['assertions']) unless _o['assertions'].nil? - @values = Org::Familysearch::Ws::Familytree::V1::Schema::Assertions.from_json(_o['values']) unless _o['values'].nil? - @composition = Org::Familysearch::Ws::Familytree::V1::Schema::PersonComposition.from_json(_o['composition']) unless _o['composition'].nil? - @changes = Org::Familysearch::Ws::Familytree::V1::Schema::Changes.from_json(_o['changes']) unless _o['changes'].nil? - end - - # constructs a Person from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Text for a normalized place. - class NormalizedPlace - - # The place authority id. - attr_accessor :placeId - # The value. - attr_accessor :value - - # the json hash for this NormalizedPlace - def to_jaxb_json_hash - _h = {} - _h['placeId'] = placeId.to_jaxb_json_hash unless placeId.nil? - _h['value'] = value.to_jaxb_json_hash unless value.nil? - return _h - end - - # the json (string form) for this NormalizedPlace - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this NormalizedPlace with a json hash - def init_jaxb_json_hash(_o) - @placeId = String.from_json(_o['placeId']) unless _o['placeId'].nil? - @value = String.from_json(_o['value']) unless _o['value'].nil? - end - - # constructs a NormalizedPlace from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Name Summary. - class NameSummary - - # The id of the assertion whose value is to be set as the summary value. - attr_accessor :assertionId - # The contributor of the name. - attr_accessor :contributor - # The type of this name. - attr_accessor :type - # The modified date of the name. - attr_accessor :modified - # The name forms. - attr_accessor :forms - - # the json hash for this NameSummary - def to_jaxb_json_hash - _h = {} - _h['assertionId'] = assertionId.to_jaxb_json_hash unless assertionId.nil? - _h['contributor'] = contributor.to_jaxb_json_hash unless contributor.nil? - _h['type'] = type.to_jaxb_json_hash unless type.nil? - _h['modified'] = modified.to_jaxb_json_hash unless modified.nil? - if !forms.nil? - _ha = Array.new - forms.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['form'] = _ha - end - return _h - end - - # the json (string form) for this NameSummary - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this NameSummary with a json hash - def init_jaxb_json_hash(_o) - @assertionId = String.from_json(_o['assertionId']) unless _o['assertionId'].nil? - @contributor = String.from_json(_o['contributor']) unless _o['contributor'].nil? - @type = String.from_json(_o['type']) unless _o['type'].nil? - @modified = Time.from_json(_o['modified']) unless _o['modified'].nil? - if !_o['form'].nil? - @forms = Array.new - _oa = _o['form'] - _oa.each { | _item | @forms.push Org::Familysearch::Ws::Familytree::V1::Schema::NameForm.from_json(_item) } - end - end - - # constructs a NameSummary from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A name form. - class NameForm - - # The name form script. - attr_accessor :script - # The normalized full text of the name. - attr_accessor :fullText - # The name pieces. - attr_accessor :pieces - - # the json hash for this NameForm - def to_jaxb_json_hash - _h = {} - _h['script'] = script.to_jaxb_json_hash unless script.nil? - _h['fullText'] = fullText.to_jaxb_json_hash unless fullText.nil? - if !pieces.nil? - _ha = Array.new - pieces.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['pieces'] = _ha - end - return _h - end - - # the json (string form) for this NameForm - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this NameForm with a json hash - def init_jaxb_json_hash(_o) - @script = String.from_json(_o['script']) unless _o['script'].nil? - @fullText = String.from_json(_o['fullText']) unless _o['fullText'].nil? - if !_o['pieces'].nil? - @pieces = Array.new - _oa = _o['pieces'] - _oa.each { | _item | @pieces.push Org::Familysearch::Ws::Familytree::V1::Schema::NamePiece.from_json(_item) } - end - end - - # constructs a NameForm from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # An astro date. - class DateAstro - - # The earliest astro date. - attr_accessor :earliest - # The lastest astro date. - attr_accessor :latest - - # the json hash for this DateAstro - def to_jaxb_json_hash - _h = {} - _h['earliest'] = earliest.to_jaxb_json_hash unless earliest.nil? - _h['latest'] = latest.to_jaxb_json_hash unless latest.nil? - return _h - end - - # the json (string form) for this DateAstro - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this DateAstro with a json hash - def init_jaxb_json_hash(_o) - @earliest = String.from_json(_o['earliest']) unless _o['earliest'].nil? - @latest = String.from_json(_o['latest']) unless _o['latest'].nil? - end - - # constructs a DateAstro from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A contributor of information to new FamilySearch. - class Contributor - - # The id of the contributor. - attr_accessor :id - - # the json hash for this Contributor - def to_jaxb_json_hash - _h = {} - _h['id'] = id.to_jaxb_json_hash unless id.nil? - return _h - end - - # the json (string form) for this Contributor - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Contributor with a json hash - def init_jaxb_json_hash(_o) - @id = String.from_json(_o['id']) unless _o['id'].nil? - end - - # constructs a Contributor from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class Citations - - # The citations. - attr_accessor :citationItems - - # the json hash for this Citations - def to_jaxb_json_hash - _h = {} - if !citationItems.nil? - _ha = Array.new - citationItems.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['citation'] = _ha - end - return _h - end - - # the json (string form) for this Citations - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Citations with a json hash - def init_jaxb_json_hash(_o) - if !_o['citation'].nil? - @citationItems = Array.new - _oa = _o['citation'] - _oa.each { | _item | @citationItems.push Org::Familysearch::Ws::Familytree::V1::Schema::Citation.from_json(_item) } - end - end - - # constructs a Citations from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # An Assertion Comment. - class Citation - - # The id of the citation. - attr_accessor :id - # (no documentation provided) - attr_accessor :directEvidence - # (no documentation provided) - attr_accessor :primarySource - # (no documentation provided) - attr_accessor :entryDate - # Id of the assertion to which this note applies. - attr_accessor :assertion - # citation type - attr_accessor :type - # A temporary id for this citation (e.g. for a citation not persisted yet). - attr_accessor :tempId - # The citation source. - attr_accessor :source - # citation fields. - attr_accessor :citationFields - # The citation comment. - attr_accessor :comment - - # the json hash for this Citation - def to_jaxb_json_hash - _h = {} - _h['id'] = id.to_jaxb_json_hash unless id.nil? - _h['directEvidence'] = directEvidence.to_jaxb_json_hash unless directEvidence.nil? - _h['primarySource'] = primarySource.to_jaxb_json_hash unless primarySource.nil? - _h['entryDate'] = entryDate.to_jaxb_json_hash unless entryDate.nil? - _h['assertion'] = assertion.to_jaxb_json_hash unless assertion.nil? - _h['type'] = type.to_jaxb_json_hash unless type.nil? - _h['tempId'] = tempId.to_jaxb_json_hash unless tempId.nil? - _h['source'] = source.to_jaxb_json_hash unless source.nil? - if !citationFields.nil? - _ha = Array.new - citationFields.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['citationFields'] = _ha - end - _h['comment'] = comment.to_jaxb_json_hash unless comment.nil? - return _h - end - - # the json (string form) for this Citation - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Citation with a json hash - def init_jaxb_json_hash(_o) - @id = String.from_json(_o['id']) unless _o['id'].nil? - @directEvidence = Boolean.from_json(_o['directEvidence']) unless _o['directEvidence'].nil? - @primarySource = Boolean.from_json(_o['primarySource']) unless _o['primarySource'].nil? - @entryDate = String.from_json(_o['entryDate']) unless _o['entryDate'].nil? - @assertion = String.from_json(_o['assertion']) unless _o['assertion'].nil? - @type = String.from_json(_o['type']) unless _o['type'].nil? - @tempId = String.from_json(_o['tempId']) unless _o['tempId'].nil? - @source = Org::Familysearch::Ws::Familytree::V1::Schema::Source.from_json(_o['source']) unless _o['source'].nil? - if !_o['citationFields'].nil? - @citationFields = Array.new - _oa = _o['citationFields'] - _oa.each { | _item | @citationFields.push Org::Familysearch::Ws::Familytree::V1::Schema::CitationField.from_json(_item) } - end - @comment = String.from_json(_o['comment']) unless _o['comment'].nil? - end - - # constructs a Citation from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A person reference in a change entry. - class ChangePerson - - # a reference to the person. - attr_accessor :ref - - # the json hash for this ChangePerson - def to_jaxb_json_hash - _h = {} - _h['ref'] = ref.to_jaxb_json_hash unless ref.nil? - return _h - end - - # the json (string form) for this ChangePerson - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this ChangePerson with a json hash - def init_jaxb_json_hash(_o) - @ref = String.from_json(_o['ref']) unless _o['ref'].nil? - end - - # constructs a ChangePerson from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class Change - - # the timestamp of the change. - attr_accessor :timestamp - # the change id. - attr_accessor :id - # a reference to the submitter of the change. - attr_accessor :submitter - # a reference to the contributor of the change. - attr_accessor :contributor - # the change parent id. - attr_accessor :parent - # the change type. - attr_accessor :type - # a list of person references in a change entry. - attr_accessor :sources - # a list of references to the resulting persons of the change. - attr_accessor :results - - # the json hash for this Change - def to_jaxb_json_hash - _h = {} - _h['timestamp'] = timestamp.to_jaxb_json_hash unless timestamp.nil? - _h['id'] = id.to_jaxb_json_hash unless id.nil? - _h['submitter'] = submitter.to_jaxb_json_hash unless submitter.nil? - _h['contributor'] = contributor.to_jaxb_json_hash unless contributor.nil? - _h['parent'] = parent.to_jaxb_json_hash unless parent.nil? - _h['type'] = type.to_jaxb_json_hash unless type.nil? - if !sources.nil? - _ha = Array.new - sources.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['sourcePersons'] = _ha - end - if !results.nil? - _ha = Array.new - results.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['resultPersons'] = _ha - end - return _h - end - - # the json (string form) for this Change - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Change with a json hash - def init_jaxb_json_hash(_o) - @timestamp = Time.from_json(_o['timestamp']) unless _o['timestamp'].nil? - @id = String.from_json(_o['id']) unless _o['id'].nil? - @submitter = String.from_json(_o['submitter']) unless _o['submitter'].nil? - @contributor = String.from_json(_o['contributor']) unless _o['contributor'].nil? - @parent = String.from_json(_o['parent']) unless _o['parent'].nil? - @type = String.from_json(_o['type']) unless _o['type'].nil? - if !_o['sourcePersons'].nil? - @sources = Array.new - _oa = _o['sourcePersons'] - _oa.each { | _item | @sources.push Org::Familysearch::Ws::Familytree::V1::Schema::ChangePerson.from_json(_item) } - end - if !_o['resultPersons'].nil? - @results = Array.new - _oa = _o['resultPersons'] - _oa.each { | _item | @results.push Org::Familysearch::Ws::Familytree::V1::Schema::ChangePerson.from_json(_item) } - end - end - - # constructs a Change from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class AssertionReference - - # The disputing flag. - attr_accessor :disputing - # The ref. - attr_accessor :ref - # Whether this is a modifiable assertion. - attr_accessor :modifiable - # The reference to the submitter who submitted this assertion. - attr_accessor :submitter - # The reference to the contributor who contributed this assertion. - attr_accessor :contributor - # The modified timestamp for this assertion. - attr_accessor :modified - # The version for this assertion. - attr_accessor :version - - # the json hash for this AssertionReference - def to_jaxb_json_hash - _h = {} - _h['disputing'] = disputing.to_jaxb_json_hash unless disputing.nil? - _h['ref'] = ref.to_jaxb_json_hash unless ref.nil? - _h['modifiable'] = modifiable.to_jaxb_json_hash unless modifiable.nil? - _h['submitter'] = submitter.to_jaxb_json_hash unless submitter.nil? - _h['contributor'] = contributor.to_jaxb_json_hash unless contributor.nil? - _h['modified'] = modified.to_jaxb_json_hash unless modified.nil? - _h['version'] = version.to_jaxb_json_hash unless version.nil? - return _h - end - - # the json (string form) for this AssertionReference - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this AssertionReference with a json hash - def init_jaxb_json_hash(_o) - @disputing = Boolean.from_json(_o['disputing']) unless _o['disputing'].nil? - @ref = String.from_json(_o['ref']) unless _o['ref'].nil? - @modifiable = Boolean.from_json(_o['modifiable']) unless _o['modifiable'].nil? - @submitter = String.from_json(_o['submitter']) unless _o['submitter'].nil? - @contributor = String.from_json(_o['contributor']) unless _o['contributor'].nil? - @modified = Time.from_json(_o['modified']) unless _o['modified'].nil? - @version = String.from_json(_o['version']) unless _o['version'].nil? - end - - # constructs a AssertionReference from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # An assertion. - class Assertion - - # Whether this is a modifiable assertion. - attr_accessor :modifiable - # The reference to the submitter who submitted this assertion. - attr_accessor :submitter - # The version for this assertion. - attr_accessor :version - # The modified timestamp for this assertion. - attr_accessor :modified - # The id of the assertion. - attr_accessor :id - # Whether this is a disputing assertion. - attr_accessor :disputing - # The reference to the contributor who submitted this assertion. - attr_accessor :contributor - # A temporary id for this assertion (e.g. for an assertion not persisted yet). - attr_accessor :tempId - # The notes. - attr_accessor :notes - # The citations. - attr_accessor :citations - # The list of assertionReferences for this assertion (implies an assertion value). - attr_accessor :assertionReferences - - # the json hash for this Assertion - def to_jaxb_json_hash - _h = {} - _h['modifiable'] = modifiable.to_jaxb_json_hash unless modifiable.nil? - _h['submitter'] = submitter.to_jaxb_json_hash unless submitter.nil? - _h['version'] = version.to_jaxb_json_hash unless version.nil? - _h['modified'] = modified.to_jaxb_json_hash unless modified.nil? - _h['id'] = id.to_jaxb_json_hash unless id.nil? - _h['disputing'] = disputing.to_jaxb_json_hash unless disputing.nil? - _h['contributor'] = contributor.to_jaxb_json_hash unless contributor.nil? - _h['tempId'] = tempId.to_jaxb_json_hash unless tempId.nil? - _h['notes'] = notes.to_jaxb_json_hash unless notes.nil? - _h['citations'] = citations.to_jaxb_json_hash unless citations.nil? - if !assertionReferences.nil? - _ha = Array.new - assertionReferences.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['assertions'] = _ha - end - return _h - end - - # the json (string form) for this Assertion - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Assertion with a json hash - def init_jaxb_json_hash(_o) - @modifiable = Boolean.from_json(_o['modifiable']) unless _o['modifiable'].nil? - @submitter = String.from_json(_o['submitter']) unless _o['submitter'].nil? - @version = String.from_json(_o['version']) unless _o['version'].nil? - @modified = Time.from_json(_o['modified']) unless _o['modified'].nil? - @id = String.from_json(_o['id']) unless _o['id'].nil? - @disputing = Boolean.from_json(_o['disputing']) unless _o['disputing'].nil? - @contributor = String.from_json(_o['contributor']) unless _o['contributor'].nil? - @tempId = String.from_json(_o['tempId']) unless _o['tempId'].nil? - @notes = Org::Familysearch::Ws::Familytree::V1::Schema::Notes.from_json(_o['notes']) unless _o['notes'].nil? - @citations = Org::Familysearch::Ws::Familytree::V1::Schema::Citations.from_json(_o['citations']) unless _o['citations'].nil? - if !_o['assertions'].nil? - @assertionReferences = Array.new - _oa = _o['assertions'] - _oa.each { | _item | @assertionReferences.push Org::Familysearch::Ws::Familytree::V1::Schema::AssertionReference.from_json(_item) } - end - end - - # constructs a Assertion from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - module V2 module Schema # Selected Information (Selectable Summary). @@ -6365,255 +3463,10 @@ module Ws module Familytree -module V1 - -module Schema - - # A place. - class Place - - # The place value. - attr_accessor :original - # The normalized form of the place. - attr_accessor :normalized - - # the json hash for this Place - def to_jaxb_json_hash - _h = {} - _h['original'] = original.to_jaxb_json_hash unless original.nil? - _h['normalized'] = normalized.to_jaxb_json_hash unless normalized.nil? - return _h - end - - # the json (string form) for this Place - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Place with a json hash - def init_jaxb_json_hash(_o) - @original = String.from_json(_o['original']) unless _o['original'].nil? - @normalized = Org::Familysearch::Ws::Familytree::V1::Schema::NormalizedPlace.from_json(_o['normalized']) unless _o['normalized'].nil? - end - - # constructs a Place from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A postal address. - class PostalAddress - - # The first address field for the postal address. - attr_accessor :address1 - # The second address field for the postal address. - attr_accessor :address2 - # The third address field for the postal address. - attr_accessor :address3 - # The fourth address field for the postal address. - attr_accessor :address4 - # The first street field for the postal street. - attr_accessor :street1 - # The second street field for the postal street. - attr_accessor :street2 - # The third street field for the postal street. - attr_accessor :street3 - # The city. - attr_accessor :city - # The province. - attr_accessor :province - # The country. - attr_accessor :country - # The postal code. - attr_accessor :postalcode - - # the json hash for this PostalAddress - def to_jaxb_json_hash - _h = {} - _h['address1'] = address1.to_jaxb_json_hash unless address1.nil? - _h['address2'] = address2.to_jaxb_json_hash unless address2.nil? - _h['address3'] = address3.to_jaxb_json_hash unless address3.nil? - _h['address4'] = address4.to_jaxb_json_hash unless address4.nil? - _h['street1'] = street1.to_jaxb_json_hash unless street1.nil? - _h['street2'] = street2.to_jaxb_json_hash unless street2.nil? - _h['street3'] = street3.to_jaxb_json_hash unless street3.nil? - _h['city'] = city.to_jaxb_json_hash unless city.nil? - _h['province'] = province.to_jaxb_json_hash unless province.nil? - _h['country'] = country.to_jaxb_json_hash unless country.nil? - _h['postalcode'] = postalcode.to_jaxb_json_hash unless postalcode.nil? - return _h - end - - # the json (string form) for this PostalAddress - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this PostalAddress with a json hash - def init_jaxb_json_hash(_o) - @address1 = String.from_json(_o['address1']) unless _o['address1'].nil? - @address2 = String.from_json(_o['address2']) unless _o['address2'].nil? - @address3 = String.from_json(_o['address3']) unless _o['address3'].nil? - @address4 = String.from_json(_o['address4']) unless _o['address4'].nil? - @street1 = String.from_json(_o['street1']) unless _o['street1'].nil? - @street2 = String.from_json(_o['street2']) unless _o['street2'].nil? - @street3 = String.from_json(_o['street3']) unless _o['street3'].nil? - @city = String.from_json(_o['city']) unless _o['city'].nil? - @province = String.from_json(_o['province']) unless _o['province'].nil? - @country = String.from_json(_o['country']) unless _o['country'].nil? - @postalcode = String.from_json(_o['postalcode']) unless _o['postalcode'].nil? - end - - # constructs a PostalAddress from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Source Repository - class Repository - - # The repository type. - attr_accessor :type - # the repository name. - attr_accessor :name - # The repository URL. - attr_accessor :url - # The repository address. - attr_accessor :address - # The repository phone number. - attr_accessor :phone - # The repository fax number. - attr_accessor :fax - # The repository comment - attr_accessor :comment - - # the json hash for this Repository - 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['url'] = url.to_jaxb_json_hash unless url.nil? - _h['address'] = address.to_jaxb_json_hash unless address.nil? - _h['phone'] = phone.to_jaxb_json_hash unless phone.nil? - _h['fax'] = fax.to_jaxb_json_hash unless fax.nil? - _h['comment'] = comment.to_jaxb_json_hash unless comment.nil? - return _h - end - - # the json (string form) for this Repository - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this Repository with a json hash - def init_jaxb_json_hash(_o) - @type = String.from_json(_o['type']) unless _o['type'].nil? - @name = String.from_json(_o['name']) unless _o['name'].nil? - @url = String.from_json(_o['url']) unless _o['url'].nil? - @address = Org::Familysearch::Ws::Familytree::V1::Schema::PostalAddress.from_json(_o['address']) unless _o['address'].nil? - @phone = String.from_json(_o['phone']) unless _o['phone'].nil? - @fax = String.from_json(_o['fax']) unless _o['fax'].nil? - @comment = String.from_json(_o['comment']) unless _o['comment'].nil? - end - - # constructs a Repository from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - module V2 module Schema # An assertion. @@ -6745,382 +3598,10 @@ module Ws module Familytree -module V1 - -module Schema - - # A user is a contributor that represents an actual user of the new FamilySearch. - class User < Org::Familysearch::Ws::Familytree::V1::Schema::Contributor - - # The name of the user. - attr_accessor :name - # The full name of the user. - attr_accessor :fullName - # The email of the user. - attr_accessor :email - # The address number of the user. - attr_accessor :address - # The phone number of the user. - attr_accessor :phone - # The user aliases. - attr_accessor :aliases - - # the json hash for this User - def to_jaxb_json_hash - _h = super - _h['name'] = name.to_jaxb_json_hash unless name.nil? - _h['fullName'] = fullName.to_jaxb_json_hash unless fullName.nil? - _h['email'] = email.to_jaxb_json_hash unless email.nil? - _h['address'] = address.to_jaxb_json_hash unless address.nil? - _h['phone'] = phone.to_jaxb_json_hash unless phone.nil? - if !aliases.nil? - _ha = Array.new - aliases.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['aliases'] = _ha - end - return _h - end - - #initializes this User with a json hash - def init_jaxb_json_hash(_o) - super _o - @name = String.from_json(_o['name']) unless _o['name'].nil? - @fullName = String.from_json(_o['fullName']) unless _o['fullName'].nil? - @email = String.from_json(_o['email']) unless _o['email'].nil? - @address = Org::Familysearch::Ws::Familytree::V1::Schema::PostalAddress.from_json(_o['address']) unless _o['address'].nil? - @phone = String.from_json(_o['phone']) unless _o['phone'].nil? - if !_o['aliases'].nil? - @aliases = Array.new - _oa = _o['aliases'] - _oa.each { | _item | @aliases.push Org::Familysearch::Ws::Familytree::V1::Schema::UserAlias.from_json(_item) } - end - end - - # constructs a User from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Source Type - class SourceType - - # (no documentation provided) - Church_Record = "Church_Record" - - # (no documentation provided) - Company_Record = "Company_Record" - - # (no documentation provided) - Family_Possession = "Family_Possession" - - # (no documentation provided) - Government_Record = "Government_Record" - - # (no documentation provided) - Memory_of_Someone = "Memory_of_Someone" - - # (no documentation provided) - Published_Information = "Published_Information" - - # (no documentation provided) - School_Record = "School_Record" - - # (no documentation provided) - Other = "Other" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A person used for displaying seach results. - class SearchPerson < Org::Familysearch::Ws::Familytree::V1::Schema::PersonSummaryBase - - # The id of the person for which this is a reference. - attr_accessor :ref - # The role of the search person. - attr_accessor :role - # The minimum birth year for this person. - attr_accessor :minBirthYear - # The maximum death year for this person. - attr_accessor :maxDeathYear - - # the json hash for this SearchPerson - def to_jaxb_json_hash - _h = super - _h['ref'] = ref.to_jaxb_json_hash unless ref.nil? - _h['role'] = role.to_jaxb_json_hash unless role.nil? - _h['minBirthYear'] = minBirthYear.to_jaxb_json_hash unless minBirthYear.nil? - _h['maxDeathYear'] = maxDeathYear.to_jaxb_json_hash unless maxDeathYear.nil? - return _h - end - - #initializes this SearchPerson with a json hash - def init_jaxb_json_hash(_o) - super _o - @ref = String.from_json(_o['ref']) unless _o['ref'].nil? - @role = String.from_json(_o['role']) unless _o['role'].nil? - @minBirthYear = String.from_json(_o['minBirthYear']) unless _o['minBirthYear'].nil? - @maxDeathYear = String.from_json(_o['maxDeathYear']) unless _o['maxDeathYear'].nil? - end - - # constructs a SearchPerson from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class SearchHit < Org::Familysearch::Ws::Familytree::V1::Schema::SearchResult - - # The star count for this person. - attr_accessor :score - - # the json hash for this SearchHit - def to_jaxb_json_hash - _h = super - _h['score'] = score.to_jaxb_json_hash unless score.nil? - return _h - end - - #initializes this SearchHit with a json hash - def init_jaxb_json_hash(_o) - super _o - @score = Fixnum.from_json(_o['score']) unless _o['score'].nil? - end - - # constructs a SearchHit from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Enumeration of fact types. - class FactType - - # Caste Name - Caste_Name = "Caste_Name" - - # Clan Name - Clan_Name = "Clan_Name" - - # Nation ID - National_ID = "National_ID" - - # National Origin - National_Origin = "National_Origin" - - # Nobility Title - Nobility_Title = "Nobility_Title" - - # Occupation - Occupation = "Occupation" - - # Physical Description - Physical_Description = "Physical_Description" - - # Race - Race = "Race" - - # Religious Affilication - Religious_Affiliation = "Religious_Affiliation" - - # Stillborn - Stillborn = "Stillborn" - - # Tribe Name - Tribe_Name = "Tribe_Name" - - # Family Univeral ID. - GEDCOM_ID = "GEDCOM_ID" - - # Common Law Marriage - Common_Law_Marriage = "Common_Law_Marriage" - - # Lineage parent-child type. - Lineage = "Lineage" - - # Lineage parent-child type. - Exists = "Exists" - - # User-defined fact type. - Other = "Other" - - # Count of Children. - Number_of_Children = "Number_of_Children" - - # Count of Marriages. - Number_of_Marriages = "Number_of_Marriages" - - # Currently Spouses. - Currently_Spouses = "Currently_Spouses" - - # Died before Eight. - Died_before_Eight = "Died_before_Eight" - - # Name Sake. - Name_Sake = "Name_Sake" - - # Never Had Childred. - Never_Had_Children = "Never_Had_Children" - - # Never Married. - Never_Married = "Never_Married" - - # Not Accountable. - Not_Accountable = "Not_Accountable" - - # Possessions. - Possessions = "Possessions" - - # Residence. - Residence = "Residence" - - # Scholastic Achievement. - Scholastic_Achievement = "Scholastic_Achievement" - - # Social Security Number. - Social_Security_Number = "Social_Security_Number" - - # Twin. - Twin = "Twin" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - module V2 module Schema # Change Action Type @@ -7178,889 +3659,10 @@ module Ws module Familytree -module V1 - -module Schema - - # A summary of information about a person. - class PersonSummary < Org::Familysearch::Ws::Familytree::V1::Schema::PersonSummaryBase - - # Whether the summary is modifiable. - attr_accessor :modifiable - # The most relevant spouses. - attr_accessor :spouses - # The most relevant parents. - attr_accessor :parents - # The most relevant children. - attr_accessor :children - - # the json hash for this PersonSummary - def to_jaxb_json_hash - _h = super - _h['modifiable'] = modifiable.to_jaxb_json_hash unless modifiable.nil? - _h['spouses'] = spouses.to_jaxb_json_hash unless spouses.nil? - _h['parents'] = parents.to_jaxb_json_hash unless parents.nil? - _h['children'] = children.to_jaxb_json_hash unless children.nil? - return _h - end - - #initializes this PersonSummary with a json hash - def init_jaxb_json_hash(_o) - super _o - @modifiable = Boolean.from_json(_o['modifiable']) unless _o['modifiable'].nil? - @spouses = Org::Familysearch::Ws::Familytree::V1::Schema::PersonSummarySpouses.from_json(_o['spouses']) unless _o['spouses'].nil? - @parents = Org::Familysearch::Ws::Familytree::V1::Schema::PersonSummaryParents.from_json(_o['parents']) unless _o['parents'].nil? - @children = Org::Familysearch::Ws::Familytree::V1::Schema::PersonSummaryChildren.from_json(_o['children']) unless _o['children'].nil? - end - - # constructs a PersonSummary from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # An assertion that occurs. - class OccurringAssertion < Org::Familysearch::Ws::Familytree::V1::Schema::Assertion - - # The scope of the occurrence. - attr_accessor :scope - # The date the assertion occurred. - attr_accessor :date - # The place the assertion occurred. - attr_accessor :place - - # the json hash for this OccurringAssertion - def to_jaxb_json_hash - _h = super - _h['scope'] = scope.to_jaxb_json_hash unless scope.nil? - _h['date'] = date.to_jaxb_json_hash unless date.nil? - _h['place'] = place.to_jaxb_json_hash unless place.nil? - return _h - end - - #initializes this OccurringAssertion with a json hash - def init_jaxb_json_hash(_o) - super _o - @scope = String.from_json(_o['scope']) unless _o['scope'].nil? - @date = Org::Familysearch::Ws::Familytree::V1::Schema::DateData.from_json(_o['date']) unless _o['date'].nil? - @place = Org::Familysearch::Ws::Familytree::V1::Schema::Place.from_json(_o['place']) unless _o['place'].nil? - end - - # constructs a OccurringAssertion from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class PersonErrorReference < Org::Familysearch::Ws::Familytree::V1::Schema::ErrorReference - - # Whether the error applies to the summary update. - attr_accessor :summary - - # the json hash for this PersonErrorReference - def to_jaxb_json_hash - _h = super - _h['summary'] = summary.to_jaxb_json_hash unless summary.nil? - return _h - end - - #initializes this PersonErrorReference with a json hash - def init_jaxb_json_hash(_o) - super _o - @summary = Boolean.from_json(_o['summary']) unless _o['summary'].nil? - end - - # constructs a PersonErrorReference from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class OrdinanceType - - # Baptism. - Baptism = "Baptism" - - # Confirmation. - Confirmation = "Confirmation" - - # Initiatory. - Initiatory = "Initiatory" - - # Endowment. - Endowment = "Endowment" - - # Sealing to parents. - Sealing_to_Parents = "Sealing_to_Parents" - - # Sealing to spouse. - Sealing_to_Spouse = "Sealing_to_Spouse" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class Match < Org::Familysearch::Ws::Familytree::V1::Schema::SearchResult - - # The confidence of the match. - attr_accessor :confidence - # The star count for this person. - attr_accessor :score - - # the json hash for this Match - def to_jaxb_json_hash - _h = super - _h['confidence'] = confidence.to_jaxb_json_hash unless confidence.nil? - _h['score'] = score.to_jaxb_json_hash unless score.nil? - return _h - end - - #initializes this Match with a json hash - def init_jaxb_json_hash(_o) - super _o - @confidence = String.from_json(_o['confidence']) unless _o['confidence'].nil? - @score = Float.from_json(_o['score']) unless _o['score'].nil? - end - - # constructs a Match from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class NameType - - # Also known as. - AKA = "AKA" - - # Also known as. - Married_Name = "Married_Name" - - # Birth name. - Name = "Name" - - # Nickname - Nickname = "Nickname" - - # Other - Other = "Other" - - # Phonetic - Phonetic = "Phonetic" - - # Unknown - Unknown = "Unknown" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Enumeration of name piece types. - class NamePieceType - - # Prefix piece. - Prefix = "Prefix" - - # Suffix piece. - Suffix = "Suffix" - - # Given piece. - Given = "Given" - - # Family piece. - Family = "Family" - - # Other piece. - Other = "Other" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class NameFormScript - - # (no documentation provided) - Spanish = "Spanish" - - # (no documentation provided) - Portuguese = "Portuguese" - - # (no documentation provided) - Chinese = "Chinese" - - # (no documentation provided) - Kana = "Kana" - - # (no documentation provided) - Hangul = "Hangul" - - # (no documentation provided) - Cyrillic = "Cyrillic" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # The name of a person. - class Name < Org::Familysearch::Ws::Familytree::V1::Schema::Assertion - - # The type of this name. - attr_accessor :type - # The name forms. - attr_accessor :forms - - # the json hash for this Name - def to_jaxb_json_hash - _h = super - _h['type'] = type.to_jaxb_json_hash unless type.nil? - if !forms.nil? - _ha = Array.new - forms.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['forms'] = _ha - end - return _h - end - - #initializes this Name with a json hash - def init_jaxb_json_hash(_o) - super _o - @type = String.from_json(_o['type']) unless _o['type'].nil? - if !_o['forms'].nil? - @forms = Array.new - _oa = _o['forms'] - _oa.each { | _item | @forms.push Org::Familysearch::Ws::Familytree::V1::Schema::NameForm.from_json(_item) } - end - end - - # constructs a Name from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Media Type - class MediaType - - # (no documentation provided) - Article = "Article" - - # (no documentation provided) - Audio = "Audio" - - # (no documentation provided) - Book = "Book" - - # (no documentation provided) - Cassette_Tape = "Cassette_Tape" - - # (no documentation provided) - Compact_Disc = "Compact_Disc" - - # (no documentation provided) - DVD = "DVD" - - # (no documentation provided) - Email = "Email" - - # (no documentation provided) - Eight_MM = "Eight_MM" - - # (no documentation provided) - Electronic_Document = "Electronic_Document" - - # (no documentation provided) - Gazetteer = "Gazetteer" - - # (no documentation provided) - Internet = "Internet" - - # (no documentation provided) - Magazine = "Magazine" - - # (no documentation provided) - Manuscript = "Manuscript" - - # (no documentation provided) - Map = "Map" - - # (no documentation provided) - Memorabilia = "Memorabilia" - - # (no documentation provided) - Microfilm = "Microfilm" - - # (no documentation provided) - Microfiche = "Microfiche" - - # (no documentation provided) - Newspaper = "Newspaper" - - # (no documentation provided) - Periodical = "Periodical" - - # (no documentation provided) - Photograph = "Photograph" - - # (no documentation provided) - Paper = "Paper" - - # (no documentation provided) - Reel_to_Reel = "Reel_to_Reel" - - # (no documentation provided) - VHS = "VHS" - - # (no documentation provided) - Video = "Video" - - # (no documentation provided) - Website = "Website" - - # (no documentation provided) - Written_Correspondence = "Written_Correspondence" - - # (no documentation provided) - Other = "Other" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # The confidence level of a match. - class MatchConfidence - - # (no documentation provided) - High = "High" - - # (no documentation provided) - Medium = "Medium" - - # (no documentation provided) - Low = "Low" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # The gender types. - class GenderType - - # (no documentation provided) - Male = "Male" - - # (no documentation provided) - Female = "Female" - - # (no documentation provided) - Unknown = "Unknown" - - # (no documentation provided) - Unspecified = "Unspecified" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # The gender of a person. - class Gender < Org::Familysearch::Ws::Familytree::V1::Schema::Assertion - - # The type of the gender. - attr_accessor :value - - # the json hash for this Gender - def to_jaxb_json_hash - _h = super - _h['value'] = value.to_jaxb_json_hash unless value.nil? - return _h - end - - #initializes this Gender with a json hash - def init_jaxb_json_hash(_o) - super _o - @value = String.from_json(_o['value']) unless _o['value'].nil? - end - - # constructs a Gender from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Citation Type - class CitationType - - # (no documentation provided) - Artifact = "Artifact" - - # (no documentation provided) - Interview = "Interview" - - # (no documentation provided) - In_My_Possession = "In_My_Possession" - - # (no documentation provided) - Lecture = "Lecture" - - # (no documentation provided) - Possession_of_Someone_Else = "Possession_of_Someone_Else" - - # (no documentation provided) - Standard_Source = "Standard_Source" - - # (no documentation provided) - Word_of_Mouth = "Word_of_Mouth" - - # (no documentation provided) - Written_Correspondence = "Written_Correspondence" - - # (no documentation provided) - Other = "Other" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Citation Field Type - class CitationFieldType - - # (no documentation provided) - Actual_Text = "Actual_Text" - - # (no documentation provided) - Batch_Number = "Batch_Number" - - # (no documentation provided) - Batch_Type = "Batch_Type" - - # (no documentation provided) - Book_Number = "Book_Number" - - # (no documentation provided) - Call_Number = "Call_Number" - - # (no documentation provided) - Citation_Type = "Citation_Type" - - # (no documentation provided) - Description = "Description" - - # (no documentation provided) - Event_Date = "Event_Date" - - # (no documentation provided) - Event_Role = "Event_Role" - - # (no documentation provided) - Event_Type = "Event_Type" - - # (no documentation provided) - Frame_Number = "Frame_Number" - - # (no documentation provided) - Image_Number = "Image_Number" - - # (no documentation provided) - Link = "Link" - - # (no documentation provided) - LDS_Temple_Record_Number = "LDS_Temple_Record_Number" - - # (no documentation provided) - Location_in_Source = "Location_in_Source" - - # (no documentation provided) - Page_Number = "Page_Number" - - # (no documentation provided) - Record_Number = "Record_Number" - - # (no documentation provided) - Reference_Number = "Reference_Number" - - # (no documentation provided) - Serial_Number = "Serial_Number" - - # (no documentation provided) - Sheet_Number = "Sheet_Number" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - module V2 module Schema # Citation Field Type @@ -8142,44 +3744,10 @@ module Ws module Familytree -module V1 - -module Schema - - # Change Type - class ChangeType - - # (no documentation provided) - Combine = "Combine" - - # (no documentation provided) - Separate = "Separate" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - module V2 module Schema # @@ -9531,475 +5099,10 @@ module Ws module Familytree -module V1 - -module Schema - - # Repository Type - class RepositoryType - - # (no documentation provided) - Archive = "Archive" - - # (no documentation provided) - Church = "Church" - - # (no documentation provided) - Individual = "Individual" - - # (no documentation provided) - Government = "Government" - - # (no documentation provided) - Library = "Library" - - # (no documentation provided) - Newspaper = "Newspaper" - - # (no documentation provided) - School = "School" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Source Detail - class SourceDetail - - # (no documentation provided) - Adoption_Papers = "Adoption_Papers" - - # (no documentation provided) - Anniversary_Announcement = "Anniversary_Announcement" - - # (no documentation provided) - Baptism_Record = "Baptism_Record" - - # (no documentation provided) - Birth_Announcement = "Birth_Announcement" - - # (no documentation provided) - Birth_Record = "Birth_Record" - - # (no documentation provided) - Blessing_Record = "Blessing_Record" - - # (no documentation provided) - Burial_Record = "Burial_Record" - - # (no documentation provided) - Cemetery_Record = "Cemetery_Record" - - # (no documentation provided) - Census_Record = "Census_Record" - - # (no documentation provided) - Christening_Record = "Christening_Record" - - # (no documentation provided) - Citizenship_Record = "Citizenship_Record" - - # (no documentation provided) - Court_Record = "Court_Record" - - # (no documentation provided) - Death_Record = "Death_Record" - - # (no documentation provided) - Diploma = "Diploma" - - # (no documentation provided) - Divorce_Record = "Divorce_Record" - - # (no documentation provided) - Family_Bible = "Family_Bible" - - # (no documentation provided) - Family_Genealogies = "Family_Genealogies" - - # (no documentation provided) - Memory_of_Friend = "Memory_of_Friend" - - # (no documentation provided) - Funeral_Program = "Funeral_Program" - - # (no documentation provided) - Handwritten_Information = "Handwritten_Information" - - # (no documentation provided) - Honor_Roll = "Honor_Roll" - - # (no documentation provided) - Insurance_Policy = "Insurance_Policy" - - # (no documentation provided) - Journal = "Journal" - - # (no documentation provided) - Land_Record = "Land_Record" - - # (no documentation provided) - Letter = "Letter" - - # (no documentation provided) - Marriage_Record = "Marriage_Record" - - # (no documentation provided) - Medical_Record = "Medical_Record" - - # (no documentation provided) - Military_Record = "Military_Record" - - # (no documentation provided) - Mortgage_Record = "Mortgage_Record" - - # (no documentation provided) - My_Memory = "My_Memory" - - # (no documentation provided) - Newspaper_Article = "Newspaper_Article" - - # (no documentation provided) - Obituary = "Obituary" - - # (no documentation provided) - Ordination_Record = "Ordination_Record" - - # (no documentation provided) - Memory_of_Parent = "Memory_of_Parent" - - # (no documentation provided) - Passenger_Record = "Passenger_Record" - - # (no documentation provided) - Photographs = "Photographs" - - # (no documentation provided) - Probate_Record = "Probate_Record" - - # (no documentation provided) - Memory_of_Relative = "Memory_of_Relative" - - # (no documentation provided) - Memory_of_Sibling = "Memory_of_Sibling" - - # (no documentation provided) - Report_Card = "Report_Card" - - # (no documentation provided) - Social_Security_Record = "Social_Security_Record" - - # (no documentation provided) - Society_Membership = "Society_Membership" - - # (no documentation provided) - Tax_Record = "Tax_Record" - - # (no documentation provided) - Transcript = "Transcript" - - # (no documentation provided) - Voting_Record = "Voting_Record" - - # (no documentation provided) - Wedding_Announcement = "Wedding_Announcement" - - # (no documentation provided) - Yearbook = "Yearbook" - - # (no documentation provided) - Unknown = "Unknown" - - # (no documentation provided) - Other = "Other" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # Source Field Type - class SourceFieldType - - # (no documentation provided) - Abbreviation = "Abbreviation" - - # (no documentation provided) - Actual_Text = "Actual_Text" - - # (no documentation provided) - Agency = "Agency" - - # (no documentation provided) - Author = "Author" - - # (no documentation provided) - Batch_Number = "Batch_Number" - - # (no documentation provided) - Call_Number = "Call_Number" - - # (no documentation provided) - Film_Number = "Film_Number" - - # (no documentation provided) - Language = "Language" - - # (no documentation provided) - Link = "Link" - - # (no documentation provided) - Locality = "Locality" - - # (no documentation provided) - Place = "Place" - - # (no documentation provided) - Provider = "Provider" - - # (no documentation provided) - Publication_Information = "Publication_Information" - - # (no documentation provided) - Reference_Number = "Reference_Number" - - # (no documentation provided) - Media_Type = "Media_Type" - - # (no documentation provided) - Source_Detail = "Source_Detail" - - # (no documentation provided) - Source_Type = "Source_Type" - - # (no documentation provided) - Template = "Template" - - # (no documentation provided) - Template_Type = "Template_Type" - - # (no documentation provided) - Time_Period = "Time_Period" - - # (no documentation provided) - Title = "Title" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # The role of a person in a given context. - class Role - - # Son. - Son = "Son" - - # Daughter. - Daughter = "Daughter" - - # Man. - Man = "Man" - - # Woman. - Woman = "Woman" - - # Father. - Father = "Father" - - # Mother - Mother = "Mother" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A scope of an assertion. - class Scope - - # The assertion applies to a person. - Person = "person" - - # The assertion applies to a couple. - Couple = "couple" - - # The assertion applies to a parent-child relationship. - ParentChild = "parentChild" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # A generic relationship assertion. - class Relationship < Org::Familysearch::Ws::Familytree::V1::Schema::Assertion - - # The scope of the relationship. - attr_accessor :scope - # The reference to the spouse associated with this relationship. - attr_accessor :spouse - # The reference to the parent associated with this relationship. - attr_accessor :parent - # The reference to the child associated with this relationship. - attr_accessor :child - - # the json hash for this Relationship - def to_jaxb_json_hash - _h = super - _h['scope'] = scope.to_jaxb_json_hash unless scope.nil? - _h['spouse'] = spouse.to_jaxb_json_hash unless spouse.nil? - _h['parent'] = parent.to_jaxb_json_hash unless parent.nil? - _h['child'] = child.to_jaxb_json_hash unless child.nil? - return _h - end - - #initializes this Relationship with a json hash - def init_jaxb_json_hash(_o) - super _o - @scope = String.from_json(_o['scope']) unless _o['scope'].nil? - @spouse = Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_o['spouse']) unless _o['spouse'].nil? - @parent = Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_o['parent']) unless _o['parent'].nil? - @child = Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_o['child']) unless _o['child'].nil? - end - - # constructs a Relationship from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - module V2 module Schema # Media Type @@ -10326,178 +5429,10 @@ module Ws module Familytree -module V1 - -module Schema - - # - class EventType - - # Adoption - Adoption = "Adoption" - - # Adult Christening - Adult_Christening = "Adult_Christening" - - # Non LDS Baptism - Baptism = "Baptism" - - # Non LDS Confirmation - Confirmation = "Confirmation" - - # Bar Mitzvah - Bar_Mitzvah = "Bar_Mitzvah" - - # Bas Mitzvah - Bas_Mitzvah = "Bas_Mitzvah" - - # Birth - Birth = "Birth" - - # Blessing - Blessing = "Blessing" - - # Burial - Burial = "Burial" - - # Christening - Christening = "Christening" - - # Cremation - Cremation = "Cremation" - - # Death - Death = "Death" - - # Graduation - Graduation = "Graduation" - - # Immigration - Immigration = "Immigration" - - # Military Service - Military_Service = "Military_Service" - - # Mission - Mission = "Mission" - - # Move - Move = "Move" - - # Naturalization - Naturalization = "Naturalization" - - # Probate - Probate = "Probate" - - # Retirement - Retirement = "Retirement" - - # Will - Will = "Will" - - # Annulment. - Annulment = "Annulment" - - # Divorce. - Divorce = "Divorce" - - # Divorce Filing. - Divorce_Filing = "Divorce_Filing" - - # Engagement - Engagement = "Engagement" - - # Marriage. - Marriage = "Marriage" - - # Marriage Notice. - Marriage_Banns = "Marriage_Banns" - - # Marriage Contract. - Marriage_Contract = "Marriage_Contract" - - # Marriage License. - Marriage_License = "Marriage_License" - - # A user-defined event. - Other = "Other" - - # Census - Census = "Census" - - # Circumcision - Circumcision = "Circumcision" - - # Emigration - Emigration = "Emigration" - - # Excommunication - Excommunication = "Excommunication" - - # First Communion - First_Communion = "First_Communion" - - # First Known Child - First_Known_Child = "First_Known_Child" - - # Funeral - Funeral = "Funeral" - - # Hospitalization - Hospitalization = "Hospitalization" - - # Illness - Illness = "Illness" - - # Naming - Naming = "Naming" - - # Marriage Settlement - Marriage_Settlement = "Marriage_Settlement" - - # Miscarriage - Miscarriage = "Miscarriage" - - # Ordination - Ordination = "Ordination" - - # Separation - Separation = "Separation" - - # Time Only Marriage - Time_Only_Marriage = "Time_Only_Marriage" - - # Residence - # &lt;p/&gt; - # NOTE: This is for a search event only. - Residence = "Residence" - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - module V2 module Schema # @@ -11729,22 +6664,22 @@ # (no documentation provided) attr_accessor :subcode # (no documentation provided) attr_accessor :code # (no documentation provided) - attr_accessor :message - # (no documentation provided) attr_accessor :details + # (no documentation provided) + attr_accessor :message # the json hash for this BasicError def to_jaxb_json_hash _h = {} _h['level'] = level.to_jaxb_json_hash unless level.nil? _h['subcode'] = subcode.to_jaxb_json_hash unless subcode.nil? _h['code'] = code.to_jaxb_json_hash unless code.nil? - _h['message'] = message.to_jaxb_json_hash unless message.nil? _h['details'] = details.to_jaxb_json_hash unless details.nil? + _h['message'] = message.to_jaxb_json_hash unless message.nil? return _h end # the json (string form) for this BasicError def to_json @@ -11754,12 +6689,12 @@ #initializes this BasicError with a json hash def init_jaxb_json_hash(_o) @level = String.from_json(_o['level']) unless _o['level'].nil? @subcode = Fixnum.from_json(_o['subcode']) unless _o['subcode'].nil? @code = Fixnum.from_json(_o['code']) unless _o['code'].nil? - @message = String.from_json(_o['message']) unless _o['message'].nil? @details = String.from_json(_o['details']) unless _o['details'].nil? + @message = String.from_json(_o['message']) unless _o['message'].nil? end # constructs a BasicError from a (parsed) JSON hash def self.from_json(o) if o.nil? @@ -11873,334 +6808,10 @@ module Ws module Familytree -module V1 - -module Schema - - # - class Fact < Org::Familysearch::Ws::Familytree::V1::Schema::OccurringAssertion - - # The title of the type in the case of user-defined facts. - attr_accessor :title - # The type of the fact. - attr_accessor :type - # The generic value of this fact. - attr_accessor :detail - # The reference to the spouse associated with this fact. - attr_accessor :spouse - # The reference to the parent associated with this fact. - attr_accessor :parent - # The reference to the child associated with this fact. - attr_accessor :child - - # the json hash for this Fact - def to_jaxb_json_hash - _h = super - _h['title'] = title.to_jaxb_json_hash unless title.nil? - _h['type'] = type.to_jaxb_json_hash unless type.nil? - _h['detail'] = detail.to_jaxb_json_hash unless detail.nil? - _h['spouse'] = spouse.to_jaxb_json_hash unless spouse.nil? - _h['parent'] = parent.to_jaxb_json_hash unless parent.nil? - _h['child'] = child.to_jaxb_json_hash unless child.nil? - return _h - end - - #initializes this Fact with a json hash - def init_jaxb_json_hash(_o) - super _o - @title = String.from_json(_o['title']) unless _o['title'].nil? - @type = String.from_json(_o['type']) unless _o['type'].nil? - @detail = String.from_json(_o['detail']) unless _o['detail'].nil? - @spouse = Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_o['spouse']) unless _o['spouse'].nil? - @parent = Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_o['parent']) unless _o['parent'].nil? - @child = Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_o['child']) unless _o['child'].nil? - end - - # constructs a Fact from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class FamilyTree < Org::Familysearch::Ws::V1::BasicElement - - # The persons. - attr_accessor :persons - # The personas. - attr_accessor :personas - # The users. - attr_accessor :users - # The results of a search. - attr_accessor :searches - # The results of a match operation. - attr_accessor :matches - - # the json hash for this FamilyTree - def to_jaxb_json_hash - _h = super - if !persons.nil? - _ha = Array.new - persons.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['persons'] = _ha - end - if !personas.nil? - _ha = Array.new - personas.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['personas'] = _ha - end - if !users.nil? - _ha = Array.new - users.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['users'] = _ha - end - _h['searches'] = searches.to_jaxb_json_hash unless searches.nil? - if !matches.nil? - _ha = Array.new - matches.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['matches'] = _ha - end - return _h - end - - #initializes this FamilyTree with a json hash - def init_jaxb_json_hash(_o) - super _o - if !_o['persons'].nil? - @persons = Array.new - _oa = _o['persons'] - _oa.each { | _item | @persons.push Org::Familysearch::Ws::Familytree::V1::Schema::Person.from_json(_item) } - end - if !_o['personas'].nil? - @personas = Array.new - _oa = _o['personas'] - _oa.each { | _item | @personas.push Org::Familysearch::Ws::Familytree::V1::Schema::Persona.from_json(_item) } - end - if !_o['users'].nil? - @users = Array.new - _oa = _o['users'] - _oa.each { | _item | @users.push Org::Familysearch::Ws::Familytree::V1::Schema::User.from_json(_item) } - end - @searches = Org::Familysearch::Ws::Familytree::V1::Schema::SearchResults.from_json(_o['searches']) unless _o['searches'].nil? - if !_o['matches'].nil? - @matches = Array.new - _oa = _o['matches'] - _oa.each { | _item | @matches.push Org::Familysearch::Ws::Familytree::V1::Schema::Matches.from_json(_item) } - end - end - - # constructs a FamilyTree from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # An ordinance assertion. - class Ordinance < Org::Familysearch::Ws::Familytree::V1::Schema::OccurringAssertion - - # The temple code if the ordinance was performed in a temple. - attr_accessor :templeCode - # The type of the ordinance. - attr_accessor :type - # The reference to the spouse in the case of a sealing-to-spouse ordinance. - attr_accessor :spouse - # The parents of this ordinance. - attr_accessor :parents - # Whether the ordinance is official. - attr_accessor :official - - # the json hash for this Ordinance - def to_jaxb_json_hash - _h = super - _h['templeCode'] = templeCode.to_jaxb_json_hash unless templeCode.nil? - _h['type'] = type.to_jaxb_json_hash unless type.nil? - _h['spouse'] = spouse.to_jaxb_json_hash unless spouse.nil? - if !parents.nil? - _ha = Array.new - parents.each { | _item | _ha.push _item.to_jaxb_json_hash } - _h['parent'] = _ha - end - _h['official'] = official.to_jaxb_json_hash unless official.nil? - return _h - end - - #initializes this Ordinance with a json hash - def init_jaxb_json_hash(_o) - super _o - @templeCode = String.from_json(_o['templeCode']) unless _o['templeCode'].nil? - @type = String.from_json(_o['type']) unless _o['type'].nil? - @spouse = Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_o['spouse']) unless _o['spouse'].nil? - if !_o['parent'].nil? - @parents = Array.new - _oa = _o['parent'] - _oa.each { | _item | @parents.push Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_item) } - end - @official = Boolean.from_json(_o['official']) unless _o['official'].nil? - end - - # constructs a Ordinance from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - -module V1 - -module Schema - - # - class FamilyTreeError < Org::Familysearch::Ws::V1::BasicError - - # The reference to the person associated with this error. - attr_accessor :person - # The reference to the assertion associated with this error. - attr_accessor :assertion - # The reference to the note associated with this error. - attr_accessor :note - # The citation reference to the associated with this error. - attr_accessor :citation - - # the json hash for this FamilyTreeError - def to_jaxb_json_hash - _h = super - _h['person'] = person.to_jaxb_json_hash unless person.nil? - _h['assertion'] = assertion.to_jaxb_json_hash unless assertion.nil? - _h['note'] = note.to_jaxb_json_hash unless note.nil? - _h['citation'] = citation.to_jaxb_json_hash unless citation.nil? - return _h - end - - #initializes this FamilyTreeError with a json hash - def init_jaxb_json_hash(_o) - super _o - @person = Org::Familysearch::Ws::Familytree::V1::Schema::PersonErrorReference.from_json(_o['person']) unless _o['person'].nil? - @assertion = Org::Familysearch::Ws::Familytree::V1::Schema::ErrorReference.from_json(_o['assertion']) unless _o['assertion'].nil? - @note = Org::Familysearch::Ws::Familytree::V1::Schema::ErrorReference.from_json(_o['note']) unless _o['note'].nil? - @citation = Org::Familysearch::Ws::Familytree::V1::Schema::ErrorReference.from_json(_o['citation']) unless _o['citation'].nil? - end - - # constructs a FamilyTreeError from a (parsed) JSON hash - def self.from_json(o) - if o.nil? - return nil - else - inst = new - inst.init_jaxb_json_hash o - return inst - end - end - end - -end - -end - -end - -end - -end - -end - -module Org - -module Familysearch - -module Ws - -module Familytree - module V2 module Schema # @@ -12284,41 +6895,25 @@ module V1 module Schema - # An event. - class Event < Org::Familysearch::Ws::Familytree::V1::Schema::OccurringAssertion + # + class FamilyTree < Org::Familysearch::Ws::V1::BasicElement - # The title of the type in the case of user-defined events. - attr_accessor :title - # The type of the event. - attr_accessor :type - # The reference to the spouse with which this event is associated. - attr_accessor :spouse - # The description of the event. - attr_accessor :description - # the json hash for this Event + # the json hash for this FamilyTree def to_jaxb_json_hash _h = super - _h['title'] = title.to_jaxb_json_hash unless title.nil? - _h['type'] = type.to_jaxb_json_hash unless type.nil? - _h['spouse'] = spouse.to_jaxb_json_hash unless spouse.nil? - _h['description'] = description.to_jaxb_json_hash unless description.nil? return _h end - #initializes this Event with a json hash + #initializes this FamilyTree with a json hash def init_jaxb_json_hash(_o) super _o - @title = String.from_json(_o['title']) unless _o['title'].nil? - @type = String.from_json(_o['type']) unless _o['type'].nil? - @spouse = Org::Familysearch::Ws::Familytree::V1::Schema::PersonReference.from_json(_o['spouse']) unless _o['spouse'].nil? - @description = String.from_json(_o['description']) unless _o['description'].nil? end - # constructs a Event from a (parsed) JSON hash + # constructs a FamilyTree from a (parsed) JSON hash def self.from_json(o) if o.nil? return nil else inst = new