google-api-client 0.9.8 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
@@ -20,40 +20,39 @@ module Google
|
|
20
20
|
module Apis
|
21
21
|
# Google People API
|
22
22
|
#
|
23
|
-
#
|
24
|
-
# contacts.
|
23
|
+
# Provides access to information about profiles and contacts.
|
25
24
|
#
|
26
25
|
# @see https://developers.google.com/people/
|
27
26
|
module PeopleV1
|
28
27
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
28
|
+
REVISION = '20170326'
|
30
29
|
|
31
|
-
#
|
32
|
-
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
|
33
|
-
|
34
|
-
# View your contacts
|
35
|
-
AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
|
36
|
-
|
37
|
-
# Know your basic profile info and list of people in your circles.
|
30
|
+
# Know the list of people in your circles, your age range, and language
|
38
31
|
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
39
32
|
|
33
|
+
# View your basic profile info
|
34
|
+
AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
|
35
|
+
|
40
36
|
# View your street addresses
|
41
37
|
AUTH_USER_ADDRESSES_READ = 'https://www.googleapis.com/auth/user.addresses.read'
|
42
38
|
|
43
|
-
#
|
44
|
-
|
39
|
+
# Manage your contacts
|
40
|
+
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
|
45
41
|
|
46
42
|
# View your email addresses
|
47
43
|
AUTH_USER_EMAILS_READ = 'https://www.googleapis.com/auth/user.emails.read'
|
48
44
|
|
45
|
+
# View your email address
|
46
|
+
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
47
|
+
|
49
48
|
# View your phone numbers
|
50
49
|
AUTH_USER_PHONENUMBERS_READ = 'https://www.googleapis.com/auth/user.phonenumbers.read'
|
51
50
|
|
52
|
-
# View your
|
53
|
-
|
51
|
+
# View your contacts
|
52
|
+
AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
|
54
53
|
|
55
|
-
# View your
|
56
|
-
|
54
|
+
# View your complete date of birth
|
55
|
+
AUTH_USER_BIRTHDAY_READ = 'https://www.googleapis.com/auth/user.birthday.read'
|
57
56
|
end
|
58
57
|
end
|
59
58
|
end
|
@@ -22,160 +22,195 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PeopleV1
|
24
24
|
|
25
|
-
#
|
26
|
-
|
27
|
-
# metadata, and group memberships are user-edited. Most fields can have multiple
|
28
|
-
# items. The items in a field have no guaranteed order, but each non-empty field
|
29
|
-
# is guaranteed to have exactly one field with `metadata.primary` set to true.
|
30
|
-
class Person
|
25
|
+
# A person's locale preference.
|
26
|
+
class Locale
|
31
27
|
include Google::Apis::Core::Hashable
|
32
28
|
|
33
|
-
#
|
34
|
-
#
|
35
|
-
#
|
36
|
-
|
37
|
-
attr_accessor :resource_name
|
29
|
+
# Metadata about a field.
|
30
|
+
# Corresponds to the JSON property `metadata`
|
31
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
32
|
+
attr_accessor :metadata
|
38
33
|
|
39
|
-
# The [
|
40
|
-
#
|
41
|
-
# Corresponds to the JSON property `
|
34
|
+
# The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47)
|
35
|
+
# language tag representing the locale.
|
36
|
+
# Corresponds to the JSON property `value`
|
42
37
|
# @return [String]
|
43
|
-
attr_accessor :
|
38
|
+
attr_accessor :value
|
44
39
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
attr_accessor :metadata
|
40
|
+
def initialize(**args)
|
41
|
+
update!(**args)
|
42
|
+
end
|
49
43
|
|
50
|
-
#
|
51
|
-
|
52
|
-
|
53
|
-
|
44
|
+
# Update properties of this object
|
45
|
+
def update!(**args)
|
46
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
47
|
+
@value = args[:value] if args.key?(:value)
|
48
|
+
end
|
49
|
+
end
|
54
50
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
51
|
+
# A person's past or current organization. Overlapping date ranges are
|
52
|
+
# permitted.
|
53
|
+
class Organization
|
54
|
+
include Google::Apis::Core::Hashable
|
59
55
|
|
60
|
-
# The
|
61
|
-
#
|
62
|
-
#
|
63
|
-
|
56
|
+
# The read-only type of the organization translated and formatted in the
|
57
|
+
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
58
|
+
# Corresponds to the JSON property `formattedType`
|
59
|
+
# @return [String]
|
60
|
+
attr_accessor :formatted_type
|
64
61
|
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
|
62
|
+
# Represents a whole calendar date, for example a date of birth. The time
|
63
|
+
# of day and time zone are either specified elsewhere or are not
|
64
|
+
# significant. The date is relative to the
|
65
|
+
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
66
|
+
# Proleptic_Gregorian_calendar).
|
67
|
+
# The day may be 0 to represent a year and month where the day is not
|
68
|
+
# significant. The year may be 0 to represent a month and day independent
|
69
|
+
# of year; for example, anniversary date.
|
70
|
+
# Corresponds to the JSON property `startDate`
|
71
|
+
# @return [Google::Apis::PeopleV1::Date]
|
72
|
+
attr_accessor :start_date
|
69
73
|
|
70
|
-
# The
|
71
|
-
# Corresponds to the JSON property `
|
72
|
-
# @return [
|
73
|
-
attr_accessor :
|
74
|
+
# The domain name associated with the organization; for example, `google.com`.
|
75
|
+
# Corresponds to the JSON property `domain`
|
76
|
+
# @return [String]
|
77
|
+
attr_accessor :domain
|
74
78
|
|
75
|
-
# The person's
|
76
|
-
# Corresponds to the JSON property `
|
77
|
-
# @return [
|
78
|
-
attr_accessor :
|
79
|
+
# The person's department at the organization.
|
80
|
+
# Corresponds to the JSON property `department`
|
81
|
+
# @return [String]
|
82
|
+
attr_accessor :department
|
79
83
|
|
80
|
-
# The
|
81
|
-
#
|
84
|
+
# The type of the organization. The type can be custom or predefined.
|
85
|
+
# Possible values include, but are not limited to, the following:
|
86
|
+
# * `work`
|
87
|
+
# * `school`
|
88
|
+
# Corresponds to the JSON property `type`
|
82
89
|
# @return [String]
|
83
|
-
attr_accessor :
|
90
|
+
attr_accessor :type
|
84
91
|
|
85
|
-
# The
|
86
|
-
# Corresponds to the JSON property `
|
87
|
-
# @return [
|
88
|
-
attr_accessor :
|
92
|
+
# The phonetic name of the organization.
|
93
|
+
# Corresponds to the JSON property `phoneticName`
|
94
|
+
# @return [String]
|
95
|
+
attr_accessor :phonetic_name
|
89
96
|
|
90
|
-
# The person's
|
91
|
-
# Corresponds to the JSON property `
|
92
|
-
# @return [
|
93
|
-
attr_accessor :
|
97
|
+
# The person's job description at the organization.
|
98
|
+
# Corresponds to the JSON property `jobDescription`
|
99
|
+
# @return [String]
|
100
|
+
attr_accessor :job_description
|
94
101
|
|
95
|
-
#
|
96
|
-
#
|
97
|
-
#
|
98
|
-
|
102
|
+
# Represents a whole calendar date, for example a date of birth. The time
|
103
|
+
# of day and time zone are either specified elsewhere or are not
|
104
|
+
# significant. The date is relative to the
|
105
|
+
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
106
|
+
# Proleptic_Gregorian_calendar).
|
107
|
+
# The day may be 0 to represent a year and month where the day is not
|
108
|
+
# significant. The year may be 0 to represent a month and day independent
|
109
|
+
# of year; for example, anniversary date.
|
110
|
+
# Corresponds to the JSON property `endDate`
|
111
|
+
# @return [Google::Apis::PeopleV1::Date]
|
112
|
+
attr_accessor :end_date
|
99
113
|
|
100
|
-
# The
|
101
|
-
#
|
102
|
-
#
|
103
|
-
|
114
|
+
# The symbol associated with the organization; for example, a stock ticker
|
115
|
+
# symbol, abbreviation, or acronym.
|
116
|
+
# Corresponds to the JSON property `symbol`
|
117
|
+
# @return [String]
|
118
|
+
attr_accessor :symbol
|
104
119
|
|
105
|
-
# The
|
106
|
-
# Corresponds to the JSON property `
|
107
|
-
# @return [
|
108
|
-
attr_accessor :
|
120
|
+
# The name of the organization.
|
121
|
+
# Corresponds to the JSON property `name`
|
122
|
+
# @return [String]
|
123
|
+
attr_accessor :name
|
109
124
|
|
110
|
-
#
|
111
|
-
# Corresponds to the JSON property `
|
112
|
-
# @return [
|
113
|
-
attr_accessor :
|
125
|
+
# Metadata about a field.
|
126
|
+
# Corresponds to the JSON property `metadata`
|
127
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
128
|
+
attr_accessor :metadata
|
114
129
|
|
115
|
-
# The person's
|
116
|
-
# Corresponds to the JSON property `
|
117
|
-
# @return [
|
118
|
-
attr_accessor :
|
130
|
+
# The person's job title at the organization.
|
131
|
+
# Corresponds to the JSON property `title`
|
132
|
+
# @return [String]
|
133
|
+
attr_accessor :title
|
119
134
|
|
120
|
-
# The person
|
121
|
-
# Corresponds to the JSON property `
|
122
|
-
# @return [
|
123
|
-
attr_accessor :
|
135
|
+
# The location of the organization office the person works at.
|
136
|
+
# Corresponds to the JSON property `location`
|
137
|
+
# @return [String]
|
138
|
+
attr_accessor :location
|
124
139
|
|
125
|
-
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
|
140
|
+
# True if the organization is the person's current organization;
|
141
|
+
# false if the organization is a past organization.
|
142
|
+
# Corresponds to the JSON property `current`
|
143
|
+
# @return [Boolean]
|
144
|
+
attr_accessor :current
|
145
|
+
alias_method :current?, :current
|
129
146
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
attr_accessor :urls
|
147
|
+
def initialize(**args)
|
148
|
+
update!(**args)
|
149
|
+
end
|
134
150
|
|
135
|
-
#
|
136
|
-
|
137
|
-
|
138
|
-
|
151
|
+
# Update properties of this object
|
152
|
+
def update!(**args)
|
153
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
154
|
+
@start_date = args[:start_date] if args.key?(:start_date)
|
155
|
+
@domain = args[:domain] if args.key?(:domain)
|
156
|
+
@department = args[:department] if args.key?(:department)
|
157
|
+
@type = args[:type] if args.key?(:type)
|
158
|
+
@phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
|
159
|
+
@job_description = args[:job_description] if args.key?(:job_description)
|
160
|
+
@end_date = args[:end_date] if args.key?(:end_date)
|
161
|
+
@symbol = args[:symbol] if args.key?(:symbol)
|
162
|
+
@name = args[:name] if args.key?(:name)
|
163
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
164
|
+
@title = args[:title] if args.key?(:title)
|
165
|
+
@location = args[:location] if args.key?(:location)
|
166
|
+
@current = args[:current] if args.key?(:current)
|
167
|
+
end
|
168
|
+
end
|
139
169
|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
attr_accessor :occupations
|
170
|
+
# A person's short biography.
|
171
|
+
class Biography
|
172
|
+
include Google::Apis::Core::Hashable
|
144
173
|
|
145
|
-
# The
|
146
|
-
# Corresponds to the JSON property `
|
147
|
-
# @return [
|
148
|
-
attr_accessor :
|
174
|
+
# The short biography.
|
175
|
+
# Corresponds to the JSON property `value`
|
176
|
+
# @return [String]
|
177
|
+
attr_accessor :value
|
149
178
|
|
150
|
-
# The
|
151
|
-
# Corresponds to the JSON property `
|
152
|
-
# @return [
|
153
|
-
attr_accessor :
|
179
|
+
# The content type of the biography.
|
180
|
+
# Corresponds to the JSON property `contentType`
|
181
|
+
# @return [String]
|
182
|
+
attr_accessor :content_type
|
154
183
|
|
155
|
-
#
|
156
|
-
# Corresponds to the JSON property `
|
157
|
-
# @return [
|
158
|
-
attr_accessor :
|
184
|
+
# Metadata about a field.
|
185
|
+
# Corresponds to the JSON property `metadata`
|
186
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
187
|
+
attr_accessor :metadata
|
159
188
|
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
attr_accessor :relations
|
189
|
+
def initialize(**args)
|
190
|
+
update!(**args)
|
191
|
+
end
|
164
192
|
|
165
|
-
#
|
166
|
-
|
167
|
-
|
168
|
-
|
193
|
+
# Update properties of this object
|
194
|
+
def update!(**args)
|
195
|
+
@value = args[:value] if args.key?(:value)
|
196
|
+
@content_type = args[:content_type] if args.key?(:content_type)
|
197
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
198
|
+
end
|
199
|
+
end
|
169
200
|
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
attr_accessor :relationship_statuses
|
201
|
+
# A person's age range.
|
202
|
+
class AgeRangeType
|
203
|
+
include Google::Apis::Core::Hashable
|
174
204
|
|
175
|
-
#
|
176
|
-
# Corresponds to the JSON property `
|
177
|
-
# @return [
|
178
|
-
attr_accessor :
|
205
|
+
# Metadata about a field.
|
206
|
+
# Corresponds to the JSON property `metadata`
|
207
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
208
|
+
attr_accessor :metadata
|
209
|
+
|
210
|
+
# The age range.
|
211
|
+
# Corresponds to the JSON property `ageRange`
|
212
|
+
# @return [String]
|
213
|
+
attr_accessor :age_range
|
179
214
|
|
180
215
|
def initialize(**args)
|
181
216
|
update!(**args)
|
@@ -183,68 +218,75 @@ module Google
|
|
183
218
|
|
184
219
|
# Update properties of this object
|
185
220
|
def update!(**args)
|
186
|
-
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
187
|
-
@etag = args[:etag] if args.key?(:etag)
|
188
221
|
@metadata = args[:metadata] if args.key?(:metadata)
|
189
|
-
@locales = args[:locales] if args.key?(:locales)
|
190
|
-
@names = args[:names] if args.key?(:names)
|
191
|
-
@nicknames = args[:nicknames] if args.key?(:nicknames)
|
192
|
-
@cover_photos = args[:cover_photos] if args.key?(:cover_photos)
|
193
|
-
@photos = args[:photos] if args.key?(:photos)
|
194
|
-
@genders = args[:genders] if args.key?(:genders)
|
195
222
|
@age_range = args[:age_range] if args.key?(:age_range)
|
196
|
-
@birthdays = args[:birthdays] if args.key?(:birthdays)
|
197
|
-
@events = args[:events] if args.key?(:events)
|
198
|
-
@addresses = args[:addresses] if args.key?(:addresses)
|
199
|
-
@residences = args[:residences] if args.key?(:residences)
|
200
|
-
@email_addresses = args[:email_addresses] if args.key?(:email_addresses)
|
201
|
-
@phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
|
202
|
-
@im_clients = args[:im_clients] if args.key?(:im_clients)
|
203
|
-
@taglines = args[:taglines] if args.key?(:taglines)
|
204
|
-
@biographies = args[:biographies] if args.key?(:biographies)
|
205
|
-
@urls = args[:urls] if args.key?(:urls)
|
206
|
-
@organizations = args[:organizations] if args.key?(:organizations)
|
207
|
-
@occupations = args[:occupations] if args.key?(:occupations)
|
208
|
-
@interests = args[:interests] if args.key?(:interests)
|
209
|
-
@skills = args[:skills] if args.key?(:skills)
|
210
|
-
@bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights)
|
211
|
-
@relations = args[:relations] if args.key?(:relations)
|
212
|
-
@relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests)
|
213
|
-
@relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses)
|
214
|
-
@memberships = args[:memberships] if args.key?(:memberships)
|
215
223
|
end
|
216
224
|
end
|
217
225
|
|
218
|
-
# Metadata about a
|
219
|
-
class
|
226
|
+
# Metadata about a field.
|
227
|
+
class FieldMetadata
|
220
228
|
include Google::Apis::Core::Hashable
|
221
229
|
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
225
|
-
|
230
|
+
# True if the field is the primary field; false if the field is a secondary
|
231
|
+
# field.
|
232
|
+
# Corresponds to the JSON property `primary`
|
233
|
+
# @return [Boolean]
|
234
|
+
attr_accessor :primary
|
235
|
+
alias_method :primary?, :primary
|
226
236
|
|
227
|
-
#
|
228
|
-
#
|
229
|
-
#
|
230
|
-
|
231
|
-
# phone number, or profile URL.
|
232
|
-
# Corresponds to the JSON property `previousResourceNames`
|
233
|
-
# @return [Array<String>]
|
234
|
-
attr_accessor :previous_resource_names
|
237
|
+
# The source of a field.
|
238
|
+
# Corresponds to the JSON property `source`
|
239
|
+
# @return [Google::Apis::PeopleV1::Source]
|
240
|
+
attr_accessor :source
|
235
241
|
|
236
|
-
# True if the
|
237
|
-
#
|
238
|
-
#
|
239
|
-
# Corresponds to the JSON property `
|
242
|
+
# True if the field is verified; false if the field is unverified. A
|
243
|
+
# verified field is typically a name, email address, phone number, or
|
244
|
+
# website that has been confirmed to be owned by the person.
|
245
|
+
# Corresponds to the JSON property `verified`
|
240
246
|
# @return [Boolean]
|
241
|
-
attr_accessor :
|
242
|
-
alias_method :
|
247
|
+
attr_accessor :verified
|
248
|
+
alias_method :verified?, :verified
|
243
249
|
|
244
|
-
|
245
|
-
|
250
|
+
def initialize(**args)
|
251
|
+
update!(**args)
|
252
|
+
end
|
253
|
+
|
254
|
+
# Update properties of this object
|
255
|
+
def update!(**args)
|
256
|
+
@primary = args[:primary] if args.key?(:primary)
|
257
|
+
@source = args[:source] if args.key?(:source)
|
258
|
+
@verified = args[:verified] if args.key?(:verified)
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
# The response for a single person
|
263
|
+
class PersonResponse
|
264
|
+
include Google::Apis::Core::Hashable
|
265
|
+
|
266
|
+
# Information about a person merged from various data sources such as the
|
267
|
+
# authenticated user's contacts and profile data. Fields other than IDs,
|
268
|
+
# metadata, and group memberships are user-edited.
|
269
|
+
# Most fields can have multiple items. The items in a field have no guaranteed
|
270
|
+
# order, but each non-empty field is guaranteed to have exactly one field with
|
271
|
+
# `metadata.primary` set to true.
|
272
|
+
# NEXT_ID: 31
|
273
|
+
# Corresponds to the JSON property `person`
|
274
|
+
# @return [Google::Apis::PeopleV1::Person]
|
275
|
+
attr_accessor :person
|
276
|
+
|
277
|
+
# [HTTP 1.1 status code](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
|
278
|
+
# Corresponds to the JSON property `httpStatusCode`
|
279
|
+
# @return [Fixnum]
|
280
|
+
attr_accessor :http_status_code
|
281
|
+
|
282
|
+
# The original requested resource name. May be different than the resource
|
283
|
+
# name on the returned person.
|
284
|
+
# The resource name can change when adding or removing fields that link a
|
285
|
+
# contact and profile such as a verified email, verified phone number, or a
|
286
|
+
# profile URL.
|
287
|
+
# Corresponds to the JSON property `requestedResourceName`
|
246
288
|
# @return [String]
|
247
|
-
attr_accessor :
|
289
|
+
attr_accessor :requested_resource_name
|
248
290
|
|
249
291
|
def initialize(**args)
|
250
292
|
update!(**args)
|
@@ -252,10 +294,48 @@ module Google
|
|
252
294
|
|
253
295
|
# Update properties of this object
|
254
296
|
def update!(**args)
|
255
|
-
@
|
256
|
-
@
|
257
|
-
@
|
258
|
-
|
297
|
+
@person = args[:person] if args.key?(:person)
|
298
|
+
@http_status_code = args[:http_status_code] if args.key?(:http_status_code)
|
299
|
+
@requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
# A person's read-only relationship interest .
|
304
|
+
class RelationshipInterest
|
305
|
+
include Google::Apis::Core::Hashable
|
306
|
+
|
307
|
+
# The value of the relationship interest translated and formatted in the
|
308
|
+
# viewer's account locale or the locale specified in the Accept-Language
|
309
|
+
# HTTP header.
|
310
|
+
# Corresponds to the JSON property `formattedValue`
|
311
|
+
# @return [String]
|
312
|
+
attr_accessor :formatted_value
|
313
|
+
|
314
|
+
# Metadata about a field.
|
315
|
+
# Corresponds to the JSON property `metadata`
|
316
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
317
|
+
attr_accessor :metadata
|
318
|
+
|
319
|
+
# The kind of relationship the person is looking for. The value can be custom
|
320
|
+
# or predefined. Possible values include, but are not limited to, the
|
321
|
+
# following values:
|
322
|
+
# * `friend`
|
323
|
+
# * `date`
|
324
|
+
# * `relationship`
|
325
|
+
# * `networking`
|
326
|
+
# Corresponds to the JSON property `value`
|
327
|
+
# @return [String]
|
328
|
+
attr_accessor :value
|
329
|
+
|
330
|
+
def initialize(**args)
|
331
|
+
update!(**args)
|
332
|
+
end
|
333
|
+
|
334
|
+
# Update properties of this object
|
335
|
+
def update!(**args)
|
336
|
+
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
337
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
338
|
+
@value = args[:value] if args.key?(:value)
|
259
339
|
end
|
260
340
|
end
|
261
341
|
|
@@ -263,15 +343,81 @@ module Google
|
|
263
343
|
class Source
|
264
344
|
include Google::Apis::Core::Hashable
|
265
345
|
|
346
|
+
# The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
|
347
|
+
# source. Used for web cache validation. Only populated in
|
348
|
+
# person.metadata.sources.
|
349
|
+
# Corresponds to the JSON property `etag`
|
350
|
+
# @return [String]
|
351
|
+
attr_accessor :etag
|
352
|
+
|
353
|
+
# The unique identifier within the source type generated by the server.
|
354
|
+
# Corresponds to the JSON property `id`
|
355
|
+
# @return [String]
|
356
|
+
attr_accessor :id
|
357
|
+
|
358
|
+
# The read-only metadata about a profile.
|
359
|
+
# Corresponds to the JSON property `profileMetadata`
|
360
|
+
# @return [Google::Apis::PeopleV1::ProfileMetadata]
|
361
|
+
attr_accessor :profile_metadata
|
362
|
+
|
266
363
|
# The source type.
|
267
364
|
# Corresponds to the JSON property `type`
|
268
365
|
# @return [String]
|
269
366
|
attr_accessor :type
|
270
367
|
|
271
|
-
|
272
|
-
|
368
|
+
def initialize(**args)
|
369
|
+
update!(**args)
|
370
|
+
end
|
371
|
+
|
372
|
+
# Update properties of this object
|
373
|
+
def update!(**args)
|
374
|
+
@etag = args[:etag] if args.key?(:etag)
|
375
|
+
@id = args[:id] if args.key?(:id)
|
376
|
+
@profile_metadata = args[:profile_metadata] if args.key?(:profile_metadata)
|
377
|
+
@type = args[:type] if args.key?(:type)
|
378
|
+
end
|
379
|
+
end
|
380
|
+
|
381
|
+
# A person's relation to another person.
|
382
|
+
class Relation
|
383
|
+
include Google::Apis::Core::Hashable
|
384
|
+
|
385
|
+
# Metadata about a field.
|
386
|
+
# Corresponds to the JSON property `metadata`
|
387
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
388
|
+
attr_accessor :metadata
|
389
|
+
|
390
|
+
# The person's relation to the other person. The type can be custom or
|
391
|
+
# predefined.
|
392
|
+
# Possible values include, but are not limited to, the following values:
|
393
|
+
# * `spouse`
|
394
|
+
# * `child`
|
395
|
+
# * `mother`
|
396
|
+
# * `father`
|
397
|
+
# * `parent`
|
398
|
+
# * `brother`
|
399
|
+
# * `sister`
|
400
|
+
# * `friend`
|
401
|
+
# * `relative`
|
402
|
+
# * `domesticPartner`
|
403
|
+
# * `manager`
|
404
|
+
# * `assistant`
|
405
|
+
# * `referredBy`
|
406
|
+
# * `partner`
|
407
|
+
# Corresponds to the JSON property `type`
|
273
408
|
# @return [String]
|
274
|
-
attr_accessor :
|
409
|
+
attr_accessor :type
|
410
|
+
|
411
|
+
# The name of the other person this relation refers to.
|
412
|
+
# Corresponds to the JSON property `person`
|
413
|
+
# @return [String]
|
414
|
+
attr_accessor :person
|
415
|
+
|
416
|
+
# The type of the relation translated and formatted in the viewer's account
|
417
|
+
# locale or the locale specified in the Accept-Language HTTP header.
|
418
|
+
# Corresponds to the JSON property `formattedType`
|
419
|
+
# @return [String]
|
420
|
+
attr_accessor :formatted_type
|
275
421
|
|
276
422
|
def initialize(**args)
|
277
423
|
update!(**args)
|
@@ -279,13 +425,15 @@ module Google
|
|
279
425
|
|
280
426
|
# Update properties of this object
|
281
427
|
def update!(**args)
|
428
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
282
429
|
@type = args[:type] if args.key?(:type)
|
283
|
-
@
|
430
|
+
@person = args[:person] if args.key?(:person)
|
431
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
284
432
|
end
|
285
433
|
end
|
286
434
|
|
287
|
-
# A person's
|
288
|
-
class
|
435
|
+
# A person's occupation.
|
436
|
+
class Occupation
|
289
437
|
include Google::Apis::Core::Hashable
|
290
438
|
|
291
439
|
# Metadata about a field.
|
@@ -293,123 +441,183 @@ module Google
|
|
293
441
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
294
442
|
attr_accessor :metadata
|
295
443
|
|
296
|
-
# The
|
297
|
-
#
|
298
|
-
#
|
444
|
+
# The occupation; for example, `carpenter`.
|
445
|
+
# Corresponds to the JSON property `value`
|
446
|
+
# @return [String]
|
447
|
+
attr_accessor :value
|
448
|
+
|
449
|
+
def initialize(**args)
|
450
|
+
update!(**args)
|
451
|
+
end
|
452
|
+
|
453
|
+
# Update properties of this object
|
454
|
+
def update!(**args)
|
455
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
456
|
+
@value = args[:value] if args.key?(:value)
|
457
|
+
end
|
458
|
+
end
|
459
|
+
|
460
|
+
# Information about a person merged from various data sources such as the
|
461
|
+
# authenticated user's contacts and profile data. Fields other than IDs,
|
462
|
+
# metadata, and group memberships are user-edited.
|
463
|
+
# Most fields can have multiple items. The items in a field have no guaranteed
|
464
|
+
# order, but each non-empty field is guaranteed to have exactly one field with
|
465
|
+
# `metadata.primary` set to true.
|
466
|
+
# NEXT_ID: 31
|
467
|
+
class Person
|
468
|
+
include Google::Apis::Core::Hashable
|
469
|
+
|
470
|
+
# The person's relations.
|
471
|
+
# Corresponds to the JSON property `relations`
|
472
|
+
# @return [Array<Google::Apis::PeopleV1::Relation>]
|
473
|
+
attr_accessor :relations
|
474
|
+
|
475
|
+
# The person's names.
|
476
|
+
# Corresponds to the JSON property `names`
|
477
|
+
# @return [Array<Google::Apis::PeopleV1::Name>]
|
478
|
+
attr_accessor :names
|
479
|
+
|
480
|
+
# The person's occupations.
|
481
|
+
# Corresponds to the JSON property `occupations`
|
482
|
+
# @return [Array<Google::Apis::PeopleV1::Occupation>]
|
483
|
+
attr_accessor :occupations
|
484
|
+
|
485
|
+
# The person's email addresses.
|
486
|
+
# Corresponds to the JSON property `emailAddresses`
|
487
|
+
# @return [Array<Google::Apis::PeopleV1::EmailAddress>]
|
488
|
+
attr_accessor :email_addresses
|
489
|
+
|
490
|
+
# The person's past or current organizations.
|
491
|
+
# Corresponds to the JSON property `organizations`
|
492
|
+
# @return [Array<Google::Apis::PeopleV1::Organization>]
|
493
|
+
attr_accessor :organizations
|
494
|
+
|
495
|
+
# The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
|
496
|
+
# resource. Used for web cache validation.
|
497
|
+
# Corresponds to the JSON property `etag`
|
498
|
+
# @return [String]
|
499
|
+
attr_accessor :etag
|
500
|
+
|
501
|
+
# The person's bragging rights.
|
502
|
+
# Corresponds to the JSON property `braggingRights`
|
503
|
+
# @return [Array<Google::Apis::PeopleV1::BraggingRights>]
|
504
|
+
attr_accessor :bragging_rights
|
505
|
+
|
506
|
+
# The read-only metadata about a person.
|
507
|
+
# Corresponds to the JSON property `metadata`
|
508
|
+
# @return [Google::Apis::PeopleV1::PersonMetadata]
|
509
|
+
attr_accessor :metadata
|
510
|
+
|
511
|
+
# The person's residences.
|
512
|
+
# Corresponds to the JSON property `residences`
|
513
|
+
# @return [Array<Google::Apis::PeopleV1::Residence>]
|
514
|
+
attr_accessor :residences
|
515
|
+
|
516
|
+
# The person's genders.
|
517
|
+
# Corresponds to the JSON property `genders`
|
518
|
+
# @return [Array<Google::Apis::PeopleV1::Gender>]
|
519
|
+
attr_accessor :genders
|
520
|
+
|
521
|
+
# The resource name for the person, assigned by the server. An ASCII string
|
522
|
+
# with a max length of 27 characters. Always starts with `people/`.
|
523
|
+
# Corresponds to the JSON property `resourceName`
|
299
524
|
# @return [String]
|
300
|
-
attr_accessor :
|
301
|
-
|
302
|
-
def initialize(**args)
|
303
|
-
update!(**args)
|
304
|
-
end
|
305
|
-
|
306
|
-
# Update properties of this object
|
307
|
-
def update!(**args)
|
308
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
309
|
-
@value = args[:value] if args.key?(:value)
|
310
|
-
end
|
311
|
-
end
|
525
|
+
attr_accessor :resource_name
|
312
526
|
|
313
|
-
|
314
|
-
|
315
|
-
|
527
|
+
# The person's interests.
|
528
|
+
# Corresponds to the JSON property `interests`
|
529
|
+
# @return [Array<Google::Apis::PeopleV1::Interest>]
|
530
|
+
attr_accessor :interests
|
316
531
|
|
317
|
-
#
|
318
|
-
#
|
319
|
-
#
|
320
|
-
|
321
|
-
attr_accessor :primary
|
322
|
-
alias_method :primary?, :primary
|
532
|
+
# The person's biographies.
|
533
|
+
# Corresponds to the JSON property `biographies`
|
534
|
+
# @return [Array<Google::Apis::PeopleV1::Biography>]
|
535
|
+
attr_accessor :biographies
|
323
536
|
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
|
328
|
-
# @return [Boolean]
|
329
|
-
attr_accessor :verified
|
330
|
-
alias_method :verified?, :verified
|
537
|
+
# The person's skills.
|
538
|
+
# Corresponds to the JSON property `skills`
|
539
|
+
# @return [Array<Google::Apis::PeopleV1::Skill>]
|
540
|
+
attr_accessor :skills
|
331
541
|
|
332
|
-
# The
|
333
|
-
# Corresponds to the JSON property `
|
334
|
-
# @return [Google::Apis::PeopleV1::
|
335
|
-
attr_accessor :
|
542
|
+
# The person's relationship statuses.
|
543
|
+
# Corresponds to the JSON property `relationshipStatuses`
|
544
|
+
# @return [Array<Google::Apis::PeopleV1::RelationshipStatus>]
|
545
|
+
attr_accessor :relationship_statuses
|
336
546
|
|
337
|
-
|
338
|
-
|
339
|
-
|
547
|
+
# The person's photos.
|
548
|
+
# Corresponds to the JSON property `photos`
|
549
|
+
# @return [Array<Google::Apis::PeopleV1::Photo>]
|
550
|
+
attr_accessor :photos
|
340
551
|
|
341
|
-
#
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
@source = args[:source] if args.key?(:source)
|
346
|
-
end
|
347
|
-
end
|
552
|
+
# DEPRECATED(Please read person.age_ranges instead). The person's age range.
|
553
|
+
# Corresponds to the JSON property `ageRange`
|
554
|
+
# @return [String]
|
555
|
+
attr_accessor :age_range
|
348
556
|
|
349
|
-
|
350
|
-
|
351
|
-
|
557
|
+
# The person's taglines.
|
558
|
+
# Corresponds to the JSON property `taglines`
|
559
|
+
# @return [Array<Google::Apis::PeopleV1::Tagline>]
|
560
|
+
attr_accessor :taglines
|
352
561
|
|
353
|
-
#
|
354
|
-
# Corresponds to the JSON property `
|
355
|
-
# @return [Google::Apis::PeopleV1::
|
356
|
-
attr_accessor :
|
562
|
+
# The person's age ranges.
|
563
|
+
# Corresponds to the JSON property `ageRanges`
|
564
|
+
# @return [Array<Google::Apis::PeopleV1::AgeRangeType>]
|
565
|
+
attr_accessor :age_ranges
|
357
566
|
|
358
|
-
# The
|
359
|
-
#
|
360
|
-
#
|
361
|
-
|
362
|
-
attr_accessor :display_name
|
567
|
+
# The person's street addresses.
|
568
|
+
# Corresponds to the JSON property `addresses`
|
569
|
+
# @return [Array<Google::Apis::PeopleV1::Address>]
|
570
|
+
attr_accessor :addresses
|
363
571
|
|
364
|
-
# The
|
365
|
-
# Corresponds to the JSON property `
|
366
|
-
# @return [
|
367
|
-
attr_accessor :
|
572
|
+
# The person's events.
|
573
|
+
# Corresponds to the JSON property `events`
|
574
|
+
# @return [Array<Google::Apis::PeopleV1::Event>]
|
575
|
+
attr_accessor :events
|
368
576
|
|
369
|
-
# The
|
370
|
-
# Corresponds to the JSON property `
|
371
|
-
# @return [
|
372
|
-
attr_accessor :
|
577
|
+
# The person's group memberships.
|
578
|
+
# Corresponds to the JSON property `memberships`
|
579
|
+
# @return [Array<Google::Apis::PeopleV1::Membership>]
|
580
|
+
attr_accessor :memberships
|
373
581
|
|
374
|
-
# The
|
375
|
-
# Corresponds to the JSON property `
|
376
|
-
# @return [
|
377
|
-
attr_accessor :
|
582
|
+
# The person's phone numbers.
|
583
|
+
# Corresponds to the JSON property `phoneNumbers`
|
584
|
+
# @return [Array<Google::Apis::PeopleV1::PhoneNumber>]
|
585
|
+
attr_accessor :phone_numbers
|
378
586
|
|
379
|
-
# The
|
380
|
-
# Corresponds to the JSON property `
|
381
|
-
# @return [
|
382
|
-
attr_accessor :
|
587
|
+
# The person's cover photos.
|
588
|
+
# Corresponds to the JSON property `coverPhotos`
|
589
|
+
# @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
|
590
|
+
attr_accessor :cover_photos
|
383
591
|
|
384
|
-
# The
|
385
|
-
# Corresponds to the JSON property `
|
386
|
-
# @return [
|
387
|
-
attr_accessor :
|
592
|
+
# The person's instant messaging clients.
|
593
|
+
# Corresponds to the JSON property `imClients`
|
594
|
+
# @return [Array<Google::Apis::PeopleV1::ImClient>]
|
595
|
+
attr_accessor :im_clients
|
388
596
|
|
389
|
-
# The
|
390
|
-
# Corresponds to the JSON property `
|
391
|
-
# @return [
|
392
|
-
attr_accessor :
|
597
|
+
# The person's birthdays.
|
598
|
+
# Corresponds to the JSON property `birthdays`
|
599
|
+
# @return [Array<Google::Apis::PeopleV1::Birthday>]
|
600
|
+
attr_accessor :birthdays
|
393
601
|
|
394
|
-
# The
|
395
|
-
# Corresponds to the JSON property `
|
396
|
-
# @return [
|
397
|
-
attr_accessor :
|
602
|
+
# The person's locale preferences.
|
603
|
+
# Corresponds to the JSON property `locales`
|
604
|
+
# @return [Array<Google::Apis::PeopleV1::Locale>]
|
605
|
+
attr_accessor :locales
|
398
606
|
|
399
|
-
# The
|
400
|
-
# Corresponds to the JSON property `
|
401
|
-
# @return [
|
402
|
-
attr_accessor :
|
607
|
+
# The kind of relationship the person is looking for.
|
608
|
+
# Corresponds to the JSON property `relationshipInterests`
|
609
|
+
# @return [Array<Google::Apis::PeopleV1::RelationshipInterest>]
|
610
|
+
attr_accessor :relationship_interests
|
403
611
|
|
404
|
-
# The
|
405
|
-
# Corresponds to the JSON property `
|
406
|
-
# @return [
|
407
|
-
attr_accessor :
|
612
|
+
# The person's associated URLs.
|
613
|
+
# Corresponds to the JSON property `urls`
|
614
|
+
# @return [Array<Google::Apis::PeopleV1::Url>]
|
615
|
+
attr_accessor :urls
|
408
616
|
|
409
|
-
# The
|
410
|
-
# Corresponds to the JSON property `
|
411
|
-
# @return [
|
412
|
-
attr_accessor :
|
617
|
+
# The person's nicknames.
|
618
|
+
# Corresponds to the JSON property `nicknames`
|
619
|
+
# @return [Array<Google::Apis::PeopleV1::Nickname>]
|
620
|
+
attr_accessor :nicknames
|
413
621
|
|
414
622
|
def initialize(**args)
|
415
623
|
update!(**args)
|
@@ -417,39 +625,47 @@ module Google
|
|
417
625
|
|
418
626
|
# Update properties of this object
|
419
627
|
def update!(**args)
|
628
|
+
@relations = args[:relations] if args.key?(:relations)
|
629
|
+
@names = args[:names] if args.key?(:names)
|
630
|
+
@occupations = args[:occupations] if args.key?(:occupations)
|
631
|
+
@email_addresses = args[:email_addresses] if args.key?(:email_addresses)
|
632
|
+
@organizations = args[:organizations] if args.key?(:organizations)
|
633
|
+
@etag = args[:etag] if args.key?(:etag)
|
634
|
+
@bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights)
|
420
635
|
@metadata = args[:metadata] if args.key?(:metadata)
|
421
|
-
@
|
422
|
-
@
|
423
|
-
@
|
424
|
-
@
|
425
|
-
@
|
426
|
-
@
|
427
|
-
@
|
428
|
-
@
|
429
|
-
@
|
430
|
-
@
|
431
|
-
@
|
636
|
+
@residences = args[:residences] if args.key?(:residences)
|
637
|
+
@genders = args[:genders] if args.key?(:genders)
|
638
|
+
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
639
|
+
@interests = args[:interests] if args.key?(:interests)
|
640
|
+
@biographies = args[:biographies] if args.key?(:biographies)
|
641
|
+
@skills = args[:skills] if args.key?(:skills)
|
642
|
+
@relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses)
|
643
|
+
@photos = args[:photos] if args.key?(:photos)
|
644
|
+
@age_range = args[:age_range] if args.key?(:age_range)
|
645
|
+
@taglines = args[:taglines] if args.key?(:taglines)
|
646
|
+
@age_ranges = args[:age_ranges] if args.key?(:age_ranges)
|
647
|
+
@addresses = args[:addresses] if args.key?(:addresses)
|
648
|
+
@events = args[:events] if args.key?(:events)
|
649
|
+
@memberships = args[:memberships] if args.key?(:memberships)
|
650
|
+
@phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
|
651
|
+
@cover_photos = args[:cover_photos] if args.key?(:cover_photos)
|
652
|
+
@im_clients = args[:im_clients] if args.key?(:im_clients)
|
653
|
+
@birthdays = args[:birthdays] if args.key?(:birthdays)
|
654
|
+
@locales = args[:locales] if args.key?(:locales)
|
655
|
+
@relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests)
|
656
|
+
@urls = args[:urls] if args.key?(:urls)
|
657
|
+
@nicknames = args[:nicknames] if args.key?(:nicknames)
|
432
658
|
end
|
433
659
|
end
|
434
660
|
|
435
|
-
#
|
436
|
-
class
|
661
|
+
#
|
662
|
+
class GetPeopleResponse
|
437
663
|
include Google::Apis::Core::Hashable
|
438
664
|
|
439
|
-
#
|
440
|
-
# Corresponds to the JSON property `
|
441
|
-
# @return [Google::Apis::PeopleV1::
|
442
|
-
attr_accessor :
|
443
|
-
|
444
|
-
# The nickname.
|
445
|
-
# Corresponds to the JSON property `value`
|
446
|
-
# @return [String]
|
447
|
-
attr_accessor :value
|
448
|
-
|
449
|
-
# The type of the nickname.
|
450
|
-
# Corresponds to the JSON property `type`
|
451
|
-
# @return [String]
|
452
|
-
attr_accessor :type
|
665
|
+
# The response for each requested resource name.
|
666
|
+
# Corresponds to the JSON property `responses`
|
667
|
+
# @return [Array<Google::Apis::PeopleV1::PersonResponse>]
|
668
|
+
attr_accessor :responses
|
453
669
|
|
454
670
|
def initialize(**args)
|
455
671
|
update!(**args)
|
@@ -457,15 +673,13 @@ module Google
|
|
457
673
|
|
458
674
|
# Update properties of this object
|
459
675
|
def update!(**args)
|
460
|
-
@
|
461
|
-
@value = args[:value] if args.key?(:value)
|
462
|
-
@type = args[:type] if args.key?(:type)
|
676
|
+
@responses = args[:responses] if args.key?(:responses)
|
463
677
|
end
|
464
678
|
end
|
465
679
|
|
466
|
-
# A person's
|
467
|
-
#
|
468
|
-
class
|
680
|
+
# A person's read-only photo. A picture shown next to the person's name to
|
681
|
+
# help others recognize the person.
|
682
|
+
class Photo
|
469
683
|
include Google::Apis::Core::Hashable
|
470
684
|
|
471
685
|
# Metadata about a field.
|
@@ -473,18 +687,11 @@ module Google
|
|
473
687
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
474
688
|
attr_accessor :metadata
|
475
689
|
|
476
|
-
# The URL of the
|
690
|
+
# The URL of the photo.
|
477
691
|
# Corresponds to the JSON property `url`
|
478
692
|
# @return [String]
|
479
693
|
attr_accessor :url
|
480
694
|
|
481
|
-
# True if the cover photo is the default cover photo; false if the cover photo
|
482
|
-
# is a user-provided cover photo.
|
483
|
-
# Corresponds to the JSON property `default`
|
484
|
-
# @return [Boolean]
|
485
|
-
attr_accessor :default
|
486
|
-
alias_method :default?, :default
|
487
|
-
|
488
695
|
def initialize(**args)
|
489
696
|
update!(**args)
|
490
697
|
end
|
@@ -493,13 +700,11 @@ module Google
|
|
493
700
|
def update!(**args)
|
494
701
|
@metadata = args[:metadata] if args.key?(:metadata)
|
495
702
|
@url = args[:url] if args.key?(:url)
|
496
|
-
@default = args[:default] if args.key?(:default)
|
497
703
|
end
|
498
704
|
end
|
499
705
|
|
500
|
-
# A person's
|
501
|
-
|
502
|
-
class Photo
|
706
|
+
# A person's phone number.
|
707
|
+
class PhoneNumber
|
503
708
|
include Google::Apis::Core::Hashable
|
504
709
|
|
505
710
|
# Metadata about a field.
|
@@ -507,10 +712,41 @@ module Google
|
|
507
712
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
508
713
|
attr_accessor :metadata
|
509
714
|
|
510
|
-
# The
|
511
|
-
#
|
715
|
+
# The type of the phone number. The type can be custom or predefined.
|
716
|
+
# Possible values include, but are not limited to, the following:
|
717
|
+
# * `home`
|
718
|
+
# * `work`
|
719
|
+
# * `mobile`
|
720
|
+
# * `homeFax`
|
721
|
+
# * `workFax`
|
722
|
+
# * `otherFax`
|
723
|
+
# * `pager`
|
724
|
+
# * `workMobile`
|
725
|
+
# * `workPager`
|
726
|
+
# * `main`
|
727
|
+
# * `googleVoice`
|
728
|
+
# * `other`
|
729
|
+
# Corresponds to the JSON property `type`
|
730
|
+
# @return [String]
|
731
|
+
attr_accessor :type
|
732
|
+
|
733
|
+
# The phone number.
|
734
|
+
# Corresponds to the JSON property `value`
|
735
|
+
# @return [String]
|
736
|
+
attr_accessor :value
|
737
|
+
|
738
|
+
# The read-only type of the phone number translated and formatted in the
|
739
|
+
# viewer's account locale or the the `Accept-Language` HTTP header locale.
|
740
|
+
# Corresponds to the JSON property `formattedType`
|
741
|
+
# @return [String]
|
742
|
+
attr_accessor :formatted_type
|
743
|
+
|
744
|
+
# The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/
|
745
|
+
# ibr/004/itu-t.E.164.1.2008.pdf)
|
746
|
+
# form of the phone number.
|
747
|
+
# Corresponds to the JSON property `canonicalForm`
|
512
748
|
# @return [String]
|
513
|
-
attr_accessor :
|
749
|
+
attr_accessor :canonical_form
|
514
750
|
|
515
751
|
def initialize(**args)
|
516
752
|
update!(**args)
|
@@ -519,31 +755,36 @@ module Google
|
|
519
755
|
# Update properties of this object
|
520
756
|
def update!(**args)
|
521
757
|
@metadata = args[:metadata] if args.key?(:metadata)
|
522
|
-
@
|
758
|
+
@type = args[:type] if args.key?(:type)
|
759
|
+
@value = args[:value] if args.key?(:value)
|
760
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
761
|
+
@canonical_form = args[:canonical_form] if args.key?(:canonical_form)
|
523
762
|
end
|
524
763
|
end
|
525
764
|
|
526
|
-
#
|
527
|
-
class
|
765
|
+
#
|
766
|
+
class ListConnectionsResponse
|
528
767
|
include Google::Apis::Core::Hashable
|
529
768
|
|
530
|
-
#
|
531
|
-
# Corresponds to the JSON property `
|
532
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
533
|
-
attr_accessor :metadata
|
534
|
-
|
535
|
-
# The gender for the person. The gender can be custom or predefined. Possible
|
536
|
-
# values include, but are not limited to, the following: * `male` * `female` * `
|
537
|
-
# other` * `unknown`
|
538
|
-
# Corresponds to the JSON property `value`
|
769
|
+
# The token that can be used to retrieve the next page of results.
|
770
|
+
# Corresponds to the JSON property `nextPageToken`
|
539
771
|
# @return [String]
|
540
|
-
attr_accessor :
|
772
|
+
attr_accessor :next_page_token
|
541
773
|
|
542
|
-
# The
|
543
|
-
#
|
544
|
-
#
|
774
|
+
# The list of people that the requestor is connected to.
|
775
|
+
# Corresponds to the JSON property `connections`
|
776
|
+
# @return [Array<Google::Apis::PeopleV1::Person>]
|
777
|
+
attr_accessor :connections
|
778
|
+
|
779
|
+
# The token that can be used to retrieve changes since the last request.
|
780
|
+
# Corresponds to the JSON property `nextSyncToken`
|
545
781
|
# @return [String]
|
546
|
-
attr_accessor :
|
782
|
+
attr_accessor :next_sync_token
|
783
|
+
|
784
|
+
# The total number of people in the list without pagination.
|
785
|
+
# Corresponds to the JSON property `totalPeople`
|
786
|
+
# @return [Fixnum]
|
787
|
+
attr_accessor :total_people
|
547
788
|
|
548
789
|
def initialize(**args)
|
549
790
|
update!(**args)
|
@@ -551,15 +792,16 @@ module Google
|
|
551
792
|
|
552
793
|
# Update properties of this object
|
553
794
|
def update!(**args)
|
554
|
-
@
|
555
|
-
@
|
556
|
-
@
|
795
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
796
|
+
@connections = args[:connections] if args.key?(:connections)
|
797
|
+
@next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
|
798
|
+
@total_people = args[:total_people] if args.key?(:total_people)
|
557
799
|
end
|
558
800
|
end
|
559
801
|
|
560
802
|
# A person's birthday. At least one of the `date` and `text` fields are
|
561
|
-
# specified. The `date` and `text` fields typically represent the same
|
562
|
-
# are not guaranteed to.
|
803
|
+
# specified. The `date` and `text` fields typically represent the same
|
804
|
+
# date, but are not guaranteed to.
|
563
805
|
class Birthday
|
564
806
|
include Google::Apis::Core::Hashable
|
565
807
|
|
@@ -568,21 +810,23 @@ module Google
|
|
568
810
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
569
811
|
attr_accessor :metadata
|
570
812
|
|
571
|
-
# Represents a whole calendar date, for example a date of birth. The time of day
|
572
|
-
# and time zone are either specified elsewhere or are not significant. The date
|
573
|
-
# is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
|
574
|
-
# wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
|
575
|
-
# month where the day is not significant. The year may be 0 to represent a month
|
576
|
-
# and day independent of year; for example, anniversary date.
|
577
|
-
# Corresponds to the JSON property `date`
|
578
|
-
# @return [Google::Apis::PeopleV1::Date]
|
579
|
-
attr_accessor :date
|
580
|
-
|
581
813
|
# A free-form string representing the user's birthday.
|
582
814
|
# Corresponds to the JSON property `text`
|
583
815
|
# @return [String]
|
584
816
|
attr_accessor :text
|
585
817
|
|
818
|
+
# Represents a whole calendar date, for example a date of birth. The time
|
819
|
+
# of day and time zone are either specified elsewhere or are not
|
820
|
+
# significant. The date is relative to the
|
821
|
+
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
822
|
+
# Proleptic_Gregorian_calendar).
|
823
|
+
# The day may be 0 to represent a year and month where the day is not
|
824
|
+
# significant. The year may be 0 to represent a month and day independent
|
825
|
+
# of year; for example, anniversary date.
|
826
|
+
# Corresponds to the JSON property `date`
|
827
|
+
# @return [Google::Apis::PeopleV1::Date]
|
828
|
+
attr_accessor :date
|
829
|
+
|
586
830
|
def initialize(**args)
|
587
831
|
update!(**args)
|
588
832
|
end
|
@@ -590,50 +834,13 @@ module Google
|
|
590
834
|
# Update properties of this object
|
591
835
|
def update!(**args)
|
592
836
|
@metadata = args[:metadata] if args.key?(:metadata)
|
593
|
-
@date = args[:date] if args.key?(:date)
|
594
837
|
@text = args[:text] if args.key?(:text)
|
838
|
+
@date = args[:date] if args.key?(:date)
|
595
839
|
end
|
596
840
|
end
|
597
841
|
|
598
|
-
#
|
599
|
-
|
600
|
-
# is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
|
601
|
-
# wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
|
602
|
-
# month where the day is not significant. The year may be 0 to represent a month
|
603
|
-
# and day independent of year; for example, anniversary date.
|
604
|
-
class Date
|
605
|
-
include Google::Apis::Core::Hashable
|
606
|
-
|
607
|
-
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
|
608
|
-
# Corresponds to the JSON property `year`
|
609
|
-
# @return [Fixnum]
|
610
|
-
attr_accessor :year
|
611
|
-
|
612
|
-
# Month of year. Must be from 1 to 12.
|
613
|
-
# Corresponds to the JSON property `month`
|
614
|
-
# @return [Fixnum]
|
615
|
-
attr_accessor :month
|
616
|
-
|
617
|
-
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
|
618
|
-
# specifying a year/month where the day is not significant.
|
619
|
-
# Corresponds to the JSON property `day`
|
620
|
-
# @return [Fixnum]
|
621
|
-
attr_accessor :day
|
622
|
-
|
623
|
-
def initialize(**args)
|
624
|
-
update!(**args)
|
625
|
-
end
|
626
|
-
|
627
|
-
# Update properties of this object
|
628
|
-
def update!(**args)
|
629
|
-
@year = args[:year] if args.key?(:year)
|
630
|
-
@month = args[:month] if args.key?(:month)
|
631
|
-
@day = args[:day] if args.key?(:day)
|
632
|
-
end
|
633
|
-
end
|
634
|
-
|
635
|
-
# An event related to the person.
|
636
|
-
class Event
|
842
|
+
# A person's past or current residence.
|
843
|
+
class Residence
|
637
844
|
include Google::Apis::Core::Hashable
|
638
845
|
|
639
846
|
# Metadata about a field.
|
@@ -641,27 +848,17 @@ module Google
|
|
641
848
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
642
849
|
attr_accessor :metadata
|
643
850
|
|
644
|
-
#
|
645
|
-
#
|
646
|
-
#
|
647
|
-
#
|
648
|
-
|
649
|
-
|
650
|
-
# Corresponds to the JSON property `date`
|
651
|
-
# @return [Google::Apis::PeopleV1::Date]
|
652
|
-
attr_accessor :date
|
653
|
-
|
654
|
-
# The type of the event. The type can be custom or predefined. Possible values
|
655
|
-
# include, but are not limited to, the following: * `anniversary` * `other`
|
656
|
-
# Corresponds to the JSON property `type`
|
657
|
-
# @return [String]
|
658
|
-
attr_accessor :type
|
851
|
+
# True if the residence is the person's current residence;
|
852
|
+
# false if the residence is a past residence.
|
853
|
+
# Corresponds to the JSON property `current`
|
854
|
+
# @return [Boolean]
|
855
|
+
attr_accessor :current
|
856
|
+
alias_method :current?, :current
|
659
857
|
|
660
|
-
# The
|
661
|
-
#
|
662
|
-
# Corresponds to the JSON property `formattedType`
|
858
|
+
# The address of the residence.
|
859
|
+
# Corresponds to the JSON property `value`
|
663
860
|
# @return [String]
|
664
|
-
attr_accessor :
|
861
|
+
attr_accessor :value
|
665
862
|
|
666
863
|
def initialize(**args)
|
667
864
|
update!(**args)
|
@@ -670,9 +867,8 @@ module Google
|
|
670
867
|
# Update properties of this object
|
671
868
|
def update!(**args)
|
672
869
|
@metadata = args[:metadata] if args.key?(:metadata)
|
673
|
-
@
|
674
|
-
@
|
675
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
870
|
+
@current = args[:current] if args.key?(:current)
|
871
|
+
@value = args[:value] if args.key?(:value)
|
676
872
|
end
|
677
873
|
end
|
678
874
|
|
@@ -681,22 +877,11 @@ module Google
|
|
681
877
|
class Address
|
682
878
|
include Google::Apis::Core::Hashable
|
683
879
|
|
684
|
-
#
|
685
|
-
#
|
686
|
-
#
|
687
|
-
attr_accessor :metadata
|
688
|
-
|
689
|
-
# The read-only value of the address formatted in the viewer's account locale or
|
690
|
-
# the `Accept-Language` HTTP header locale.
|
691
|
-
# Corresponds to the JSON property `formattedValue`
|
692
|
-
# @return [String]
|
693
|
-
attr_accessor :formatted_value
|
694
|
-
|
695
|
-
# The type of the address. The type can be custom or predefined. Possible values
|
696
|
-
# include, but are not limited to, the following: * `home` * `work` * `other`
|
697
|
-
# Corresponds to the JSON property `type`
|
880
|
+
# The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country
|
881
|
+
# code of the address.
|
882
|
+
# Corresponds to the JSON property `countryCode`
|
698
883
|
# @return [String]
|
699
|
-
attr_accessor :
|
884
|
+
attr_accessor :country_code
|
700
885
|
|
701
886
|
# The read-only type of the address translated and formatted in the viewer's
|
702
887
|
# account locale or the `Accept-Language` HTTP header locale.
|
@@ -704,127 +889,95 @@ module Google
|
|
704
889
|
# @return [String]
|
705
890
|
attr_accessor :formatted_type
|
706
891
|
|
707
|
-
# The
|
708
|
-
# Corresponds to the JSON property `
|
892
|
+
# The city of the address.
|
893
|
+
# Corresponds to the JSON property `city`
|
709
894
|
# @return [String]
|
710
|
-
attr_accessor :
|
895
|
+
attr_accessor :city
|
711
896
|
|
712
|
-
# The
|
713
|
-
#
|
897
|
+
# The unstructured value of the address. If this is not set by the user it
|
898
|
+
# will be automatically constructed from structured values.
|
899
|
+
# Corresponds to the JSON property `formattedValue`
|
714
900
|
# @return [String]
|
715
|
-
attr_accessor :
|
901
|
+
attr_accessor :formatted_value
|
902
|
+
|
903
|
+
# The country of the address.
|
904
|
+
# Corresponds to the JSON property `country`
|
905
|
+
# @return [String]
|
906
|
+
attr_accessor :country
|
907
|
+
|
908
|
+
# The type of the address. The type can be custom or predefined.
|
909
|
+
# Possible values include, but are not limited to, the following:
|
910
|
+
# * `home`
|
911
|
+
# * `work`
|
912
|
+
# * `other`
|
913
|
+
# Corresponds to the JSON property `type`
|
914
|
+
# @return [String]
|
915
|
+
attr_accessor :type
|
716
916
|
|
717
917
|
# The extended address of the address; for example, the apartment number.
|
718
918
|
# Corresponds to the JSON property `extendedAddress`
|
719
919
|
# @return [String]
|
720
920
|
attr_accessor :extended_address
|
721
921
|
|
722
|
-
# The
|
723
|
-
# Corresponds to the JSON property `
|
724
|
-
# @return [String]
|
725
|
-
attr_accessor :city
|
726
|
-
|
727
|
-
# The region of the address; for example, the state or province.
|
728
|
-
# Corresponds to the JSON property `region`
|
922
|
+
# The P.O. box of the address.
|
923
|
+
# Corresponds to the JSON property `poBox`
|
729
924
|
# @return [String]
|
730
|
-
attr_accessor :
|
925
|
+
attr_accessor :po_box
|
731
926
|
|
732
927
|
# The postal code of the address.
|
733
928
|
# Corresponds to the JSON property `postalCode`
|
734
929
|
# @return [String]
|
735
930
|
attr_accessor :postal_code
|
736
931
|
|
737
|
-
# The
|
738
|
-
# Corresponds to the JSON property `
|
932
|
+
# The region of the address; for example, the state or province.
|
933
|
+
# Corresponds to the JSON property `region`
|
739
934
|
# @return [String]
|
740
|
-
attr_accessor :
|
935
|
+
attr_accessor :region
|
741
936
|
|
742
|
-
# The
|
743
|
-
#
|
744
|
-
# Corresponds to the JSON property `countryCode`
|
937
|
+
# The street address.
|
938
|
+
# Corresponds to the JSON property `streetAddress`
|
745
939
|
# @return [String]
|
746
|
-
attr_accessor :
|
747
|
-
|
748
|
-
def initialize(**args)
|
749
|
-
update!(**args)
|
750
|
-
end
|
751
|
-
|
752
|
-
# Update properties of this object
|
753
|
-
def update!(**args)
|
754
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
755
|
-
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
756
|
-
@type = args[:type] if args.key?(:type)
|
757
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
758
|
-
@po_box = args[:po_box] if args.key?(:po_box)
|
759
|
-
@street_address = args[:street_address] if args.key?(:street_address)
|
760
|
-
@extended_address = args[:extended_address] if args.key?(:extended_address)
|
761
|
-
@city = args[:city] if args.key?(:city)
|
762
|
-
@region = args[:region] if args.key?(:region)
|
763
|
-
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
764
|
-
@country = args[:country] if args.key?(:country)
|
765
|
-
@country_code = args[:country_code] if args.key?(:country_code)
|
766
|
-
end
|
767
|
-
end
|
768
|
-
|
769
|
-
# A person's past or current residence.
|
770
|
-
class Residence
|
771
|
-
include Google::Apis::Core::Hashable
|
940
|
+
attr_accessor :street_address
|
772
941
|
|
773
942
|
# Metadata about a field.
|
774
943
|
# Corresponds to the JSON property `metadata`
|
775
944
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
776
945
|
attr_accessor :metadata
|
777
946
|
|
778
|
-
# The address of the residence.
|
779
|
-
# Corresponds to the JSON property `value`
|
780
|
-
# @return [String]
|
781
|
-
attr_accessor :value
|
782
|
-
|
783
|
-
# True if the residence is the person's current residence; false if the
|
784
|
-
# residence is a past residence.
|
785
|
-
# Corresponds to the JSON property `current`
|
786
|
-
# @return [Boolean]
|
787
|
-
attr_accessor :current
|
788
|
-
alias_method :current?, :current
|
789
|
-
|
790
947
|
def initialize(**args)
|
791
948
|
update!(**args)
|
792
949
|
end
|
793
950
|
|
794
951
|
# Update properties of this object
|
795
952
|
def update!(**args)
|
953
|
+
@country_code = args[:country_code] if args.key?(:country_code)
|
954
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
955
|
+
@city = args[:city] if args.key?(:city)
|
956
|
+
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
957
|
+
@country = args[:country] if args.key?(:country)
|
958
|
+
@type = args[:type] if args.key?(:type)
|
959
|
+
@extended_address = args[:extended_address] if args.key?(:extended_address)
|
960
|
+
@po_box = args[:po_box] if args.key?(:po_box)
|
961
|
+
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
962
|
+
@region = args[:region] if args.key?(:region)
|
963
|
+
@street_address = args[:street_address] if args.key?(:street_address)
|
796
964
|
@metadata = args[:metadata] if args.key?(:metadata)
|
797
|
-
@value = args[:value] if args.key?(:value)
|
798
|
-
@current = args[:current] if args.key?(:current)
|
799
965
|
end
|
800
966
|
end
|
801
967
|
|
802
|
-
# A
|
803
|
-
class
|
968
|
+
# A Google contact group membership.
|
969
|
+
class ContactGroupMembership
|
804
970
|
include Google::Apis::Core::Hashable
|
805
971
|
|
806
|
-
#
|
807
|
-
#
|
808
|
-
#
|
809
|
-
|
810
|
-
|
811
|
-
#
|
812
|
-
# Corresponds to the JSON property `
|
813
|
-
# @return [String]
|
814
|
-
attr_accessor :value
|
815
|
-
|
816
|
-
# The type of the email address. The type can be custom or predefined. Possible
|
817
|
-
# values include, but are not limited to, the following: * `home` * `work` * `
|
818
|
-
# other`
|
819
|
-
# Corresponds to the JSON property `type`
|
820
|
-
# @return [String]
|
821
|
-
attr_accessor :type
|
822
|
-
|
823
|
-
# The read-only type of the email address translated and formatted in the viewer'
|
824
|
-
# s account locale or the `Accept-Language` HTTP header locale.
|
825
|
-
# Corresponds to the JSON property `formattedType`
|
972
|
+
# The contact group ID for the contact group membership. The contact group
|
973
|
+
# ID can be custom or predefined. Possible values include, but are not
|
974
|
+
# limited to, the following:
|
975
|
+
# * `myContacts`
|
976
|
+
# * `starred`
|
977
|
+
# * A numerical ID for user-created groups.
|
978
|
+
# Corresponds to the JSON property `contactGroupId`
|
826
979
|
# @return [String]
|
827
|
-
attr_accessor :
|
980
|
+
attr_accessor :contact_group_id
|
828
981
|
|
829
982
|
def initialize(**args)
|
830
983
|
update!(**args)
|
@@ -832,43 +985,41 @@ module Google
|
|
832
985
|
|
833
986
|
# Update properties of this object
|
834
987
|
def update!(**args)
|
835
|
-
@
|
836
|
-
@value = args[:value] if args.key?(:value)
|
837
|
-
@type = args[:type] if args.key?(:type)
|
838
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
988
|
+
@contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id)
|
839
989
|
end
|
840
990
|
end
|
841
991
|
|
842
|
-
#
|
843
|
-
class
|
992
|
+
# An event related to the person.
|
993
|
+
class Event
|
844
994
|
include Google::Apis::Core::Hashable
|
845
995
|
|
846
996
|
# Metadata about a field.
|
847
997
|
# Corresponds to the JSON property `metadata`
|
848
998
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
849
|
-
attr_accessor :metadata
|
850
|
-
|
851
|
-
# The phone number.
|
852
|
-
# Corresponds to the JSON property `value`
|
853
|
-
# @return [String]
|
854
|
-
attr_accessor :value
|
855
|
-
|
856
|
-
# The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/
|
857
|
-
# ibr/004/itu-t.E.164.1.2008.pdf) form of the phone number.
|
858
|
-
# Corresponds to the JSON property `canonicalForm`
|
859
|
-
# @return [String]
|
860
|
-
attr_accessor :canonical_form
|
999
|
+
attr_accessor :metadata
|
861
1000
|
|
862
|
-
# The type of the
|
863
|
-
# values include, but are not limited to, the following:
|
864
|
-
#
|
865
|
-
#
|
1001
|
+
# The type of the event. The type can be custom or predefined.
|
1002
|
+
# Possible values include, but are not limited to, the following:
|
1003
|
+
# * `anniversary`
|
1004
|
+
# * `other`
|
866
1005
|
# Corresponds to the JSON property `type`
|
867
1006
|
# @return [String]
|
868
1007
|
attr_accessor :type
|
869
1008
|
|
870
|
-
#
|
871
|
-
#
|
1009
|
+
# Represents a whole calendar date, for example a date of birth. The time
|
1010
|
+
# of day and time zone are either specified elsewhere or are not
|
1011
|
+
# significant. The date is relative to the
|
1012
|
+
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
1013
|
+
# Proleptic_Gregorian_calendar).
|
1014
|
+
# The day may be 0 to represent a year and month where the day is not
|
1015
|
+
# significant. The year may be 0 to represent a month and day independent
|
1016
|
+
# of year; for example, anniversary date.
|
1017
|
+
# Corresponds to the JSON property `date`
|
1018
|
+
# @return [Google::Apis::PeopleV1::Date]
|
1019
|
+
attr_accessor :date
|
1020
|
+
|
1021
|
+
# The read-only type of the event translated and formatted in the
|
1022
|
+
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
872
1023
|
# Corresponds to the JSON property `formattedType`
|
873
1024
|
# @return [String]
|
874
1025
|
attr_accessor :formatted_type
|
@@ -880,52 +1031,49 @@ module Google
|
|
880
1031
|
# Update properties of this object
|
881
1032
|
def update!(**args)
|
882
1033
|
@metadata = args[:metadata] if args.key?(:metadata)
|
883
|
-
@value = args[:value] if args.key?(:value)
|
884
|
-
@canonical_form = args[:canonical_form] if args.key?(:canonical_form)
|
885
1034
|
@type = args[:type] if args.key?(:type)
|
1035
|
+
@date = args[:date] if args.key?(:date)
|
886
1036
|
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
887
1037
|
end
|
888
1038
|
end
|
889
1039
|
|
890
|
-
#
|
891
|
-
class
|
1040
|
+
# The read-only metadata about a person.
|
1041
|
+
class PersonMetadata
|
892
1042
|
include Google::Apis::Core::Hashable
|
893
1043
|
|
894
|
-
#
|
895
|
-
#
|
896
|
-
#
|
897
|
-
attr_accessor :metadata
|
898
|
-
|
899
|
-
# The user name used in the IM client.
|
900
|
-
# Corresponds to the JSON property `username`
|
1044
|
+
# DEPRECATED(Please read person.metadata.sources.profile_metadata instead).
|
1045
|
+
# The type of the person object.
|
1046
|
+
# Corresponds to the JSON property `objectType`
|
901
1047
|
# @return [String]
|
902
|
-
attr_accessor :
|
1048
|
+
attr_accessor :object_type
|
903
1049
|
|
904
|
-
#
|
905
|
-
#
|
906
|
-
#
|
907
|
-
|
908
|
-
# @return [String]
|
909
|
-
attr_accessor :type
|
1050
|
+
# Resource names of people linked to this resource.
|
1051
|
+
# Corresponds to the JSON property `linkedPeopleResourceNames`
|
1052
|
+
# @return [Array<String>]
|
1053
|
+
attr_accessor :linked_people_resource_names
|
910
1054
|
|
911
|
-
# The
|
912
|
-
#
|
913
|
-
#
|
914
|
-
|
915
|
-
attr_accessor :formatted_type
|
1055
|
+
# The sources of data for the person.
|
1056
|
+
# Corresponds to the JSON property `sources`
|
1057
|
+
# @return [Array<Google::Apis::PeopleV1::Source>]
|
1058
|
+
attr_accessor :sources
|
916
1059
|
|
917
|
-
#
|
918
|
-
#
|
919
|
-
#
|
920
|
-
#
|
921
|
-
#
|
922
|
-
|
1060
|
+
# Any former resource names this person has had. Populated only for
|
1061
|
+
# [`connections.list`](/people/api/rest/v1/people.connections/list) requests
|
1062
|
+
# that include a sync token.
|
1063
|
+
# The resource name may change when adding or removing fields that link a
|
1064
|
+
# contact and profile such as a verified email, verified phone number, or
|
1065
|
+
# profile URL.
|
1066
|
+
# Corresponds to the JSON property `previousResourceNames`
|
1067
|
+
# @return [Array<String>]
|
1068
|
+
attr_accessor :previous_resource_names
|
923
1069
|
|
924
|
-
#
|
925
|
-
#
|
926
|
-
#
|
927
|
-
#
|
928
|
-
|
1070
|
+
# True if the person resource has been deleted. Populated only for
|
1071
|
+
# [`connections.list`](/people/api/rest/v1/people.connections/list) requests
|
1072
|
+
# that include a sync token.
|
1073
|
+
# Corresponds to the JSON property `deleted`
|
1074
|
+
# @return [Boolean]
|
1075
|
+
attr_accessor :deleted
|
1076
|
+
alias_method :deleted?, :deleted
|
929
1077
|
|
930
1078
|
def initialize(**args)
|
931
1079
|
update!(**args)
|
@@ -933,28 +1081,22 @@ module Google
|
|
933
1081
|
|
934
1082
|
# Update properties of this object
|
935
1083
|
def update!(**args)
|
936
|
-
@
|
937
|
-
@
|
938
|
-
@
|
939
|
-
@
|
940
|
-
@
|
941
|
-
@formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
|
1084
|
+
@object_type = args[:object_type] if args.key?(:object_type)
|
1085
|
+
@linked_people_resource_names = args[:linked_people_resource_names] if args.key?(:linked_people_resource_names)
|
1086
|
+
@sources = args[:sources] if args.key?(:sources)
|
1087
|
+
@previous_resource_names = args[:previous_resource_names] if args.key?(:previous_resource_names)
|
1088
|
+
@deleted = args[:deleted] if args.key?(:deleted)
|
942
1089
|
end
|
943
1090
|
end
|
944
1091
|
|
945
|
-
#
|
946
|
-
class
|
1092
|
+
# The read-only metadata about a profile.
|
1093
|
+
class ProfileMetadata
|
947
1094
|
include Google::Apis::Core::Hashable
|
948
1095
|
|
949
|
-
#
|
950
|
-
# Corresponds to the JSON property `
|
951
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
952
|
-
attr_accessor :metadata
|
953
|
-
|
954
|
-
# The tagline.
|
955
|
-
# Corresponds to the JSON property `value`
|
1096
|
+
# The profile object type.
|
1097
|
+
# Corresponds to the JSON property `objectType`
|
956
1098
|
# @return [String]
|
957
|
-
attr_accessor :
|
1099
|
+
attr_accessor :object_type
|
958
1100
|
|
959
1101
|
def initialize(**args)
|
960
1102
|
update!(**args)
|
@@ -962,21 +1104,32 @@ module Google
|
|
962
1104
|
|
963
1105
|
# Update properties of this object
|
964
1106
|
def update!(**args)
|
965
|
-
@
|
966
|
-
@value = args[:value] if args.key?(:value)
|
1107
|
+
@object_type = args[:object_type] if args.key?(:object_type)
|
967
1108
|
end
|
968
1109
|
end
|
969
1110
|
|
970
|
-
# A person's
|
971
|
-
class
|
1111
|
+
# A person's gender.
|
1112
|
+
class Gender
|
972
1113
|
include Google::Apis::Core::Hashable
|
973
1114
|
|
1115
|
+
# The read-only value of the gender translated and formatted in the viewer's
|
1116
|
+
# account locale or the `Accept-Language` HTTP header locale.
|
1117
|
+
# Corresponds to the JSON property `formattedValue`
|
1118
|
+
# @return [String]
|
1119
|
+
attr_accessor :formatted_value
|
1120
|
+
|
974
1121
|
# Metadata about a field.
|
975
1122
|
# Corresponds to the JSON property `metadata`
|
976
1123
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
977
1124
|
attr_accessor :metadata
|
978
1125
|
|
979
|
-
# The
|
1126
|
+
# The gender for the person. The gender can be custom or predefined.
|
1127
|
+
# Possible values include, but are not limited to, the
|
1128
|
+
# following:
|
1129
|
+
# * `male`
|
1130
|
+
# * `female`
|
1131
|
+
# * `other`
|
1132
|
+
# * `unknown`
|
980
1133
|
# Corresponds to the JSON property `value`
|
981
1134
|
# @return [String]
|
982
1135
|
attr_accessor :value
|
@@ -987,6 +1140,7 @@ module Google
|
|
987
1140
|
|
988
1141
|
# Update properties of this object
|
989
1142
|
def update!(**args)
|
1143
|
+
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
990
1144
|
@metadata = args[:metadata] if args.key?(:metadata)
|
991
1145
|
@value = args[:value] if args.key?(:value)
|
992
1146
|
end
|
@@ -1001,21 +1155,28 @@ module Google
|
|
1001
1155
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1002
1156
|
attr_accessor :metadata
|
1003
1157
|
|
1158
|
+
# The type of the URL. The type can be custom or predefined.
|
1159
|
+
# Possible values include, but are not limited to, the following:
|
1160
|
+
# * `home`
|
1161
|
+
# * `work`
|
1162
|
+
# * `blog`
|
1163
|
+
# * `profile`
|
1164
|
+
# * `homePage`
|
1165
|
+
# * `ftp`
|
1166
|
+
# * `reservations`
|
1167
|
+
# * `appInstallPage`: website for a Google+ application.
|
1168
|
+
# * `other`
|
1169
|
+
# Corresponds to the JSON property `type`
|
1170
|
+
# @return [String]
|
1171
|
+
attr_accessor :type
|
1172
|
+
|
1004
1173
|
# The URL.
|
1005
1174
|
# Corresponds to the JSON property `value`
|
1006
1175
|
# @return [String]
|
1007
1176
|
attr_accessor :value
|
1008
1177
|
|
1009
|
-
# The type of the URL
|
1010
|
-
#
|
1011
|
-
# profile` * `homePage` * `ftp` * `reservations` * `appInstallPage`: website for
|
1012
|
-
# a Google+ application. * `other`
|
1013
|
-
# Corresponds to the JSON property `type`
|
1014
|
-
# @return [String]
|
1015
|
-
attr_accessor :type
|
1016
|
-
|
1017
|
-
# The read-only type of the URL translated and formatted in the viewer's account
|
1018
|
-
# locale or the `Accept-Language` HTTP header locale.
|
1178
|
+
# The read-only type of the URL translated and formatted in the viewer's
|
1179
|
+
# account locale or the `Accept-Language` HTTP header locale.
|
1019
1180
|
# Corresponds to the JSON property `formattedType`
|
1020
1181
|
# @return [String]
|
1021
1182
|
attr_accessor :formatted_type
|
@@ -1027,14 +1188,15 @@ module Google
|
|
1027
1188
|
# Update properties of this object
|
1028
1189
|
def update!(**args)
|
1029
1190
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1030
|
-
@value = args[:value] if args.key?(:value)
|
1031
1191
|
@type = args[:type] if args.key?(:type)
|
1192
|
+
@value = args[:value] if args.key?(:value)
|
1032
1193
|
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1033
1194
|
end
|
1034
1195
|
end
|
1035
1196
|
|
1036
|
-
# A person's
|
1037
|
-
|
1197
|
+
# A person's read-only cover photo. A large image shown on the person's
|
1198
|
+
# profile page that represents who they are or what they care about.
|
1199
|
+
class CoverPhoto
|
1038
1200
|
include Google::Apis::Core::Hashable
|
1039
1201
|
|
1040
1202
|
# Metadata about a field.
|
@@ -1042,85 +1204,17 @@ module Google
|
|
1042
1204
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1043
1205
|
attr_accessor :metadata
|
1044
1206
|
|
1045
|
-
#
|
1046
|
-
#
|
1047
|
-
# Corresponds to the JSON property `
|
1048
|
-
# @return [String]
|
1049
|
-
attr_accessor :type
|
1050
|
-
|
1051
|
-
# The read-only type of the organization translated and formatted in the viewer'
|
1052
|
-
# s account locale or the `Accept-Language` HTTP header locale.
|
1053
|
-
# Corresponds to the JSON property `formattedType`
|
1054
|
-
# @return [String]
|
1055
|
-
attr_accessor :formatted_type
|
1056
|
-
|
1057
|
-
# Represents a whole calendar date, for example a date of birth. The time of day
|
1058
|
-
# and time zone are either specified elsewhere or are not significant. The date
|
1059
|
-
# is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
|
1060
|
-
# wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
|
1061
|
-
# month where the day is not significant. The year may be 0 to represent a month
|
1062
|
-
# and day independent of year; for example, anniversary date.
|
1063
|
-
# Corresponds to the JSON property `startDate`
|
1064
|
-
# @return [Google::Apis::PeopleV1::Date]
|
1065
|
-
attr_accessor :start_date
|
1066
|
-
|
1067
|
-
# Represents a whole calendar date, for example a date of birth. The time of day
|
1068
|
-
# and time zone are either specified elsewhere or are not significant. The date
|
1069
|
-
# is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/
|
1070
|
-
# wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and
|
1071
|
-
# month where the day is not significant. The year may be 0 to represent a month
|
1072
|
-
# and day independent of year; for example, anniversary date.
|
1073
|
-
# Corresponds to the JSON property `endDate`
|
1074
|
-
# @return [Google::Apis::PeopleV1::Date]
|
1075
|
-
attr_accessor :end_date
|
1076
|
-
|
1077
|
-
# True if the organization is the person's current organization; false if the
|
1078
|
-
# organization is a past organization.
|
1079
|
-
# Corresponds to the JSON property `current`
|
1207
|
+
# True if the cover photo is the default cover photo;
|
1208
|
+
# false if the cover photo is a user-provided cover photo.
|
1209
|
+
# Corresponds to the JSON property `default`
|
1080
1210
|
# @return [Boolean]
|
1081
|
-
attr_accessor :
|
1082
|
-
alias_method :
|
1083
|
-
|
1084
|
-
# The name of the organization.
|
1085
|
-
# Corresponds to the JSON property `name`
|
1086
|
-
# @return [String]
|
1087
|
-
attr_accessor :name
|
1088
|
-
|
1089
|
-
# The phonetic name of the organization.
|
1090
|
-
# Corresponds to the JSON property `phoneticName`
|
1091
|
-
# @return [String]
|
1092
|
-
attr_accessor :phonetic_name
|
1093
|
-
|
1094
|
-
# The person's department at the organization.
|
1095
|
-
# Corresponds to the JSON property `department`
|
1096
|
-
# @return [String]
|
1097
|
-
attr_accessor :department
|
1098
|
-
|
1099
|
-
# The person's job title at the organization.
|
1100
|
-
# Corresponds to the JSON property `title`
|
1101
|
-
# @return [String]
|
1102
|
-
attr_accessor :title
|
1103
|
-
|
1104
|
-
# The person's job description at the organization.
|
1105
|
-
# Corresponds to the JSON property `jobDescription`
|
1106
|
-
# @return [String]
|
1107
|
-
attr_accessor :job_description
|
1108
|
-
|
1109
|
-
# The symbol associated with the organization; for example, a stock ticker
|
1110
|
-
# symbol, abbreviation, or acronym.
|
1111
|
-
# Corresponds to the JSON property `symbol`
|
1112
|
-
# @return [String]
|
1113
|
-
attr_accessor :symbol
|
1114
|
-
|
1115
|
-
# The domain name associated with the organization; for example, `google.com`.
|
1116
|
-
# Corresponds to the JSON property `domain`
|
1117
|
-
# @return [String]
|
1118
|
-
attr_accessor :domain
|
1211
|
+
attr_accessor :default
|
1212
|
+
alias_method :default?, :default
|
1119
1213
|
|
1120
|
-
# The
|
1121
|
-
# Corresponds to the JSON property `
|
1214
|
+
# The URL of the cover photo.
|
1215
|
+
# Corresponds to the JSON property `url`
|
1122
1216
|
# @return [String]
|
1123
|
-
attr_accessor :
|
1217
|
+
attr_accessor :url
|
1124
1218
|
|
1125
1219
|
def initialize(**args)
|
1126
1220
|
update!(**args)
|
@@ -1129,24 +1223,13 @@ module Google
|
|
1129
1223
|
# Update properties of this object
|
1130
1224
|
def update!(**args)
|
1131
1225
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1132
|
-
@
|
1133
|
-
@
|
1134
|
-
@start_date = args[:start_date] if args.key?(:start_date)
|
1135
|
-
@end_date = args[:end_date] if args.key?(:end_date)
|
1136
|
-
@current = args[:current] if args.key?(:current)
|
1137
|
-
@name = args[:name] if args.key?(:name)
|
1138
|
-
@phonetic_name = args[:phonetic_name] if args.key?(:phonetic_name)
|
1139
|
-
@department = args[:department] if args.key?(:department)
|
1140
|
-
@title = args[:title] if args.key?(:title)
|
1141
|
-
@job_description = args[:job_description] if args.key?(:job_description)
|
1142
|
-
@symbol = args[:symbol] if args.key?(:symbol)
|
1143
|
-
@domain = args[:domain] if args.key?(:domain)
|
1144
|
-
@location = args[:location] if args.key?(:location)
|
1226
|
+
@default = args[:default] if args.key?(:default)
|
1227
|
+
@url = args[:url] if args.key?(:url)
|
1145
1228
|
end
|
1146
1229
|
end
|
1147
1230
|
|
1148
|
-
#
|
1149
|
-
class
|
1231
|
+
# One of the person's interests.
|
1232
|
+
class Interest
|
1150
1233
|
include Google::Apis::Core::Hashable
|
1151
1234
|
|
1152
1235
|
# Metadata about a field.
|
@@ -1154,7 +1237,7 @@ module Google
|
|
1154
1237
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1155
1238
|
attr_accessor :metadata
|
1156
1239
|
|
1157
|
-
# The
|
1240
|
+
# The interest; for example, `stargazing`.
|
1158
1241
|
# Corresponds to the JSON property `value`
|
1159
1242
|
# @return [String]
|
1160
1243
|
attr_accessor :value
|
@@ -1170,19 +1253,55 @@ module Google
|
|
1170
1253
|
end
|
1171
1254
|
end
|
1172
1255
|
|
1173
|
-
#
|
1174
|
-
class
|
1256
|
+
# A person's instant messaging client.
|
1257
|
+
class ImClient
|
1175
1258
|
include Google::Apis::Core::Hashable
|
1176
1259
|
|
1260
|
+
# The read-only protocol of the IM client formatted in the viewer's account
|
1261
|
+
# locale or the `Accept-Language` HTTP header locale.
|
1262
|
+
# Corresponds to the JSON property `formattedProtocol`
|
1263
|
+
# @return [String]
|
1264
|
+
attr_accessor :formatted_protocol
|
1265
|
+
|
1266
|
+
# The read-only type of the IM client translated and formatted in the
|
1267
|
+
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
1268
|
+
# Corresponds to the JSON property `formattedType`
|
1269
|
+
# @return [String]
|
1270
|
+
attr_accessor :formatted_type
|
1271
|
+
|
1177
1272
|
# Metadata about a field.
|
1178
1273
|
# Corresponds to the JSON property `metadata`
|
1179
1274
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1180
1275
|
attr_accessor :metadata
|
1181
1276
|
|
1182
|
-
# The
|
1183
|
-
#
|
1277
|
+
# The type of the IM client. The type can be custom or predefined.
|
1278
|
+
# Possible values include, but are not limited to, the following:
|
1279
|
+
# * `home`
|
1280
|
+
# * `work`
|
1281
|
+
# * `other`
|
1282
|
+
# Corresponds to the JSON property `type`
|
1184
1283
|
# @return [String]
|
1185
|
-
attr_accessor :
|
1284
|
+
attr_accessor :type
|
1285
|
+
|
1286
|
+
# The protocol of the IM client. The protocol can be custom or predefined.
|
1287
|
+
# Possible values include, but are not limited to, the following:
|
1288
|
+
# * `aim`
|
1289
|
+
# * `msn`
|
1290
|
+
# * `yahoo`
|
1291
|
+
# * `skype`
|
1292
|
+
# * `qq`
|
1293
|
+
# * `googleTalk`
|
1294
|
+
# * `icq`
|
1295
|
+
# * `jabber`
|
1296
|
+
# * `netMeeting`
|
1297
|
+
# Corresponds to the JSON property `protocol`
|
1298
|
+
# @return [String]
|
1299
|
+
attr_accessor :protocol
|
1300
|
+
|
1301
|
+
# The user name used in the IM client.
|
1302
|
+
# Corresponds to the JSON property `username`
|
1303
|
+
# @return [String]
|
1304
|
+
attr_accessor :username
|
1186
1305
|
|
1187
1306
|
def initialize(**args)
|
1188
1307
|
update!(**args)
|
@@ -1190,49 +1309,48 @@ module Google
|
|
1190
1309
|
|
1191
1310
|
# Update properties of this object
|
1192
1311
|
def update!(**args)
|
1312
|
+
@formatted_protocol = args[:formatted_protocol] if args.key?(:formatted_protocol)
|
1313
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1193
1314
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1194
|
-
@
|
1315
|
+
@type = args[:type] if args.key?(:type)
|
1316
|
+
@protocol = args[:protocol] if args.key?(:protocol)
|
1317
|
+
@username = args[:username] if args.key?(:username)
|
1195
1318
|
end
|
1196
1319
|
end
|
1197
1320
|
|
1198
|
-
# A
|
1199
|
-
class
|
1321
|
+
# A person's email address.
|
1322
|
+
class EmailAddress
|
1200
1323
|
include Google::Apis::Core::Hashable
|
1201
1324
|
|
1202
|
-
#
|
1203
|
-
# Corresponds to the JSON property `metadata`
|
1204
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1205
|
-
attr_accessor :metadata
|
1206
|
-
|
1207
|
-
# The skill; for example, `underwater basket weaving`.
|
1325
|
+
# The email address.
|
1208
1326
|
# Corresponds to the JSON property `value`
|
1209
1327
|
# @return [String]
|
1210
1328
|
attr_accessor :value
|
1211
1329
|
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
def update!(**args)
|
1218
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
1219
|
-
@value = args[:value] if args.key?(:value)
|
1220
|
-
end
|
1221
|
-
end
|
1330
|
+
# The read-only type of the email address translated and formatted in the
|
1331
|
+
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
1332
|
+
# Corresponds to the JSON property `formattedType`
|
1333
|
+
# @return [String]
|
1334
|
+
attr_accessor :formatted_type
|
1222
1335
|
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1336
|
+
# The display name of the email.
|
1337
|
+
# Corresponds to the JSON property `displayName`
|
1338
|
+
# @return [String]
|
1339
|
+
attr_accessor :display_name
|
1226
1340
|
|
1227
1341
|
# Metadata about a field.
|
1228
1342
|
# Corresponds to the JSON property `metadata`
|
1229
1343
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1230
1344
|
attr_accessor :metadata
|
1231
1345
|
|
1232
|
-
# The
|
1233
|
-
#
|
1346
|
+
# The type of the email address. The type can be custom or predefined.
|
1347
|
+
# Possible values include, but are not limited to, the following:
|
1348
|
+
# * `home`
|
1349
|
+
# * `work`
|
1350
|
+
# * `other`
|
1351
|
+
# Corresponds to the JSON property `type`
|
1234
1352
|
# @return [String]
|
1235
|
-
attr_accessor :
|
1353
|
+
attr_accessor :type
|
1236
1354
|
|
1237
1355
|
def initialize(**args)
|
1238
1356
|
update!(**args)
|
@@ -1240,74 +1358,58 @@ module Google
|
|
1240
1358
|
|
1241
1359
|
# Update properties of this object
|
1242
1360
|
def update!(**args)
|
1243
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
1244
1361
|
@value = args[:value] if args.key?(:value)
|
1362
|
+
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1363
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1364
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1365
|
+
@type = args[:type] if args.key?(:type)
|
1245
1366
|
end
|
1246
1367
|
end
|
1247
1368
|
|
1248
|
-
# A person's
|
1249
|
-
class
|
1369
|
+
# A person's nickname.
|
1370
|
+
class Nickname
|
1250
1371
|
include Google::Apis::Core::Hashable
|
1251
1372
|
|
1373
|
+
# The nickname.
|
1374
|
+
# Corresponds to the JSON property `value`
|
1375
|
+
# @return [String]
|
1376
|
+
attr_accessor :value
|
1377
|
+
|
1252
1378
|
# Metadata about a field.
|
1253
1379
|
# Corresponds to the JSON property `metadata`
|
1254
1380
|
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1255
1381
|
attr_accessor :metadata
|
1256
1382
|
|
1257
|
-
# The
|
1258
|
-
# Corresponds to the JSON property `person`
|
1259
|
-
# @return [String]
|
1260
|
-
attr_accessor :person
|
1261
|
-
|
1262
|
-
# The person's relation to the other person. The type can be custom or
|
1263
|
-
# predefined. Possible values include, but are not limited to, the following
|
1264
|
-
# values: * `spouse` * `child` * `mother` * `father` * `parent` * `brother` * `
|
1265
|
-
# sister` * `friend` * `relative` * `domesticPartner` * `manager` * `assistant` *
|
1266
|
-
# `referredBy` * `partner`
|
1383
|
+
# The type of the nickname.
|
1267
1384
|
# Corresponds to the JSON property `type`
|
1268
1385
|
# @return [String]
|
1269
1386
|
attr_accessor :type
|
1270
1387
|
|
1271
|
-
# The type of the relation translated and formatted in the viewer's account
|
1272
|
-
# locale or the locale specified in the Accept-Language HTTP header.
|
1273
|
-
# Corresponds to the JSON property `formattedType`
|
1274
|
-
# @return [String]
|
1275
|
-
attr_accessor :formatted_type
|
1276
|
-
|
1277
1388
|
def initialize(**args)
|
1278
1389
|
update!(**args)
|
1279
1390
|
end
|
1280
1391
|
|
1281
1392
|
# Update properties of this object
|
1282
1393
|
def update!(**args)
|
1394
|
+
@value = args[:value] if args.key?(:value)
|
1283
1395
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1284
|
-
@person = args[:person] if args.key?(:person)
|
1285
1396
|
@type = args[:type] if args.key?(:type)
|
1286
|
-
@formatted_type = args[:formatted_type] if args.key?(:formatted_type)
|
1287
1397
|
end
|
1288
1398
|
end
|
1289
1399
|
|
1290
|
-
#
|
1291
|
-
class
|
1400
|
+
# A skill that the person has.
|
1401
|
+
class Skill
|
1292
1402
|
include Google::Apis::Core::Hashable
|
1293
1403
|
|
1294
|
-
#
|
1295
|
-
# Corresponds to the JSON property `metadata`
|
1296
|
-
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1297
|
-
attr_accessor :metadata
|
1298
|
-
|
1299
|
-
# The kind of relationship the person is looking for. The value can be custom or
|
1300
|
-
# predefined. Possible values include, but are not limited to, the following
|
1301
|
-
# values: * `friend` * `date` * `relationship` * `networking`
|
1404
|
+
# The skill; for example, `underwater basket weaving`.
|
1302
1405
|
# Corresponds to the JSON property `value`
|
1303
1406
|
# @return [String]
|
1304
1407
|
attr_accessor :value
|
1305
1408
|
|
1306
|
-
#
|
1307
|
-
#
|
1308
|
-
#
|
1309
|
-
|
1310
|
-
attr_accessor :formatted_value
|
1409
|
+
# Metadata about a field.
|
1410
|
+
# Corresponds to the JSON property `metadata`
|
1411
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1412
|
+
attr_accessor :metadata
|
1311
1413
|
|
1312
1414
|
def initialize(**args)
|
1313
1415
|
update!(**args)
|
@@ -1315,34 +1417,20 @@ module Google
|
|
1315
1417
|
|
1316
1418
|
# Update properties of this object
|
1317
1419
|
def update!(**args)
|
1318
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
1319
1420
|
@value = args[:value] if args.key?(:value)
|
1320
|
-
@
|
1421
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1321
1422
|
end
|
1322
1423
|
end
|
1323
1424
|
|
1324
|
-
# A
|
1325
|
-
class
|
1425
|
+
# A Google Apps Domain membership.
|
1426
|
+
class DomainMembership
|
1326
1427
|
include Google::Apis::Core::Hashable
|
1327
1428
|
|
1328
|
-
#
|
1329
|
-
# Corresponds to the JSON property `
|
1330
|
-
# @return [
|
1331
|
-
attr_accessor :
|
1332
|
-
|
1333
|
-
# The relationship status. The value can be custom or predefined. Possible
|
1334
|
-
# values include, but are not limited to, the following: * `single` * `
|
1335
|
-
# inARelationship` * `engaged` * `married` * `itsComplicated` * `
|
1336
|
-
# openRelationship` * `widowed` * `inDomesticPartnership` * `inCivilUnion`
|
1337
|
-
# Corresponds to the JSON property `value`
|
1338
|
-
# @return [String]
|
1339
|
-
attr_accessor :value
|
1340
|
-
|
1341
|
-
# The read-only value of the relationship status translated and formatted in the
|
1342
|
-
# viewer's account locale or the `Accept-Language` HTTP header locale.
|
1343
|
-
# Corresponds to the JSON property `formattedValue`
|
1344
|
-
# @return [String]
|
1345
|
-
attr_accessor :formatted_value
|
1429
|
+
# True if the person is in the viewer's Google Apps domain.
|
1430
|
+
# Corresponds to the JSON property `inViewerDomain`
|
1431
|
+
# @return [Boolean]
|
1432
|
+
attr_accessor :in_viewer_domain
|
1433
|
+
alias_method :in_viewer_domain?, :in_viewer_domain
|
1346
1434
|
|
1347
1435
|
def initialize(**args)
|
1348
1436
|
update!(**args)
|
@@ -1350,13 +1438,11 @@ module Google
|
|
1350
1438
|
|
1351
1439
|
# Update properties of this object
|
1352
1440
|
def update!(**args)
|
1353
|
-
@
|
1354
|
-
@value = args[:value] if args.key?(:value)
|
1355
|
-
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
1441
|
+
@in_viewer_domain = args[:in_viewer_domain] if args.key?(:in_viewer_domain)
|
1356
1442
|
end
|
1357
1443
|
end
|
1358
1444
|
|
1359
|
-
# A person's membership in a group.
|
1445
|
+
# A person's read-only membership in a group.
|
1360
1446
|
class Membership
|
1361
1447
|
include Google::Apis::Core::Hashable
|
1362
1448
|
|
@@ -1387,17 +1473,35 @@ module Google
|
|
1387
1473
|
end
|
1388
1474
|
end
|
1389
1475
|
|
1390
|
-
# A
|
1391
|
-
class
|
1476
|
+
# A person's read-only relationship status.
|
1477
|
+
class RelationshipStatus
|
1392
1478
|
include Google::Apis::Core::Hashable
|
1393
1479
|
|
1394
|
-
# The
|
1395
|
-
#
|
1396
|
-
#
|
1397
|
-
# groups.
|
1398
|
-
# Corresponds to the JSON property `contactGroupId`
|
1480
|
+
# The read-only value of the relationship status translated and formatted in
|
1481
|
+
# the viewer's account locale or the `Accept-Language` HTTP header locale.
|
1482
|
+
# Corresponds to the JSON property `formattedValue`
|
1399
1483
|
# @return [String]
|
1400
|
-
attr_accessor :
|
1484
|
+
attr_accessor :formatted_value
|
1485
|
+
|
1486
|
+
# Metadata about a field.
|
1487
|
+
# Corresponds to the JSON property `metadata`
|
1488
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1489
|
+
attr_accessor :metadata
|
1490
|
+
|
1491
|
+
# The relationship status. The value can be custom or predefined.
|
1492
|
+
# Possible values include, but are not limited to, the following:
|
1493
|
+
# * `single`
|
1494
|
+
# * `inARelationship`
|
1495
|
+
# * `engaged`
|
1496
|
+
# * `married`
|
1497
|
+
# * `itsComplicated`
|
1498
|
+
# * `openRelationship`
|
1499
|
+
# * `widowed`
|
1500
|
+
# * `inDomesticPartnership`
|
1501
|
+
# * `inCivilUnion`
|
1502
|
+
# Corresponds to the JSON property `value`
|
1503
|
+
# @return [String]
|
1504
|
+
attr_accessor :value
|
1401
1505
|
|
1402
1506
|
def initialize(**args)
|
1403
1507
|
update!(**args)
|
@@ -1405,19 +1509,39 @@ module Google
|
|
1405
1509
|
|
1406
1510
|
# Update properties of this object
|
1407
1511
|
def update!(**args)
|
1408
|
-
@
|
1512
|
+
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
1513
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1514
|
+
@value = args[:value] if args.key?(:value)
|
1409
1515
|
end
|
1410
1516
|
end
|
1411
1517
|
|
1412
|
-
#
|
1413
|
-
|
1518
|
+
# Represents a whole calendar date, for example a date of birth. The time
|
1519
|
+
# of day and time zone are either specified elsewhere or are not
|
1520
|
+
# significant. The date is relative to the
|
1521
|
+
# [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/
|
1522
|
+
# Proleptic_Gregorian_calendar).
|
1523
|
+
# The day may be 0 to represent a year and month where the day is not
|
1524
|
+
# significant. The year may be 0 to represent a month and day independent
|
1525
|
+
# of year; for example, anniversary date.
|
1526
|
+
class Date
|
1414
1527
|
include Google::Apis::Core::Hashable
|
1415
1528
|
|
1416
|
-
#
|
1417
|
-
#
|
1418
|
-
#
|
1419
|
-
|
1420
|
-
|
1529
|
+
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
1530
|
+
# a year.
|
1531
|
+
# Corresponds to the JSON property `year`
|
1532
|
+
# @return [Fixnum]
|
1533
|
+
attr_accessor :year
|
1534
|
+
|
1535
|
+
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
1536
|
+
# if specifying a year/month where the day is not significant.
|
1537
|
+
# Corresponds to the JSON property `day`
|
1538
|
+
# @return [Fixnum]
|
1539
|
+
attr_accessor :day
|
1540
|
+
|
1541
|
+
# Month of year. Must be from 1 to 12.
|
1542
|
+
# Corresponds to the JSON property `month`
|
1543
|
+
# @return [Fixnum]
|
1544
|
+
attr_accessor :month
|
1421
1545
|
|
1422
1546
|
def initialize(**args)
|
1423
1547
|
update!(**args)
|
@@ -1425,18 +1549,25 @@ module Google
|
|
1425
1549
|
|
1426
1550
|
# Update properties of this object
|
1427
1551
|
def update!(**args)
|
1428
|
-
@
|
1552
|
+
@year = args[:year] if args.key?(:year)
|
1553
|
+
@day = args[:day] if args.key?(:day)
|
1554
|
+
@month = args[:month] if args.key?(:month)
|
1429
1555
|
end
|
1430
1556
|
end
|
1431
1557
|
|
1432
|
-
#
|
1433
|
-
class
|
1558
|
+
# A read-only brief one-line description of the person.
|
1559
|
+
class Tagline
|
1434
1560
|
include Google::Apis::Core::Hashable
|
1435
1561
|
|
1436
|
-
# The
|
1437
|
-
# Corresponds to the JSON property `
|
1438
|
-
# @return [
|
1439
|
-
attr_accessor :
|
1562
|
+
# The tagline.
|
1563
|
+
# Corresponds to the JSON property `value`
|
1564
|
+
# @return [String]
|
1565
|
+
attr_accessor :value
|
1566
|
+
|
1567
|
+
# Metadata about a field.
|
1568
|
+
# Corresponds to the JSON property `metadata`
|
1569
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1570
|
+
attr_accessor :metadata
|
1440
1571
|
|
1441
1572
|
def initialize(**args)
|
1442
1573
|
update!(**args)
|
@@ -1444,35 +1575,87 @@ module Google
|
|
1444
1575
|
|
1445
1576
|
# Update properties of this object
|
1446
1577
|
def update!(**args)
|
1447
|
-
@
|
1578
|
+
@value = args[:value] if args.key?(:value)
|
1579
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1448
1580
|
end
|
1449
1581
|
end
|
1450
1582
|
|
1451
|
-
#
|
1452
|
-
class
|
1583
|
+
# A person's name. If the name is a mononym, the family name is empty.
|
1584
|
+
class Name
|
1453
1585
|
include Google::Apis::Core::Hashable
|
1454
1586
|
|
1455
|
-
#
|
1456
|
-
# Corresponds to the JSON property `
|
1457
|
-
# @return [
|
1458
|
-
attr_accessor :
|
1587
|
+
# The honorific prefixes spelled as they sound.
|
1588
|
+
# Corresponds to the JSON property `phoneticHonorificPrefix`
|
1589
|
+
# @return [String]
|
1590
|
+
attr_accessor :phonetic_honorific_prefix
|
1459
1591
|
|
1460
|
-
#
|
1461
|
-
#
|
1462
|
-
#
|
1463
|
-
|
1464
|
-
# is guaranteed to have exactly one field with `metadata.primary` set to true.
|
1465
|
-
# Corresponds to the JSON property `person`
|
1466
|
-
# @return [Google::Apis::PeopleV1::Person]
|
1467
|
-
attr_accessor :person
|
1592
|
+
# The given name spelled as it sounds.
|
1593
|
+
# Corresponds to the JSON property `phoneticGivenName`
|
1594
|
+
# @return [String]
|
1595
|
+
attr_accessor :phonetic_given_name
|
1468
1596
|
|
1469
|
-
# The
|
1470
|
-
#
|
1471
|
-
# fields that link a contact and profile such as a verified email, verified
|
1472
|
-
# phone number, or a profile URL.
|
1473
|
-
# Corresponds to the JSON property `requestedResourceName`
|
1597
|
+
# The family name spelled as it sounds.
|
1598
|
+
# Corresponds to the JSON property `phoneticFamilyName`
|
1474
1599
|
# @return [String]
|
1475
|
-
attr_accessor :
|
1600
|
+
attr_accessor :phonetic_family_name
|
1601
|
+
|
1602
|
+
# The family name.
|
1603
|
+
# Corresponds to the JSON property `familyName`
|
1604
|
+
# @return [String]
|
1605
|
+
attr_accessor :family_name
|
1606
|
+
|
1607
|
+
# Metadata about a field.
|
1608
|
+
# Corresponds to the JSON property `metadata`
|
1609
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1610
|
+
attr_accessor :metadata
|
1611
|
+
|
1612
|
+
# The middle name(s) spelled as they sound.
|
1613
|
+
# Corresponds to the JSON property `phoneticMiddleName`
|
1614
|
+
# @return [String]
|
1615
|
+
attr_accessor :phonetic_middle_name
|
1616
|
+
|
1617
|
+
# The full name spelled as it sounds.
|
1618
|
+
# Corresponds to the JSON property `phoneticFullName`
|
1619
|
+
# @return [String]
|
1620
|
+
attr_accessor :phonetic_full_name
|
1621
|
+
|
1622
|
+
# The read-only display name with the last name first formatted according to
|
1623
|
+
# the locale specified by the viewer's account or the
|
1624
|
+
# <code>Accept-Language</code> HTTP header.
|
1625
|
+
# Corresponds to the JSON property `displayNameLastFirst`
|
1626
|
+
# @return [String]
|
1627
|
+
attr_accessor :display_name_last_first
|
1628
|
+
|
1629
|
+
# The read-only display name formatted according to the locale specified by
|
1630
|
+
# the viewer's account or the <code>Accept-Language</code> HTTP header.
|
1631
|
+
# Corresponds to the JSON property `displayName`
|
1632
|
+
# @return [String]
|
1633
|
+
attr_accessor :display_name
|
1634
|
+
|
1635
|
+
# The honorific suffixes, such as `Jr.`
|
1636
|
+
# Corresponds to the JSON property `honorificSuffix`
|
1637
|
+
# @return [String]
|
1638
|
+
attr_accessor :honorific_suffix
|
1639
|
+
|
1640
|
+
# The honorific prefixes, such as `Mrs.` or `Dr.`
|
1641
|
+
# Corresponds to the JSON property `honorificPrefix`
|
1642
|
+
# @return [String]
|
1643
|
+
attr_accessor :honorific_prefix
|
1644
|
+
|
1645
|
+
# The honorific suffixes spelled as they sound.
|
1646
|
+
# Corresponds to the JSON property `phoneticHonorificSuffix`
|
1647
|
+
# @return [String]
|
1648
|
+
attr_accessor :phonetic_honorific_suffix
|
1649
|
+
|
1650
|
+
# The middle name(s).
|
1651
|
+
# Corresponds to the JSON property `middleName`
|
1652
|
+
# @return [String]
|
1653
|
+
attr_accessor :middle_name
|
1654
|
+
|
1655
|
+
# The given name.
|
1656
|
+
# Corresponds to the JSON property `givenName`
|
1657
|
+
# @return [String]
|
1658
|
+
attr_accessor :given_name
|
1476
1659
|
|
1477
1660
|
def initialize(**args)
|
1478
1661
|
update!(**args)
|
@@ -1480,30 +1663,36 @@ module Google
|
|
1480
1663
|
|
1481
1664
|
# Update properties of this object
|
1482
1665
|
def update!(**args)
|
1483
|
-
@
|
1484
|
-
@
|
1485
|
-
@
|
1666
|
+
@phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix)
|
1667
|
+
@phonetic_given_name = args[:phonetic_given_name] if args.key?(:phonetic_given_name)
|
1668
|
+
@phonetic_family_name = args[:phonetic_family_name] if args.key?(:phonetic_family_name)
|
1669
|
+
@family_name = args[:family_name] if args.key?(:family_name)
|
1670
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1671
|
+
@phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name)
|
1672
|
+
@phonetic_full_name = args[:phonetic_full_name] if args.key?(:phonetic_full_name)
|
1673
|
+
@display_name_last_first = args[:display_name_last_first] if args.key?(:display_name_last_first)
|
1674
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1675
|
+
@honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix)
|
1676
|
+
@honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix)
|
1677
|
+
@phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix)
|
1678
|
+
@middle_name = args[:middle_name] if args.key?(:middle_name)
|
1679
|
+
@given_name = args[:given_name] if args.key?(:given_name)
|
1486
1680
|
end
|
1487
1681
|
end
|
1488
1682
|
|
1489
|
-
#
|
1490
|
-
class
|
1683
|
+
# A person's bragging rights.
|
1684
|
+
class BraggingRights
|
1491
1685
|
include Google::Apis::Core::Hashable
|
1492
1686
|
|
1493
|
-
#
|
1494
|
-
# Corresponds to the JSON property `
|
1495
|
-
# @return [
|
1496
|
-
attr_accessor :
|
1497
|
-
|
1498
|
-
# The token that can be used to retrieve the next page of results.
|
1499
|
-
# Corresponds to the JSON property `nextPageToken`
|
1500
|
-
# @return [String]
|
1501
|
-
attr_accessor :next_page_token
|
1687
|
+
# Metadata about a field.
|
1688
|
+
# Corresponds to the JSON property `metadata`
|
1689
|
+
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
1690
|
+
attr_accessor :metadata
|
1502
1691
|
|
1503
|
-
# The
|
1504
|
-
# Corresponds to the JSON property `
|
1692
|
+
# The bragging rights; for example, `climbed mount everest`.
|
1693
|
+
# Corresponds to the JSON property `value`
|
1505
1694
|
# @return [String]
|
1506
|
-
attr_accessor :
|
1695
|
+
attr_accessor :value
|
1507
1696
|
|
1508
1697
|
def initialize(**args)
|
1509
1698
|
update!(**args)
|
@@ -1511,9 +1700,8 @@ module Google
|
|
1511
1700
|
|
1512
1701
|
# Update properties of this object
|
1513
1702
|
def update!(**args)
|
1514
|
-
@
|
1515
|
-
@
|
1516
|
-
@next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
|
1703
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1704
|
+
@value = args[:value] if args.key?(:value)
|
1517
1705
|
end
|
1518
1706
|
end
|
1519
1707
|
end
|