google-api-client 0.11.3 → 0.12.0

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