google-api-client 0.13.2 → 0.13.3

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