2016-02-10 21:57:13 +00:00
|
|
|
# Copyright 2015 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.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module PeopleV1
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# A Google contact group membership.
|
|
|
|
class ContactGroupMembership
|
2017-03-10 21:11:09 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The contact group ID for the contact group membership. The contact group
|
|
|
|
# ID can be custom or predefined. Possible values include, but are not
|
|
|
|
# limited to, the following:
|
|
|
|
# * `myContacts`
|
|
|
|
# * `starred`
|
|
|
|
# * A numerical ID for user-created groups.
|
|
|
|
# Corresponds to the JSON property `contactGroupId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :contact_group_id
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# The `Status` type defines a logical error model that is suitable for different
|
|
|
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
|
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
|
|
# - Simple to use and understand for most users
|
|
|
|
# - Flexible enough to meet unexpected needs
|
|
|
|
# # Overview
|
|
|
|
# The `Status` message contains three pieces of data: error code, error message,
|
|
|
|
# and error details. The error code should be an enum value of
|
|
|
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
|
|
# error message should be a developer-facing English message that helps
|
|
|
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
|
|
# error message is needed, put the localized message in the error details or
|
|
|
|
# localize it in the client. The optional error details may contain arbitrary
|
|
|
|
# information about the error. There is a predefined set of error detail types
|
|
|
|
# in the package `google.rpc` which can be used for common error conditions.
|
|
|
|
# # Language mapping
|
|
|
|
# The `Status` message is the logical representation of the error model, but it
|
|
|
|
# is not necessarily the actual wire format. When the `Status` message is
|
|
|
|
# exposed in different client libraries and different wire protocols, it can be
|
|
|
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
|
|
# in Java, but more likely mapped to some error codes in C.
|
|
|
|
# # Other uses
|
|
|
|
# The error model and the `Status` message can be used in a variety of
|
|
|
|
# environments, either with or without APIs, to provide a
|
|
|
|
# consistent developer experience across different environments.
|
|
|
|
# Example uses of this error model include:
|
|
|
|
# - Partial errors. If a service needs to return partial errors to the client,
|
|
|
|
# it may embed the `Status` in the normal response to indicate the partial
|
|
|
|
# errors.
|
|
|
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
|
|
# have a `Status` message for error reporting purpose.
|
|
|
|
# - Batch operations. If a client uses batch request and batch response, the
|
|
|
|
# `Status` message should be used directly inside batch response, one for
|
|
|
|
# each error sub-response.
|
|
|
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
|
|
# results in its response, the status of those operations should be
|
|
|
|
# represented directly using the `Status` message.
|
|
|
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
|
|
# be used directly after any stripping needed for security/privacy reasons.
|
|
|
|
class Status
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# A list of messages that carry the error details. There will be a
|
|
|
|
# common set of message types for APIs to use.
|
|
|
|
# Corresponds to the JSON property `details`
|
|
|
|
# @return [Array<Hash<String,Object>>]
|
|
|
|
attr_accessor :details
|
|
|
|
|
|
|
|
# The status code, which should be an enum value of google.rpc.Code.
|
|
|
|
# Corresponds to the JSON property `code`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :code
|
|
|
|
|
|
|
|
# A developer-facing error message, which should be in English. Any
|
|
|
|
# user-facing error message should be localized and sent in the
|
|
|
|
# google.rpc.Status.details field, or localized by the client.
|
|
|
|
# Corresponds to the JSON property `message`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :message
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@details = args[:details] if args.key?(:details)
|
|
|
|
@code = args[:code] if args.key?(:code)
|
|
|
|
@message = args[:message] if args.key?(:message)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# The read-only metadata about a person.
|
|
|
|
class PersonMetadata
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# DEPRECATED(Please read person.metadata.sources.profile_metadata instead).
|
|
|
|
# The type of the person object.
|
2017-04-03 20:18:48 +00:00
|
|
|
# Corresponds to the JSON property `objectType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :object_type
|
2017-03-27 22:14:47 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# Resource names of people linked to this resource.
|
|
|
|
# Corresponds to the JSON property `linkedPeopleResourceNames`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :linked_people_resource_names
|
|
|
|
|
|
|
|
# The sources of data for the person.
|
|
|
|
# Corresponds to the JSON property `sources`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Source>]
|
|
|
|
attr_accessor :sources
|
|
|
|
|
|
|
|
# Any former resource names this person has had. Populated only for
|
|
|
|
# [`connections.list`](/people/api/rest/v1/people.connections/list) requests
|
|
|
|
# that include a sync token.
|
|
|
|
# The resource name may change when adding or removing fields that link a
|
|
|
|
# contact and profile such as a verified email, verified phone number, or
|
|
|
|
# profile URL.
|
|
|
|
# Corresponds to the JSON property `previousResourceNames`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :previous_resource_names
|
|
|
|
|
|
|
|
# True if the person resource has been deleted. Populated only for
|
|
|
|
# [`connections.list`](/people/api/rest/v1/people.connections/list) requests
|
|
|
|
# that include a sync token.
|
|
|
|
# Corresponds to the JSON property `deleted`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :deleted
|
|
|
|
alias_method :deleted?, :deleted
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@object_type = args[:object_type] if args.key?(:object_type)
|
2017-05-04 19:35:56 +00:00
|
|
|
@linked_people_resource_names = args[:linked_people_resource_names] if args.key?(:linked_people_resource_names)
|
|
|
|
@sources = args[:sources] if args.key?(:sources)
|
|
|
|
@previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names)
|
|
|
|
@deleted = args[:deleted] if args.key?(:deleted)
|
2017-03-10 21:11:09 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# An event related to the person.
|
|
|
|
class Event
|
2017-03-10 21:11:09 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The read-only type of the event translated and formatted in the
|
|
|
|
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
|
|
|
# Corresponds to the JSON property `formattedType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :formatted_type
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The type of the event. The type can be custom or predefined.
|
2017-04-03 20:18:48 +00:00
|
|
|
# Possible values include, but are not limited to, the following:
|
2017-05-04 19:35:56 +00:00
|
|
|
# * `anniversary`
|
2017-04-03 20:18:48 +00:00
|
|
|
# * `other`
|
2017-03-31 19:53:27 +00:00
|
|
|
# Corresponds to the JSON property `type`
|
2017-03-10 21:11:09 +00:00
|
|
|
# @return [String]
|
2017-03-31 19:53:27 +00:00
|
|
|
attr_accessor :type
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# Represents a whole calendar date, for example a date of birth. The time
|
|
|
|
# of day and time zone are either specified elsewhere or are not
|
|
|
|
# significant. The date is relative to the
|
|
|
|
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
|
|
|
# Proleptic_Gregorian_calendar).
|
|
|
|
# The day may be 0 to represent a year and month where the day is not
|
|
|
|
# significant. The year may be 0 to represent a month and day independent
|
|
|
|
# of year; for example, anniversary date.
|
|
|
|
# Corresponds to the JSON property `date`
|
|
|
|
# @return [Google::Apis::PeopleV1::Date]
|
|
|
|
attr_accessor :date
|
2017-03-10 21:11:09 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-05-04 19:35:56 +00:00
|
|
|
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
2017-04-03 20:18:48 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-03-31 19:53:27 +00:00
|
|
|
@type = args[:type] if args.key?(:type)
|
2017-05-04 19:35:56 +00:00
|
|
|
@date = args[:date] if args.key?(:date)
|
2017-03-10 21:11:09 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The read-only metadata about a profile.
|
|
|
|
class ProfileMetadata
|
2017-03-10 21:11:09 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The profile object type.
|
|
|
|
# Corresponds to the JSON property `objectType`
|
2017-04-03 20:18:48 +00:00
|
|
|
# @return [String]
|
2017-05-04 19:35:56 +00:00
|
|
|
attr_accessor :object_type
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@object_type = args[:object_type] if args.key?(:object_type)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A person's gender.
|
|
|
|
class Gender
|
|
|
|
include Google::Apis::Core::Hashable
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The read-only value of the gender translated and formatted in the viewer's
|
|
|
|
# account locale or the `Accept-Language` HTTP header locale.
|
|
|
|
# Corresponds to the JSON property `formattedValue`
|
2017-03-10 21:11:09 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :formatted_value
|
|
|
|
|
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The gender for the person. The gender can be custom or predefined.
|
|
|
|
# Possible values include, but are not limited to, the
|
|
|
|
# following:
|
|
|
|
# * `male`
|
|
|
|
# * `female`
|
|
|
|
# * `other`
|
|
|
|
# * `unknown`
|
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-05-04 19:35:56 +00:00
|
|
|
@value = args[:value] if args.key?(:value)
|
2017-03-27 22:14:47 +00:00
|
|
|
end
|
|
|
|
end
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# A person's associated URLs.
|
|
|
|
class Url
|
2017-03-27 22:14:47 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The type of the URL. The type can be custom or predefined.
|
|
|
|
# Possible values include, but are not limited to, the following:
|
|
|
|
# * `home`
|
|
|
|
# * `work`
|
|
|
|
# * `blog`
|
|
|
|
# * `profile`
|
|
|
|
# * `homePage`
|
|
|
|
# * `ftp`
|
|
|
|
# * `reservations`
|
|
|
|
# * `appInstallPage`: website for a Google+ application.
|
|
|
|
# * `other`
|
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The URL.
|
|
|
|
# Corresponds to the JSON property `value`
|
2017-03-10 21:11:09 +00:00
|
|
|
# @return [String]
|
2017-05-04 19:35:56 +00:00
|
|
|
attr_accessor :value
|
|
|
|
|
|
|
|
# The read-only type of the URL translated and formatted in the viewer's
|
|
|
|
# account locale or the `Accept-Language` HTTP header locale.
|
|
|
|
# Corresponds to the JSON property `formattedType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :formatted_type
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-03-31 19:53:27 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-05-04 19:35:56 +00:00
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
@value = args[:value] if args.key?(:value)
|
|
|
|
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
2016-02-10 21:57:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# A person's read-only cover photo. A large image shown on the person's
|
|
|
|
# profile page that represents who they are or what they care about.
|
|
|
|
class CoverPhoto
|
2016-02-10 21:57:13 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# True if the cover photo is the default cover photo;
|
|
|
|
# false if the cover photo is a user-provided cover photo.
|
|
|
|
# Corresponds to the JSON property `default`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :default
|
|
|
|
alias_method :default?, :default
|
|
|
|
|
|
|
|
# The URL of the cover photo.
|
|
|
|
# Corresponds to the JSON property `url`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-05-04 19:35:56 +00:00
|
|
|
attr_accessor :url
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2016-02-10 21:57:13 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-03-30 22:30:51 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-05-04 19:35:56 +00:00
|
|
|
@default = args[:default] if args.key?(:default)
|
|
|
|
@url = args[:url] if args.key?(:url)
|
2017-03-10 21:11:09 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's instant messaging client.
|
|
|
|
class ImClient
|
2017-03-10 21:11:09 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The protocol of the IM client. The protocol can be custom or predefined.
|
|
|
|
# Possible values include, but are not limited to, the following:
|
|
|
|
# * `aim`
|
|
|
|
# * `msn`
|
|
|
|
# * `yahoo`
|
|
|
|
# * `skype`
|
|
|
|
# * `qq`
|
|
|
|
# * `googleTalk`
|
|
|
|
# * `icq`
|
|
|
|
# * `jabber`
|
|
|
|
# * `netMeeting`
|
|
|
|
# Corresponds to the JSON property `protocol`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :protocol
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The type of the IM client. The type can be custom or predefined.
|
|
|
|
# Possible values include, but are not limited to, the following:
|
|
|
|
# * `home`
|
|
|
|
# * `work`
|
|
|
|
# * `other`
|
|
|
|
# Corresponds to the JSON property `type`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :type
|
|
|
|
|
|
|
|
# The user name used in the IM client.
|
|
|
|
# Corresponds to the JSON property `username`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :username
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The read-only protocol of the IM client formatted in the viewer's account
|
|
|
|
# locale or the `Accept-Language` HTTP header locale.
|
|
|
|
# Corresponds to the JSON property `formattedProtocol`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :formatted_protocol
|
|
|
|
|
|
|
|
# The read-only type of the IM client translated and formatted in the
|
|
|
|
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
|
|
|
# Corresponds to the JSON property `formattedType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :formatted_type
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@protocol = args[:protocol] if args.key?(:protocol)
|
2017-03-31 19:53:27 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-04-03 20:18:48 +00:00
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
@username = args[:username] if args.key?(:username)
|
2017-05-04 19:35:56 +00:00
|
|
|
@formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
|
|
|
|
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# One of the person's interests.
|
|
|
|
class Interest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
|
|
|
# The interest; for example, `stargazing`.
|
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@value = args[:value] if args.key?(:value)
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's email address.
|
|
|
|
class EmailAddress
|
2017-03-31 19:53:27 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The email address.
|
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The read-only type of the email address translated and formatted in the
|
|
|
|
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
|
|
|
# Corresponds to the JSON property `formattedType`
|
2017-03-10 21:11:09 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :formatted_type
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The display name of the email.
|
|
|
|
# Corresponds to the JSON property `displayName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :display_name
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Metadata about a field.
|
2017-03-31 19:53:27 +00:00
|
|
|
# Corresponds to the JSON property `metadata`
|
2017-04-03 20:18:48 +00:00
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
2017-03-31 19:53:27 +00:00
|
|
|
attr_accessor :metadata
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The type of the email address. The type can be custom or predefined.
|
|
|
|
# Possible values include, but are not limited to, the following:
|
|
|
|
# * `home`
|
|
|
|
# * `work`
|
|
|
|
# * `other`
|
|
|
|
# Corresponds to the JSON property `type`
|
2017-03-10 21:11:09 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :type
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@value = args[:value] if args.key?(:value)
|
|
|
|
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
|
|
|
@display_name = args[:display_name] if args.key?(:display_name)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
end
|
|
|
|
end
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's nickname.
|
|
|
|
class Nickname
|
|
|
|
include Google::Apis::Core::Hashable
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The type of the nickname.
|
|
|
|
# Corresponds to the JSON property `type`
|
2017-02-13 23:28:52 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :type
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The nickname.
|
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
@value = args[:value] if args.key?(:value)
|
|
|
|
end
|
|
|
|
end
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A skill that the person has.
|
|
|
|
class Skill
|
|
|
|
include Google::Apis::Core::Hashable
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The skill; for example, `underwater basket weaving`.
|
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-03-30 22:30:51 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-05-04 19:35:56 +00:00
|
|
|
@value = args[:value] if args.key?(:value)
|
2017-03-27 22:14:47 +00:00
|
|
|
end
|
|
|
|
end
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A Google Apps Domain membership.
|
|
|
|
class DomainMembership
|
2017-03-27 22:14:47 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# True if the person is in the viewer's Google Apps domain.
|
|
|
|
# Corresponds to the JSON property `inViewerDomain`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :in_viewer_domain
|
|
|
|
alias_method :in_viewer_domain?, :in_viewer_domain
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@in_viewer_domain = args[:in_viewer_domain] if args.key?(:in_viewer_domain)
|
2017-02-13 23:28:52 +00:00
|
|
|
end
|
|
|
|
end
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's read-only membership in a group.
|
|
|
|
class Membership
|
2017-03-31 19:53:27 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A Google contact group membership.
|
|
|
|
# Corresponds to the JSON property `contactGroupMembership`
|
|
|
|
# @return [Google::Apis::PeopleV1::ContactGroupMembership]
|
|
|
|
attr_accessor :contact_group_membership
|
|
|
|
|
|
|
|
# A Google Apps Domain membership.
|
|
|
|
# Corresponds to the JSON property `domainMembership`
|
|
|
|
# @return [Google::Apis::PeopleV1::DomainMembership]
|
|
|
|
attr_accessor :domain_membership
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership)
|
|
|
|
@domain_membership = args[:domain_membership] if args.key?(:domain_membership)
|
2017-05-04 19:35:56 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's read-only relationship status.
|
|
|
|
class RelationshipStatus
|
2016-02-10 21:57:13 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The read-only value of the relationship status translated and formatted in
|
|
|
|
# the viewer's account locale or the `Accept-Language` HTTP header locale.
|
|
|
|
# Corresponds to the JSON property `formattedValue`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :formatted_value
|
|
|
|
|
2016-02-10 21:57:13 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The relationship status. The value can be custom or predefined.
|
2017-03-10 21:11:09 +00:00
|
|
|
# Possible values include, but are not limited to, the following:
|
2017-04-03 20:18:48 +00:00
|
|
|
# * `single`
|
|
|
|
# * `inARelationship`
|
|
|
|
# * `engaged`
|
|
|
|
# * `married`
|
2017-05-04 19:35:56 +00:00
|
|
|
# * `itsComplicated`
|
|
|
|
# * `openRelationship`
|
|
|
|
# * `widowed`
|
|
|
|
# * `inDomesticPartnership`
|
|
|
|
# * `inCivilUnion`
|
2017-04-03 20:18:48 +00:00
|
|
|
# Corresponds to the JSON property `value`
|
2017-02-13 23:28:52 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :value
|
2017-03-27 22:14:47 +00:00
|
|
|
|
2016-02-10 21:57:13 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-05-04 19:35:56 +00:00
|
|
|
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
2017-04-03 20:18:48 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-05-04 19:35:56 +00:00
|
|
|
@value = args[:value] if args.key?(:value)
|
2016-02-10 21:57:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Represents a whole calendar date, for example a date of birth. The time
|
|
|
|
# of day and time zone are either specified elsewhere or are not
|
|
|
|
# significant. The date is relative to the
|
|
|
|
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
|
|
|
# Proleptic_Gregorian_calendar).
|
|
|
|
# The day may be 0 to represent a year and month where the day is not
|
|
|
|
# significant. The year may be 0 to represent a month and day independent
|
|
|
|
# of year; for example, anniversary date.
|
|
|
|
class Date
|
2016-02-10 21:57:13 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
|
|
|
# a year.
|
|
|
|
# Corresponds to the JSON property `year`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :year
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
|
|
|
# if specifying a year/month where the day is not significant.
|
|
|
|
# Corresponds to the JSON property `day`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :day
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Month of year. Must be from 1 to 12.
|
|
|
|
# Corresponds to the JSON property `month`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :month
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@year = args[:year] if args.key?(:year)
|
|
|
|
@day = args[:day] if args.key?(:day)
|
|
|
|
@month = args[:month] if args.key?(:month)
|
2017-02-13 23:28:52 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# A read-only brief one-line description of the person.
|
|
|
|
class Tagline
|
2016-02-10 21:57:13 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The tagline.
|
|
|
|
# Corresponds to the JSON property `value`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-05-04 19:35:56 +00:00
|
|
|
attr_accessor :value
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@value = args[:value] if args.key?(:value)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A person's name. If the name is a mononym, the family name is empty.
|
|
|
|
class Name
|
|
|
|
include Google::Apis::Core::Hashable
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The honorific prefixes, such as `Mrs.` or `Dr.`
|
|
|
|
# Corresponds to the JSON property `honorificPrefix`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :honorific_prefix
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The honorific suffixes spelled as they sound.
|
|
|
|
# Corresponds to the JSON property `phoneticHonorificSuffix`
|
2017-03-30 22:30:51 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :phonetic_honorific_suffix
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The given name.
|
|
|
|
# Corresponds to the JSON property `givenName`
|
2017-03-30 22:30:51 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :given_name
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The middle name(s).
|
|
|
|
# Corresponds to the JSON property `middleName`
|
2017-03-30 22:30:51 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :middle_name
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The honorific prefixes spelled as they sound.
|
|
|
|
# Corresponds to the JSON property `phoneticHonorificPrefix`
|
2017-03-30 22:30:51 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :phonetic_honorific_prefix
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The given name spelled as it sounds.
|
|
|
|
# Corresponds to the JSON property `phoneticGivenName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :phonetic_given_name
|
|
|
|
|
|
|
|
# The family name spelled as it sounds.
|
|
|
|
# Corresponds to the JSON property `phoneticFamilyName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :phonetic_family_name
|
|
|
|
|
|
|
|
# The family name.
|
|
|
|
# Corresponds to the JSON property `familyName`
|
2017-03-30 22:30:51 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :family_name
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The middle name(s) spelled as they sound.
|
|
|
|
# Corresponds to the JSON property `phoneticMiddleName`
|
2017-03-27 22:14:47 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :phonetic_middle_name
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The full name spelled as it sounds.
|
|
|
|
# Corresponds to the JSON property `phoneticFullName`
|
2017-03-27 22:14:47 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :phonetic_full_name
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The read-only display name with the last name first formatted according to
|
|
|
|
# the locale specified by the viewer's account or the
|
|
|
|
# <code>Accept-Language</code> HTTP header.
|
|
|
|
# Corresponds to the JSON property `displayNameLastFirst`
|
2017-03-27 22:14:47 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :display_name_last_first
|
2017-03-27 22:14:47 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The read-only display name formatted according to the locale specified by
|
|
|
|
# the viewer's account or the <code>Accept-Language</code> HTTP header.
|
|
|
|
# Corresponds to the JSON property `displayName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :display_name
|
|
|
|
|
|
|
|
# The honorific suffixes, such as `Jr.`
|
|
|
|
# Corresponds to the JSON property `honorificSuffix`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :honorific_suffix
|
|
|
|
|
2017-03-30 22:30:51 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2017-03-27 22:14:47 +00:00
|
|
|
|
2017-03-30 22:30:51 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
|
|
|
|
@phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
|
|
|
|
@given_name = args[:given_name] if args.key?(:given_name)
|
|
|
|
@middle_name = args[:middle_name] if args.key?(:middle_name)
|
|
|
|
@phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix)
|
|
|
|
@phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name)
|
|
|
|
@phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name)
|
|
|
|
@family_name = args[:family_name] if args.key?(:family_name)
|
|
|
|
@phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name)
|
2017-05-04 19:35:56 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-04-03 20:18:48 +00:00
|
|
|
@phonetic_full_name = args[:phonetic_full_name] if args.key?(:phonetic_full_name)
|
|
|
|
@display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first)
|
2017-05-04 19:35:56 +00:00
|
|
|
@display_name = args[:display_name] if args.key?(:display_name)
|
|
|
|
@honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
2017-03-27 22:14:47 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's bragging rights.
|
|
|
|
class BraggingRights
|
2017-03-30 22:30:51 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The bragging rights; for example, `climbed mount everest`.
|
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2016-02-10 21:57:13 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@value = args[:value] if args.key?(:value)
|
2017-05-04 19:35:56 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2016-02-10 21:57:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's locale preference.
|
|
|
|
class Locale
|
2016-02-10 21:57:13 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47)
|
|
|
|
# language tag representing the locale.
|
|
|
|
# Corresponds to the JSON property `value`
|
2017-03-27 22:14:47 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :value
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2016-02-25 23:16:53 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2016-02-25 23:16:53 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@value = args[:value] if args.key?(:value)
|
2017-05-04 19:35:56 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2016-02-25 23:16:53 +00:00
|
|
|
end
|
|
|
|
end
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's past or current organization. Overlapping date ranges are
|
|
|
|
# permitted.
|
|
|
|
class Organization
|
2016-02-10 21:57:13 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The person's department at the organization.
|
|
|
|
# Corresponds to the JSON property `department`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :department
|
2017-03-27 22:14:47 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The phonetic name of the organization.
|
|
|
|
# Corresponds to the JSON property `phoneticName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :phonetic_name
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The type of the organization. The type can be custom or predefined.
|
2017-03-31 19:53:27 +00:00
|
|
|
# Possible values include, but are not limited to, the following:
|
2017-04-03 20:18:48 +00:00
|
|
|
# * `work`
|
|
|
|
# * `school`
|
2017-03-31 19:53:27 +00:00
|
|
|
# Corresponds to the JSON property `type`
|
2017-03-27 22:14:47 +00:00
|
|
|
# @return [String]
|
2017-03-31 19:53:27 +00:00
|
|
|
attr_accessor :type
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The person's job description at the organization.
|
|
|
|
# Corresponds to the JSON property `jobDescription`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :job_description
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
# Represents a whole calendar date, for example a date of birth. The time
|
|
|
|
# of day and time zone are either specified elsewhere or are not
|
|
|
|
# significant. The date is relative to the
|
|
|
|
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
|
|
|
# Proleptic_Gregorian_calendar).
|
|
|
|
# The day may be 0 to represent a year and month where the day is not
|
|
|
|
# significant. The year may be 0 to represent a month and day independent
|
|
|
|
# of year; for example, anniversary date.
|
2017-04-03 20:18:48 +00:00
|
|
|
# Corresponds to the JSON property `endDate`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [Google::Apis::PeopleV1::Date]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :end_date
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The symbol associated with the organization; for example, a stock ticker
|
|
|
|
# symbol, abbreviation, or acronym.
|
|
|
|
# Corresponds to the JSON property `symbol`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :symbol
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The name of the organization.
|
|
|
|
# Corresponds to the JSON property `name`
|
2017-03-10 21:11:09 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :name
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The person's job title at the organization.
|
|
|
|
# Corresponds to the JSON property `title`
|
2016-02-10 21:57:13 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :title
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The location of the organization office the person works at.
|
|
|
|
# Corresponds to the JSON property `location`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :location
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# True if the organization is the person's current organization;
|
|
|
|
# false if the organization is a past organization.
|
|
|
|
# Corresponds to the JSON property `current`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :current
|
|
|
|
alias_method :current?, :current
|
|
|
|
|
|
|
|
# Represents a whole calendar date, for example a date of birth. The time
|
|
|
|
# of day and time zone are either specified elsewhere or are not
|
|
|
|
# significant. The date is relative to the
|
|
|
|
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
|
|
|
# Proleptic_Gregorian_calendar).
|
|
|
|
# The day may be 0 to represent a year and month where the day is not
|
|
|
|
# significant. The year may be 0 to represent a month and day independent
|
|
|
|
# of year; for example, anniversary date.
|
|
|
|
# Corresponds to the JSON property `startDate`
|
|
|
|
# @return [Google::Apis::PeopleV1::Date]
|
|
|
|
attr_accessor :start_date
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The read-only type of the organization translated and formatted in the
|
|
|
|
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
2017-03-27 22:14:47 +00:00
|
|
|
# Corresponds to the JSON property `formattedType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :formatted_type
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The domain name associated with the organization; for example, `google.com`.
|
|
|
|
# Corresponds to the JSON property `domain`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :domain
|
|
|
|
|
2016-02-10 21:57:13 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@department = args[:department] if args.key?(:department)
|
|
|
|
@phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
|
2017-03-27 22:14:47 +00:00
|
|
|
@type = args[:type] if args.key?(:type)
|
2017-04-03 20:18:48 +00:00
|
|
|
@job_description = args[:job_description] if args.key?(:job_description)
|
|
|
|
@end_date = args[:end_date] if args.key?(:end_date)
|
|
|
|
@symbol = args[:symbol] if args.key?(:symbol)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@title = args[:title] if args.key?(:title)
|
2017-05-04 19:35:56 +00:00
|
|
|
@location = args[:location] if args.key?(:location)
|
2017-04-03 20:18:48 +00:00
|
|
|
@current = args[:current] if args.key?(:current)
|
|
|
|
@start_date = args[:start_date] if args.key?(:start_date)
|
2017-03-27 22:14:47 +00:00
|
|
|
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
2017-05-04 19:35:56 +00:00
|
|
|
@domain = args[:domain] if args.key?(:domain)
|
2016-02-10 21:57:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's short biography.
|
|
|
|
class Biography
|
2017-03-31 19:53:27 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The short biography.
|
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The content type of the biography.
|
|
|
|
# Corresponds to the JSON property `contentType`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :content_type
|
2017-03-31 19:53:27 +00:00
|
|
|
|
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-05-04 19:35:56 +00:00
|
|
|
@value = args[:value] if args.key?(:value)
|
2017-04-03 20:18:48 +00:00
|
|
|
@content_type = args[:content_type] if args.key?(:content_type)
|
2017-03-31 19:53:27 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's age range.
|
|
|
|
class AgeRangeType
|
2016-02-10 21:57:13 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The age range.
|
|
|
|
# Corresponds to the JSON property `ageRange`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :age_range
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2016-02-25 23:16:53 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@age_range = args[:age_range] if args.key?(:age_range)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Metadata about a field.
|
|
|
|
class FieldMetadata
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The source of a field.
|
|
|
|
# Corresponds to the JSON property `source`
|
|
|
|
# @return [Google::Apis::PeopleV1::Source]
|
|
|
|
attr_accessor :source
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# True if the field is verified; false if the field is unverified. A
|
|
|
|
# verified field is typically a name, email address, phone number, or
|
|
|
|
# website that has been confirmed to be owned by the person.
|
|
|
|
# Corresponds to the JSON property `verified`
|
2017-03-27 22:14:47 +00:00
|
|
|
# @return [Boolean]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :verified
|
|
|
|
alias_method :verified?, :verified
|
|
|
|
|
|
|
|
# True if the field is the primary field; false if the field is a secondary
|
|
|
|
# field.
|
|
|
|
# Corresponds to the JSON property `primary`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :primary
|
|
|
|
alias_method :primary?, :primary
|
|
|
|
|
2016-02-10 21:57:13 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-05-04 19:35:56 +00:00
|
|
|
@source = args[:source] if args.key?(:source)
|
2017-04-03 20:18:48 +00:00
|
|
|
@verified = args[:verified] if args.key?(:verified)
|
|
|
|
@primary = args[:primary] if args.key?(:primary)
|
2017-05-04 19:35:56 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A person's read-only relationship interest .
|
|
|
|
class RelationshipInterest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The kind of relationship the person is looking for. The value can be custom
|
|
|
|
# or predefined. Possible values include, but are not limited to, the
|
|
|
|
# following values:
|
|
|
|
# * `friend`
|
|
|
|
# * `date`
|
|
|
|
# * `relationship`
|
|
|
|
# * `networking`
|
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
|
|
|
|
|
|
|
# The value of the relationship interest translated and formatted in the
|
|
|
|
# viewer's account locale or the locale specified in the Accept-Language
|
|
|
|
# HTTP header.
|
|
|
|
# Corresponds to the JSON property `formattedValue`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :formatted_value
|
|
|
|
|
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@value = args[:value] if args.key?(:value)
|
|
|
|
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2016-02-10 21:57:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The source of a field.
|
|
|
|
class Source
|
2017-03-10 21:11:09 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The source type.
|
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
|
|
|
|
# source. Used for web cache validation. Only populated in
|
|
|
|
# person.metadata.sources.
|
|
|
|
# Corresponds to the JSON property `etag`
|
2017-03-10 21:11:09 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :etag
|
|
|
|
|
|
|
|
# The unique identifier within the source type generated by the server.
|
|
|
|
# Corresponds to the JSON property `id`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :id
|
|
|
|
|
|
|
|
# The read-only metadata about a profile.
|
|
|
|
# Corresponds to the JSON property `profileMetadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::ProfileMetadata]
|
|
|
|
attr_accessor :profile_metadata
|
2017-03-10 21:11:09 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
@etag = args[:etag] if args.key?(:etag)
|
|
|
|
@id = args[:id] if args.key?(:id)
|
|
|
|
@profile_metadata = args[:profile_metadata] if args.key?(:profile_metadata)
|
2017-03-10 21:11:09 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The response for a single person
|
|
|
|
class PersonResponse
|
2016-02-10 21:57:13 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The original requested resource name. May be different than the resource
|
|
|
|
# name on the returned person.
|
|
|
|
# The resource name can change when adding or removing fields that link a
|
|
|
|
# contact and profile such as a verified email, verified phone number, or a
|
|
|
|
# profile URL.
|
|
|
|
# Corresponds to the JSON property `requestedResourceName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :requested_resource_name
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Information about a person merged from various data sources such as the
|
2017-05-04 19:35:56 +00:00
|
|
|
# authenticated user's contacts and profile data.
|
2017-04-03 20:18:48 +00:00
|
|
|
# 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.
|
|
|
|
# Corresponds to the JSON property `person`
|
|
|
|
# @return [Google::Apis::PeopleV1::Person]
|
|
|
|
attr_accessor :person
|
2017-03-27 22:14:47 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The `Status` type defines a logical error model that is suitable for different
|
|
|
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
|
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
|
|
# - Simple to use and understand for most users
|
|
|
|
# - Flexible enough to meet unexpected needs
|
|
|
|
# # Overview
|
|
|
|
# The `Status` message contains three pieces of data: error code, error message,
|
|
|
|
# and error details. The error code should be an enum value of
|
|
|
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
|
|
# error message should be a developer-facing English message that helps
|
|
|
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
|
|
# error message is needed, put the localized message in the error details or
|
|
|
|
# localize it in the client. The optional error details may contain arbitrary
|
|
|
|
# information about the error. There is a predefined set of error detail types
|
|
|
|
# in the package `google.rpc` which can be used for common error conditions.
|
|
|
|
# # Language mapping
|
|
|
|
# The `Status` message is the logical representation of the error model, but it
|
|
|
|
# is not necessarily the actual wire format. When the `Status` message is
|
|
|
|
# exposed in different client libraries and different wire protocols, it can be
|
|
|
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
|
|
# in Java, but more likely mapped to some error codes in C.
|
|
|
|
# # Other uses
|
|
|
|
# The error model and the `Status` message can be used in a variety of
|
|
|
|
# environments, either with or without APIs, to provide a
|
|
|
|
# consistent developer experience across different environments.
|
|
|
|
# Example uses of this error model include:
|
|
|
|
# - Partial errors. If a service needs to return partial errors to the client,
|
|
|
|
# it may embed the `Status` in the normal response to indicate the partial
|
|
|
|
# errors.
|
|
|
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
|
|
# have a `Status` message for error reporting purpose.
|
|
|
|
# - Batch operations. If a client uses batch request and batch response, the
|
|
|
|
# `Status` message should be used directly inside batch response, one for
|
|
|
|
# each error sub-response.
|
|
|
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
|
|
# results in its response, the status of those operations should be
|
|
|
|
# represented directly using the `Status` message.
|
|
|
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
|
|
# be used directly after any stripping needed for security/privacy reasons.
|
|
|
|
# Corresponds to the JSON property `status`
|
|
|
|
# @return [Google::Apis::PeopleV1::Status]
|
|
|
|
attr_accessor :status
|
|
|
|
|
|
|
|
# DEPRECATED(Please use status instead).
|
|
|
|
# [HTTP 1.1 status
|
|
|
|
# code](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
|
2017-04-03 20:18:48 +00:00
|
|
|
# Corresponds to the JSON property `httpStatusCode`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :http_status_code
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-05-04 19:35:56 +00:00
|
|
|
@requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
|
2017-04-03 20:18:48 +00:00
|
|
|
@person = args[:person] if args.key?(:person)
|
2017-05-04 19:35:56 +00:00
|
|
|
@status = args[:status] if args.key?(:status)
|
2017-04-03 20:18:48 +00:00
|
|
|
@http_status_code = args[:http_status_code] if args.key?(:http_status_code)
|
2016-02-10 21:57:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's relation to another person.
|
|
|
|
class Relation
|
2017-02-13 23:28:52 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
2017-02-13 23:28:52 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The person's relation to the other person. The type can be custom or
|
|
|
|
# predefined.
|
|
|
|
# Possible values include, but are not limited to, the following values:
|
|
|
|
# * `spouse`
|
|
|
|
# * `child`
|
|
|
|
# * `mother`
|
|
|
|
# * `father`
|
|
|
|
# * `parent`
|
|
|
|
# * `brother`
|
|
|
|
# * `sister`
|
|
|
|
# * `friend`
|
|
|
|
# * `relative`
|
|
|
|
# * `domesticPartner`
|
|
|
|
# * `manager`
|
|
|
|
# * `assistant`
|
|
|
|
# * `referredBy`
|
|
|
|
# * `partner`
|
2017-03-27 22:14:47 +00:00
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
2017-02-13 23:28:52 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The name of the other person this relation refers to.
|
|
|
|
# Corresponds to the JSON property `person`
|
2017-03-30 22:30:51 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :person
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The type of the relation translated and formatted in the viewer's account
|
|
|
|
# locale or the locale specified in the Accept-Language HTTP header.
|
2017-03-30 22:30:51 +00:00
|
|
|
# Corresponds to the JSON property `formattedType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :formatted_type
|
|
|
|
|
2017-02-13 23:28:52 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-03-27 22:14:47 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
2017-04-03 20:18:48 +00:00
|
|
|
@person = args[:person] if args.key?(:person)
|
2017-03-30 22:30:51 +00:00
|
|
|
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
2017-02-13 23:28:52 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's occupation.
|
|
|
|
class Occupation
|
2016-02-10 21:57:13 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
2016-02-25 23:16:53 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The occupation; for example, `carpenter`.
|
2017-03-31 19:53:27 +00:00
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
|
|
|
|
2016-02-10 21:57:13 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-03-27 22:14:47 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-03-31 19:53:27 +00:00
|
|
|
@value = args[:value] if args.key?(:value)
|
2016-02-10 21:57:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# Information about a person merged from various data sources such as the
|
2017-05-04 19:35:56 +00:00
|
|
|
# authenticated user's contacts and profile data.
|
2017-04-03 20:18:48 +00:00
|
|
|
# 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.
|
|
|
|
class Person
|
2017-03-10 21:11:09 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The person's cover photos.
|
|
|
|
# Corresponds to the JSON property `coverPhotos`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
|
|
|
|
attr_accessor :cover_photos
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The person's instant messaging clients.
|
|
|
|
# Corresponds to the JSON property `imClients`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::ImClient>]
|
|
|
|
attr_accessor :im_clients
|
|
|
|
|
|
|
|
# The person's birthdays.
|
|
|
|
# Corresponds to the JSON property `birthdays`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Birthday>]
|
|
|
|
attr_accessor :birthdays
|
|
|
|
|
|
|
|
# The person's locale preferences.
|
|
|
|
# Corresponds to the JSON property `locales`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Locale>]
|
|
|
|
attr_accessor :locales
|
|
|
|
|
|
|
|
# The kind of relationship the person is looking for.
|
|
|
|
# Corresponds to the JSON property `relationshipInterests`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::RelationshipInterest>]
|
|
|
|
attr_accessor :relationship_interests
|
|
|
|
|
|
|
|
# The person's associated URLs.
|
|
|
|
# Corresponds to the JSON property `urls`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Url>]
|
|
|
|
attr_accessor :urls
|
|
|
|
|
|
|
|
# The person's nicknames.
|
|
|
|
# Corresponds to the JSON property `nicknames`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Nickname>]
|
|
|
|
attr_accessor :nicknames
|
|
|
|
|
|
|
|
# The person's names.
|
|
|
|
# Corresponds to the JSON property `names`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Name>]
|
|
|
|
attr_accessor :names
|
|
|
|
|
|
|
|
# The person's relations.
|
|
|
|
# Corresponds to the JSON property `relations`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Relation>]
|
|
|
|
attr_accessor :relations
|
|
|
|
|
|
|
|
# The person's occupations.
|
|
|
|
# Corresponds to the JSON property `occupations`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Occupation>]
|
|
|
|
attr_accessor :occupations
|
|
|
|
|
|
|
|
# The person's email addresses.
|
|
|
|
# Corresponds to the JSON property `emailAddresses`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::EmailAddress>]
|
|
|
|
attr_accessor :email_addresses
|
|
|
|
|
|
|
|
# The person's past or current organizations.
|
|
|
|
# Corresponds to the JSON property `organizations`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Organization>]
|
|
|
|
attr_accessor :organizations
|
|
|
|
|
|
|
|
# The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
|
|
|
|
# resource. Used for web cache validation.
|
|
|
|
# Corresponds to the JSON property `etag`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :etag
|
|
|
|
|
|
|
|
# The person's bragging rights.
|
|
|
|
# Corresponds to the JSON property `braggingRights`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::BraggingRights>]
|
|
|
|
attr_accessor :bragging_rights
|
|
|
|
|
|
|
|
# The read-only metadata about a person.
|
2017-03-10 21:11:09 +00:00
|
|
|
# Corresponds to the JSON property `metadata`
|
2017-04-03 20:18:48 +00:00
|
|
|
# @return [Google::Apis::PeopleV1::PersonMetadata]
|
2017-03-10 21:11:09 +00:00
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The person's residences.
|
|
|
|
# Corresponds to the JSON property `residences`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Residence>]
|
|
|
|
attr_accessor :residences
|
|
|
|
|
|
|
|
# The person's genders.
|
|
|
|
# Corresponds to the JSON property `genders`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Gender>]
|
|
|
|
attr_accessor :genders
|
|
|
|
|
|
|
|
# The resource name for the person, assigned by the server. An ASCII string
|
2017-05-04 19:35:56 +00:00
|
|
|
# with a max length of 27 characters, in the form of `people/<person_id>`.
|
2017-04-03 20:18:48 +00:00
|
|
|
# Corresponds to the JSON property `resourceName`
|
2017-03-30 22:30:51 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :resource_name
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The person's interests.
|
|
|
|
# Corresponds to the JSON property `interests`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Interest>]
|
|
|
|
attr_accessor :interests
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The person's biographies.
|
|
|
|
# Corresponds to the JSON property `biographies`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Biography>]
|
|
|
|
attr_accessor :biographies
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The person's skills.
|
|
|
|
# Corresponds to the JSON property `skills`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Skill>]
|
|
|
|
attr_accessor :skills
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The person's relationship statuses.
|
|
|
|
# Corresponds to the JSON property `relationshipStatuses`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::RelationshipStatus>]
|
|
|
|
attr_accessor :relationship_statuses
|
2016-02-10 21:57:13 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The person's photos.
|
|
|
|
# Corresponds to the JSON property `photos`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Photo>]
|
|
|
|
attr_accessor :photos
|
|
|
|
|
|
|
|
# DEPRECATED(Please read person.age_ranges instead). The person's age range.
|
|
|
|
# Corresponds to the JSON property `ageRange`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :age_range
|
|
|
|
|
|
|
|
# The person's taglines.
|
|
|
|
# Corresponds to the JSON property `taglines`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Tagline>]
|
|
|
|
attr_accessor :taglines
|
|
|
|
|
|
|
|
# The person's age ranges.
|
|
|
|
# Corresponds to the JSON property `ageRanges`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::AgeRangeType>]
|
|
|
|
attr_accessor :age_ranges
|
|
|
|
|
|
|
|
# The person's street addresses.
|
|
|
|
# Corresponds to the JSON property `addresses`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Address>]
|
|
|
|
attr_accessor :addresses
|
|
|
|
|
|
|
|
# The person's events.
|
|
|
|
# Corresponds to the JSON property `events`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Event>]
|
|
|
|
attr_accessor :events
|
|
|
|
|
|
|
|
# The person's group memberships.
|
|
|
|
# Corresponds to the JSON property `memberships`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Membership>]
|
|
|
|
attr_accessor :memberships
|
|
|
|
|
|
|
|
# The person's phone numbers.
|
|
|
|
# Corresponds to the JSON property `phoneNumbers`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::PhoneNumber>]
|
|
|
|
attr_accessor :phone_numbers
|
|
|
|
|
2016-02-10 21:57:13 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-05-04 19:35:56 +00:00
|
|
|
@cover_photos = args[:cover_photos] if args.key?(:cover_photos)
|
2017-04-03 20:18:48 +00:00
|
|
|
@im_clients = args[:im_clients] if args.key?(:im_clients)
|
|
|
|
@birthdays = args[:birthdays] if args.key?(:birthdays)
|
|
|
|
@locales = args[:locales] if args.key?(:locales)
|
|
|
|
@relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests)
|
|
|
|
@urls = args[:urls] if args.key?(:urls)
|
|
|
|
@nicknames = args[:nicknames] if args.key?(:nicknames)
|
|
|
|
@names = args[:names] if args.key?(:names)
|
|
|
|
@relations = args[:relations] if args.key?(:relations)
|
|
|
|
@occupations = args[:occupations] if args.key?(:occupations)
|
|
|
|
@email_addresses = args[:email_addresses] if args.key?(:email_addresses)
|
|
|
|
@organizations = args[:organizations] if args.key?(:organizations)
|
|
|
|
@etag = args[:etag] if args.key?(:etag)
|
|
|
|
@bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@residences = args[:residences] if args.key?(:residences)
|
|
|
|
@genders = args[:genders] if args.key?(:genders)
|
|
|
|
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
2017-05-04 19:35:56 +00:00
|
|
|
@interests = args[:interests] if args.key?(:interests)
|
2017-04-03 20:18:48 +00:00
|
|
|
@biographies = args[:biographies] if args.key?(:biographies)
|
|
|
|
@skills = args[:skills] if args.key?(:skills)
|
|
|
|
@relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses)
|
|
|
|
@photos = args[:photos] if args.key?(:photos)
|
|
|
|
@age_range = args[:age_range] if args.key?(:age_range)
|
|
|
|
@taglines = args[:taglines] if args.key?(:taglines)
|
|
|
|
@age_ranges = args[:age_ranges] if args.key?(:age_ranges)
|
|
|
|
@addresses = args[:addresses] if args.key?(:addresses)
|
|
|
|
@events = args[:events] if args.key?(:events)
|
|
|
|
@memberships = args[:memberships] if args.key?(:memberships)
|
|
|
|
@phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
|
2016-02-10 21:57:13 +00:00
|
|
|
end
|
2017-04-03 20:18:48 +00:00
|
|
|
end
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
#
|
|
|
|
class GetPeopleResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The response for each requested resource name.
|
|
|
|
# Corresponds to the JSON property `responses`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::PersonResponse>]
|
|
|
|
attr_accessor :responses
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2016-02-10 21:57:13 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@responses = args[:responses] if args.key?(:responses)
|
2016-02-10 21:57:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# A person's phone number.
|
|
|
|
class PhoneNumber
|
2016-02-10 21:57:13 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The read-only type of the phone number translated and formatted in the
|
|
|
|
# viewer's account locale or the the `Accept-Language` HTTP header locale.
|
|
|
|
# Corresponds to the JSON property `formattedType`
|
2016-02-25 23:16:53 +00:00
|
|
|
# @return [String]
|
2017-05-04 19:35:56 +00:00
|
|
|
attr_accessor :formatted_type
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/
|
|
|
|
# ibr/004/itu-t.E.164.1.2008.pdf)
|
|
|
|
# form of the phone number.
|
|
|
|
# Corresponds to the JSON property `canonicalForm`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :canonical_form
|
2017-03-31 19:53:27 +00:00
|
|
|
|
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The type of the phone number. The type can be custom or predefined.
|
|
|
|
# Possible values include, but are not limited to, the following:
|
|
|
|
# * `home`
|
|
|
|
# * `work`
|
|
|
|
# * `mobile`
|
|
|
|
# * `homeFax`
|
|
|
|
# * `workFax`
|
|
|
|
# * `otherFax`
|
|
|
|
# * `pager`
|
|
|
|
# * `workMobile`
|
|
|
|
# * `workPager`
|
|
|
|
# * `main`
|
|
|
|
# * `googleVoice`
|
|
|
|
# * `other`
|
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
|
|
|
# The phone number.
|
2017-03-31 19:53:27 +00:00
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :value
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2017-02-13 23:28:52 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
|
|
|
@canonical_form = args[:canonical_form] if args.key?(:canonical_form)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@type = args[:type] if args.key?(:type)
|
|
|
|
@value = args[:value] if args.key?(:value)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A person's read-only photo. A picture shown next to the person's name to
|
|
|
|
# help others recognize the person.
|
|
|
|
class Photo
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The URL of the photo.
|
|
|
|
# Corresponds to the JSON property `url`
|
2017-04-03 20:18:48 +00:00
|
|
|
# @return [String]
|
2017-05-04 19:35:56 +00:00
|
|
|
attr_accessor :url
|
|
|
|
|
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
2017-02-13 23:28:52 +00:00
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2017-02-13 23:28:52 +00:00
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-05-04 19:35:56 +00:00
|
|
|
@url = args[:url] if args.key?(:url)
|
2017-04-03 20:18:48 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-03-27 22:14:47 +00:00
|
|
|
end
|
|
|
|
end
|
2017-02-13 23:28:52 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
#
|
|
|
|
class ListConnectionsResponse
|
2017-03-27 22:14:47 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
2017-02-13 23:28:52 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The token that can be used to retrieve the next page of results.
|
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
2017-03-27 22:14:47 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :next_page_token
|
2017-03-10 21:11:09 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The list of people that the requestor is connected to.
|
|
|
|
# Corresponds to the JSON property `connections`
|
|
|
|
# @return [Array<Google::Apis::PeopleV1::Person>]
|
|
|
|
attr_accessor :connections
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The token that can be used to retrieve changes since the last request.
|
|
|
|
# Corresponds to the JSON property `nextSyncToken`
|
2017-03-30 22:30:51 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :next_sync_token
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The total number of items in the list without pagination.
|
|
|
|
# Corresponds to the JSON property `totalItems`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :total_items
|
|
|
|
|
|
|
|
# DEPRECATED(Please use total_items). The total number of people in the list
|
|
|
|
# without pagination.
|
2017-04-03 20:18:48 +00:00
|
|
|
# Corresponds to the JSON property `totalPeople`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :total_people
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2016-02-10 21:57:13 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-04-03 20:18:48 +00:00
|
|
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
|
|
@connections = args[:connections] if args.key?(:connections)
|
|
|
|
@next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
|
2017-05-04 19:35:56 +00:00
|
|
|
@total_items = args[:total_items] if args.key?(:total_items)
|
2017-04-03 20:18:48 +00:00
|
|
|
@total_people = args[:total_people] if args.key?(:total_people)
|
2016-02-10 21:57:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's birthday. At least one of the `date` and `text` fields are
|
|
|
|
# specified. The `date` and `text` fields typically represent the same
|
|
|
|
# date, but are not guaranteed to.
|
|
|
|
class Birthday
|
2016-02-10 21:57:13 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A free-form string representing the user's birthday.
|
|
|
|
# Corresponds to the JSON property `text`
|
2017-03-27 22:14:47 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :text
|
|
|
|
|
|
|
|
# Represents a whole calendar date, for example a date of birth. The time
|
|
|
|
# of day and time zone are either specified elsewhere or are not
|
|
|
|
# significant. The date is relative to the
|
|
|
|
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
|
|
|
# Proleptic_Gregorian_calendar).
|
|
|
|
# The day may be 0 to represent a year and month where the day is not
|
|
|
|
# significant. The year may be 0 to represent a month and day independent
|
|
|
|
# of year; for example, anniversary date.
|
|
|
|
# Corresponds to the JSON property `date`
|
|
|
|
# @return [Google::Apis::PeopleV1::Date]
|
|
|
|
attr_accessor :date
|
2016-02-10 21:57:13 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-03-27 22:14:47 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-04-03 20:18:48 +00:00
|
|
|
@text = args[:text] if args.key?(:text)
|
|
|
|
@date = args[:date] if args.key?(:date)
|
2016-02-10 21:57:13 +00:00
|
|
|
end
|
|
|
|
end
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# A person's physical address. May be a P.O. box or street address. All fields
|
|
|
|
# are optional.
|
|
|
|
class Address
|
2017-03-31 19:53:27 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The read-only type of the address translated and formatted in the viewer's
|
|
|
|
# account locale or the `Accept-Language` HTTP header locale.
|
2017-03-31 19:53:27 +00:00
|
|
|
# Corresponds to the JSON property `formattedType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :formatted_type
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The city of the address.
|
|
|
|
# Corresponds to the JSON property `city`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :city
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The unstructured value of the address. If this is not set by the user it
|
|
|
|
# will be automatically constructed from structured values.
|
|
|
|
# Corresponds to the JSON property `formattedValue`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :formatted_value
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The country of the address.
|
|
|
|
# Corresponds to the JSON property `country`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :country
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The type of the address. The type can be custom or predefined.
|
2017-03-31 19:53:27 +00:00
|
|
|
# Possible values include, but are not limited to, the following:
|
2017-04-03 20:18:48 +00:00
|
|
|
# * `home`
|
2017-03-31 19:53:27 +00:00
|
|
|
# * `work`
|
2017-04-03 20:18:48 +00:00
|
|
|
# * `other`
|
2017-03-31 19:53:27 +00:00
|
|
|
# Corresponds to the JSON property `type`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :type
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The extended address of the address; for example, the apartment number.
|
|
|
|
# Corresponds to the JSON property `extendedAddress`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :extended_address
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The P.O. box of the address.
|
|
|
|
# Corresponds to the JSON property `poBox`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :po_box
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The postal code of the address.
|
|
|
|
# Corresponds to the JSON property `postalCode`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :postal_code
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# The region of the address; for example, the state or province.
|
|
|
|
# Corresponds to the JSON property `region`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-04-03 20:18:48 +00:00
|
|
|
attr_accessor :region
|
|
|
|
|
|
|
|
# The street address.
|
|
|
|
# Corresponds to the JSON property `streetAddress`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :street_address
|
2017-03-31 19:53:27 +00:00
|
|
|
|
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country
|
|
|
|
# code of the address.
|
|
|
|
# Corresponds to the JSON property `countryCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :country_code
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
2017-04-03 20:18:48 +00:00
|
|
|
@city = args[:city] if args.key?(:city)
|
|
|
|
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
|
|
|
@country = args[:country] if args.key?(:country)
|
2017-03-31 19:53:27 +00:00
|
|
|
@type = args[:type] if args.key?(:type)
|
2017-04-03 20:18:48 +00:00
|
|
|
@extended_address = args[:extended_address] if args.key?(:extended_address)
|
|
|
|
@po_box = args[:po_box] if args.key?(:po_box)
|
|
|
|
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
|
|
|
@region = args[:region] if args.key?(:region)
|
|
|
|
@street_address = args[:street_address] if args.key?(:street_address)
|
2017-03-31 19:53:27 +00:00
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-05-04 19:35:56 +00:00
|
|
|
@country_code = args[:country_code] if args.key?(:country_code)
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# A person's past or current residence.
|
|
|
|
class Residence
|
2017-03-31 19:53:27 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Metadata about a field.
|
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# True if the residence is the person's current residence;
|
|
|
|
# false if the residence is a past residence.
|
|
|
|
# Corresponds to the JSON property `current`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :current
|
|
|
|
alias_method :current?, :current
|
2017-04-03 20:18:48 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
# The address of the residence.
|
|
|
|
# Corresponds to the JSON property `value`
|
2017-04-03 20:18:48 +00:00
|
|
|
# @return [String]
|
2017-05-04 19:35:56 +00:00
|
|
|
attr_accessor :value
|
2017-04-03 20:18:48 +00:00
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
2017-05-04 19:35:56 +00:00
|
|
|
@current = args[:current] if args.key?(:current)
|
|
|
|
@value = args[:value] if args.key?(:value)
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
2016-02-10 21:57:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|