google-api-client 0.10.3 → 0.11.0

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