Packages
google_api_people
0.2.0
0.43.0
0.42.0
0.41.0
0.40.7
0.40.6
0.40.5
0.40.4
0.40.3
0.40.2
0.40.1
0.40.0
0.39.5
0.39.4
0.39.3
0.39.2
0.39.1
0.39.0
0.38.1
0.38.0
0.37.8
0.37.7
0.37.6
0.37.5
0.37.4
0.37.3
0.37.2
0.37.1
0.37.0
0.36.1
0.36.0
0.35.0
0.34.1
0.34.0
0.33.0
0.32.6
0.32.5
0.32.4
0.32.3
0.32.2
0.32.1
0.32.0
0.31.0
0.30.0
0.29.0
0.28.0
0.27.1
0.27.0
0.26.1
0.26.0
0.25.0
0.24.0
0.23.3
0.23.2
0.23.1
0.23.0
0.22.0
0.21.0
0.20.1
0.20.0
0.19.0
0.18.0
0.17.0
0.16.0
0.15.0
0.14.0
0.13.0
0.12.0
0.11.0
0.10.0
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.1
0.4.0
0.2.0
0.1.0
0.0.1
People API client library. Provides access to information about profiles and contacts.
Current section
Files
Jump to
Current section
Files
lib/google_api/people/v1/model/person.ex
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule GoogleApi.People.V1.Model.Person do
@moduledoc """
Information about a person merged from various data sources such as the authenticated user's contacts and profile data. Most fields can have multiple items. The items in a field have no guaranteed order, but each non-empty field is guaranteed to have exactly one field with `metadata.primary` set to true.
## Attributes
- addresses ([Address]): The person's street addresses. Defaults to: `null`.
- ageRange (String.t): **DEPRECATED** (Please use `person.ageRanges` instead)** The person's read-only age range. Defaults to: `null`.
- Enum - one of [AGE_RANGE_UNSPECIFIED, LESS_THAN_EIGHTEEN, EIGHTEEN_TO_TWENTY, TWENTY_ONE_OR_OLDER]
- ageRanges ([AgeRangeType]): The person's read-only age ranges. Defaults to: `null`.
- biographies ([Biography]): The person's biographies. Defaults to: `null`.
- birthdays ([Birthday]): The person's birthdays. Defaults to: `null`.
- braggingRights ([BraggingRights]): The person's bragging rights. Defaults to: `null`.
- coverPhotos ([CoverPhoto]): The person's read-only cover photos. Defaults to: `null`.
- emailAddresses ([EmailAddress]): The person's email addresses. Defaults to: `null`.
- etag (String.t): The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource. Used for web cache validation. Defaults to: `null`.
- events ([Event]): The person's events. Defaults to: `null`.
- genders ([Gender]): The person's genders. Defaults to: `null`.
- imClients ([ImClient]): The person's instant messaging clients. Defaults to: `null`.
- interests ([Interest]): The person's interests. Defaults to: `null`.
- locales ([Locale]): The person's locale preferences. Defaults to: `null`.
- memberships ([Membership]): The person's read-only group memberships. Defaults to: `null`.
- metadata (PersonMetadata): Read-only metadata about the person. Defaults to: `null`.
- names ([Name]): The person's names. Defaults to: `null`.
- nicknames ([Nickname]): The person's nicknames. Defaults to: `null`.
- occupations ([Occupation]): The person's occupations. Defaults to: `null`.
- organizations ([Organization]): The person's past or current organizations. Defaults to: `null`.
- phoneNumbers ([PhoneNumber]): The person's phone numbers. Defaults to: `null`.
- photos ([Photo]): The person's read-only photos. Defaults to: `null`.
- relations ([Relation]): The person's relations. Defaults to: `null`.
- relationshipInterests ([RelationshipInterest]): The person's read-only relationship interests. Defaults to: `null`.
- relationshipStatuses ([RelationshipStatus]): The person's read-only relationship statuses. Defaults to: `null`.
- residences ([Residence]): The person's residences. Defaults to: `null`.
- resourceName (String.t): The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of `people/`<var>person_id</var>. Defaults to: `null`.
- sipAddresses ([SipAddress]): The person's SIP addresses. Defaults to: `null`.
- skills ([Skill]): The person's skills. Defaults to: `null`.
- taglines ([Tagline]): The person's read-only taglines. Defaults to: `null`.
- urls ([Url]): The person's associated URLs. Defaults to: `null`.
- userDefined ([UserDefined]): The person's user defined data. Defaults to: `null`.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:addresses => list(GoogleApi.People.V1.Model.Address.t()),
:ageRange => any(),
:ageRanges => list(GoogleApi.People.V1.Model.AgeRangeType.t()),
:biographies => list(GoogleApi.People.V1.Model.Biography.t()),
:birthdays => list(GoogleApi.People.V1.Model.Birthday.t()),
:braggingRights => list(GoogleApi.People.V1.Model.BraggingRights.t()),
:coverPhotos => list(GoogleApi.People.V1.Model.CoverPhoto.t()),
:emailAddresses => list(GoogleApi.People.V1.Model.EmailAddress.t()),
:etag => any(),
:events => list(GoogleApi.People.V1.Model.Event.t()),
:genders => list(GoogleApi.People.V1.Model.Gender.t()),
:imClients => list(GoogleApi.People.V1.Model.ImClient.t()),
:interests => list(GoogleApi.People.V1.Model.Interest.t()),
:locales => list(GoogleApi.People.V1.Model.Locale.t()),
:memberships => list(GoogleApi.People.V1.Model.Membership.t()),
:metadata => GoogleApi.People.V1.Model.PersonMetadata.t(),
:names => list(GoogleApi.People.V1.Model.Name.t()),
:nicknames => list(GoogleApi.People.V1.Model.Nickname.t()),
:occupations => list(GoogleApi.People.V1.Model.Occupation.t()),
:organizations => list(GoogleApi.People.V1.Model.Organization.t()),
:phoneNumbers => list(GoogleApi.People.V1.Model.PhoneNumber.t()),
:photos => list(GoogleApi.People.V1.Model.Photo.t()),
:relations => list(GoogleApi.People.V1.Model.Relation.t()),
:relationshipInterests => list(GoogleApi.People.V1.Model.RelationshipInterest.t()),
:relationshipStatuses => list(GoogleApi.People.V1.Model.RelationshipStatus.t()),
:residences => list(GoogleApi.People.V1.Model.Residence.t()),
:resourceName => any(),
:sipAddresses => list(GoogleApi.People.V1.Model.SipAddress.t()),
:skills => list(GoogleApi.People.V1.Model.Skill.t()),
:taglines => list(GoogleApi.People.V1.Model.Tagline.t()),
:urls => list(GoogleApi.People.V1.Model.Url.t()),
:userDefined => list(GoogleApi.People.V1.Model.UserDefined.t())
}
field(:addresses, as: GoogleApi.People.V1.Model.Address, type: :list)
field(:ageRange)
field(:ageRanges, as: GoogleApi.People.V1.Model.AgeRangeType, type: :list)
field(:biographies, as: GoogleApi.People.V1.Model.Biography, type: :list)
field(:birthdays, as: GoogleApi.People.V1.Model.Birthday, type: :list)
field(:braggingRights, as: GoogleApi.People.V1.Model.BraggingRights, type: :list)
field(:coverPhotos, as: GoogleApi.People.V1.Model.CoverPhoto, type: :list)
field(:emailAddresses, as: GoogleApi.People.V1.Model.EmailAddress, type: :list)
field(:etag)
field(:events, as: GoogleApi.People.V1.Model.Event, type: :list)
field(:genders, as: GoogleApi.People.V1.Model.Gender, type: :list)
field(:imClients, as: GoogleApi.People.V1.Model.ImClient, type: :list)
field(:interests, as: GoogleApi.People.V1.Model.Interest, type: :list)
field(:locales, as: GoogleApi.People.V1.Model.Locale, type: :list)
field(:memberships, as: GoogleApi.People.V1.Model.Membership, type: :list)
field(:metadata, as: GoogleApi.People.V1.Model.PersonMetadata)
field(:names, as: GoogleApi.People.V1.Model.Name, type: :list)
field(:nicknames, as: GoogleApi.People.V1.Model.Nickname, type: :list)
field(:occupations, as: GoogleApi.People.V1.Model.Occupation, type: :list)
field(:organizations, as: GoogleApi.People.V1.Model.Organization, type: :list)
field(:phoneNumbers, as: GoogleApi.People.V1.Model.PhoneNumber, type: :list)
field(:photos, as: GoogleApi.People.V1.Model.Photo, type: :list)
field(:relations, as: GoogleApi.People.V1.Model.Relation, type: :list)
field(:relationshipInterests, as: GoogleApi.People.V1.Model.RelationshipInterest, type: :list)
field(:relationshipStatuses, as: GoogleApi.People.V1.Model.RelationshipStatus, type: :list)
field(:residences, as: GoogleApi.People.V1.Model.Residence, type: :list)
field(:resourceName)
field(:sipAddresses, as: GoogleApi.People.V1.Model.SipAddress, type: :list)
field(:skills, as: GoogleApi.People.V1.Model.Skill, type: :list)
field(:taglines, as: GoogleApi.People.V1.Model.Tagline, type: :list)
field(:urls, as: GoogleApi.People.V1.Model.Url, type: :list)
field(:userDefined, as: GoogleApi.People.V1.Model.UserDefined, type: :list)
end
defimpl Poison.Decoder, for: GoogleApi.People.V1.Model.Person do
def decode(value, options) do
GoogleApi.People.V1.Model.Person.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.People.V1.Model.Person do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end