google-api-client 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/api_names.yaml +945 -41609
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  12. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  13. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  14. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  17. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  18. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  21. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  22. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  23. data/generated/google/apis/analytics_v3/service.rb +82 -82
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
  25. data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
  26. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  30. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  32. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  33. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  34. data/generated/google/apis/appengine_v1.rb +4 -4
  35. data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
  36. data/generated/google/apis/appengine_v1/representations.rb +362 -343
  37. data/generated/google/apis/appengine_v1/service.rb +220 -220
  38. data/generated/google/apis/appstate_v1.rb +1 -1
  39. data/generated/google/apis/bigquery_v2.rb +1 -1
  40. data/generated/google/apis/bigquery_v2/classes.rb +5 -5
  41. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  42. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  43. data/generated/google/apis/blogger_v3/service.rb +3 -3
  44. data/generated/google/apis/books_v1/classes.rb +55 -55
  45. data/generated/google/apis/books_v1/representations.rb +67 -67
  46. data/generated/google/apis/books_v1/service.rb +82 -82
  47. data/generated/google/apis/calendar_v3.rb +1 -1
  48. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  49. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  50. data/generated/google/apis/calendar_v3/service.rb +2 -2
  51. data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
  52. data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
  53. data/generated/google/apis/civicinfo_v2/service.rb +12 -12
  54. data/generated/google/apis/classroom_v1.rb +7 -7
  55. data/generated/google/apis/classroom_v1/classes.rb +1013 -991
  56. data/generated/google/apis/classroom_v1/representations.rb +207 -204
  57. data/generated/google/apis/classroom_v1/service.rb +709 -709
  58. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  59. data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
  60. data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
  61. data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
  62. data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
  63. data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
  64. data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
  65. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  66. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
  67. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
  68. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
  69. data/generated/google/apis/cloudkms_v1.rb +1 -1
  70. data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
  71. data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
  72. data/generated/google/apis/cloudkms_v1/service.rb +267 -267
  73. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  74. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
  75. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
  76. data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
  77. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
  80. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
  81. data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
  82. data/generated/google/apis/compute_beta.rb +1 -1
  83. data/generated/google/apis/compute_beta/classes.rb +163 -15
  84. data/generated/google/apis/compute_beta/representations.rb +54 -14
  85. data/generated/google/apis/compute_beta/service.rb +2258 -482
  86. data/generated/google/apis/compute_v1.rb +1 -1
  87. data/generated/google/apis/compute_v1/classes.rb +465 -13
  88. data/generated/google/apis/compute_v1/representations.rb +202 -16
  89. data/generated/google/apis/compute_v1/service.rb +573 -309
  90. data/generated/google/apis/container_v1.rb +1 -1
  91. data/generated/google/apis/container_v1/classes.rb +635 -589
  92. data/generated/google/apis/container_v1/representations.rb +139 -111
  93. data/generated/google/apis/container_v1/service.rb +272 -227
  94. data/generated/google/apis/content_v2.rb +1 -1
  95. data/generated/google/apis/content_v2/classes.rb +86 -74
  96. data/generated/google/apis/content_v2/representations.rb +107 -105
  97. data/generated/google/apis/content_v2/service.rb +131 -130
  98. data/generated/google/apis/customsearch_v1.rb +2 -2
  99. data/generated/google/apis/customsearch_v1/classes.rb +0 -6
  100. data/generated/google/apis/customsearch_v1/representations.rb +0 -1
  101. data/generated/google/apis/customsearch_v1/service.rb +2 -5
  102. data/generated/google/apis/dataflow_v1b3.rb +7 -4
  103. data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
  104. data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
  105. data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
  106. data/generated/google/apis/dataproc_v1.rb +1 -1
  107. data/generated/google/apis/dataproc_v1/classes.rb +543 -691
  108. data/generated/google/apis/dataproc_v1/representations.rb +129 -185
  109. data/generated/google/apis/dataproc_v1/service.rb +347 -347
  110. data/generated/google/apis/datastore_v1.rb +4 -4
  111. data/generated/google/apis/datastore_v1/classes.rb +833 -833
  112. data/generated/google/apis/datastore_v1/representations.rb +182 -182
  113. data/generated/google/apis/datastore_v1/service.rb +45 -45
  114. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  115. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  116. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  117. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  118. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  119. data/generated/google/apis/discovery_v1/service.rb +1 -1
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +3 -3
  122. data/generated/google/apis/dns_v1/representations.rb +6 -6
  123. data/generated/google/apis/dns_v1/service.rb +12 -12
  124. data/generated/google/apis/dns_v2beta1.rb +1 -1
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +1 -1
  129. data/generated/google/apis/drive_v2/service.rb +1 -1
  130. data/generated/google/apis/drive_v3.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
  136. data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
  137. data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
  138. data/generated/google/apis/firebaserules_v1/service.rb +103 -103
  139. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  140. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  141. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  142. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  143. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  144. data/generated/google/apis/games_management_v1management.rb +1 -1
  145. data/generated/google/apis/games_v1.rb +1 -1
  146. data/generated/google/apis/games_v1/classes.rb +23 -23
  147. data/generated/google/apis/games_v1/representations.rb +43 -43
  148. data/generated/google/apis/games_v1/service.rb +72 -72
  149. data/generated/google/apis/genomics_v1.rb +1 -1
  150. data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
  151. data/generated/google/apis/genomics_v1/representations.rb +291 -291
  152. data/generated/google/apis/genomics_v1/service.rb +821 -821
  153. data/generated/google/apis/gmail_v1.rb +1 -1
  154. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  155. data/generated/google/apis/groupssettings_v1.rb +1 -1
  156. data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
  157. data/generated/google/apis/groupssettings_v1/service.rb +3 -0
  158. data/generated/google/apis/iam_v1/classes.rb +338 -338
  159. data/generated/google/apis/iam_v1/representations.rb +98 -98
  160. data/generated/google/apis/iam_v1/service.rb +35 -35
  161. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  162. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  163. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  164. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  165. data/generated/google/apis/language_v1.rb +1 -1
  166. data/generated/google/apis/language_v1/classes.rb +374 -374
  167. data/generated/google/apis/language_v1/representations.rb +97 -97
  168. data/generated/google/apis/language_v1/service.rb +16 -16
  169. data/generated/google/apis/language_v1beta1.rb +1 -1
  170. data/generated/google/apis/language_v1beta1/classes.rb +441 -441
  171. data/generated/google/apis/language_v1beta1/representations.rb +108 -108
  172. data/generated/google/apis/language_v1beta1/service.rb +30 -30
  173. data/generated/google/apis/licensing_v1/service.rb +2 -2
  174. data/generated/google/apis/logging_v2.rb +1 -1
  175. data/generated/google/apis/logging_v2/classes.rb +712 -712
  176. data/generated/google/apis/logging_v2/representations.rb +109 -109
  177. data/generated/google/apis/logging_v2/service.rb +543 -539
  178. data/generated/google/apis/logging_v2beta1.rb +1 -1
  179. data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
  180. data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
  181. data/generated/google/apis/logging_v2beta1/service.rb +257 -256
  182. data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
  183. data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
  184. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  185. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  186. data/generated/google/apis/mirror_v1/service.rb +20 -20
  187. data/generated/google/apis/ml_v1.rb +1 -1
  188. data/generated/google/apis/ml_v1/classes.rb +1830 -1210
  189. data/generated/google/apis/ml_v1/representations.rb +342 -120
  190. data/generated/google/apis/ml_v1/service.rb +365 -258
  191. data/generated/google/apis/monitoring_v3.rb +4 -4
  192. data/generated/google/apis/monitoring_v3/classes.rb +889 -889
  193. data/generated/google/apis/monitoring_v3/representations.rb +174 -174
  194. data/generated/google/apis/monitoring_v3/service.rb +119 -119
  195. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  196. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  197. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  198. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  199. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  200. data/generated/google/apis/partners_v2.rb +1 -1
  201. data/generated/google/apis/partners_v2/classes.rb +550 -536
  202. data/generated/google/apis/partners_v2/representations.rb +118 -116
  203. data/generated/google/apis/partners_v2/service.rb +439 -439
  204. data/generated/google/apis/people_v1.rb +4 -4
  205. data/generated/google/apis/people_v1/classes.rb +414 -413
  206. data/generated/google/apis/people_v1/representations.rb +85 -85
  207. data/generated/google/apis/people_v1/service.rb +111 -18
  208. data/generated/google/apis/plus_domains_v1.rb +1 -1
  209. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  210. data/generated/google/apis/plus_v1.rb +1 -1
  211. data/generated/google/apis/plus_v1/service.rb +1 -1
  212. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  213. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  214. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
  215. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
  216. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
  217. data/generated/google/apis/pubsub_v1/classes.rb +249 -249
  218. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  219. data/generated/google/apis/pubsub_v1/service.rb +415 -415
  220. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  221. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  222. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  223. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  226. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  227. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  228. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  230. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  231. data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
  232. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  233. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  234. data/generated/google/apis/script_v1.rb +17 -17
  235. data/generated/google/apis/script_v1/classes.rb +27 -27
  236. data/generated/google/apis/script_v1/representations.rb +5 -5
  237. data/generated/google/apis/script_v1/service.rb +4 -4
  238. data/generated/google/apis/searchconsole_v1.rb +1 -1
  239. data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
  240. data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
  241. data/generated/google/apis/searchconsole_v1/service.rb +4 -4
  242. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  243. data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
  244. data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
  245. data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
  246. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  247. data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
  248. data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
  249. data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
  250. data/generated/google/apis/serviceuser_v1.rb +1 -1
  251. data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
  252. data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
  253. data/generated/google/apis/serviceuser_v1/service.rb +37 -37
  254. data/generated/google/apis/sheets_v4.rb +1 -1
  255. data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
  256. data/generated/google/apis/sheets_v4/representations.rb +994 -824
  257. data/generated/google/apis/sheets_v4/service.rb +80 -80
  258. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  259. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  260. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  261. data/generated/google/apis/slides_v1.rb +1 -1
  262. data/generated/google/apis/slides_v1/classes.rb +2885 -2885
  263. data/generated/google/apis/slides_v1/representations.rb +310 -310
  264. data/generated/google/apis/slides_v1/service.rb +54 -54
  265. data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
  266. data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
  267. data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
  268. data/generated/google/apis/spanner_v1.rb +1 -1
  269. data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
  270. data/generated/google/apis/spanner_v1/representations.rb +174 -174
  271. data/generated/google/apis/spanner_v1/service.rb +497 -497
  272. data/generated/google/apis/speech_v1beta1.rb +1 -1
  273. data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
  274. data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
  275. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  276. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  277. data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
  278. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
  279. data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
  280. data/generated/google/apis/storage_v1.rb +1 -1
  281. data/generated/google/apis/storage_v1/classes.rb +40 -6
  282. data/generated/google/apis/storage_v1/representations.rb +20 -4
  283. data/generated/google/apis/storage_v1/service.rb +61 -46
  284. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  285. data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
  286. data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
  287. data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
  288. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  289. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  290. data/generated/google/apis/translate_v2/classes.rb +12 -12
  291. data/generated/google/apis/translate_v2/representations.rb +10 -10
  292. data/generated/google/apis/translate_v2/service.rb +62 -62
  293. data/generated/google/apis/vision_v1.rb +1 -1
  294. data/generated/google/apis/vision_v1/classes.rb +1267 -1267
  295. data/generated/google/apis/vision_v1/representations.rb +200 -200
  296. data/generated/google/apis/vision_v1/service.rb +10 -10
  297. data/generated/google/apis/webmasters_v3.rb +1 -1
  298. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  299. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  300. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  301. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  302. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  303. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  304. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  305. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  306. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  307. data/generated/google/apis/youtube_v3/service.rb +80 -80
  308. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  309. data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
  310. data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
  311. data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
  312. data/lib/google/apis/generator/annotator.rb +2 -2
  313. data/lib/google/apis/generator/model.rb +2 -2
  314. data/lib/google/apis/version.rb +1 -1
  315. metadata +2 -2
@@ -40,13 +40,13 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Photo
43
+ class PhoneNumber
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class PhoneNumber
49
+ class Photo
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
@@ -88,13 +88,13 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class PersonMetadata
91
+ class Event
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class Event
97
+ class PersonMetadata
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
@@ -106,13 +106,13 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class Gender
109
+ class Url
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class Url
115
+ class Gender
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
@@ -136,13 +136,13 @@ module Google
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
- class EmailAddress
139
+ class Nickname
140
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
141
 
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
- class Nickname
145
+ class EmailAddress
146
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
147
 
148
148
  include Google::Apis::Core::JsonObjectSupport
@@ -232,13 +232,13 @@ module Google
232
232
  include Google::Apis::Core::JsonObjectSupport
233
233
  end
234
234
 
235
- class Source
235
+ class RelationshipInterest
236
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
237
 
238
238
  include Google::Apis::Core::JsonObjectSupport
239
239
  end
240
240
 
241
- class RelationshipInterest
241
+ class Source
242
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
243
 
244
244
  include Google::Apis::Core::JsonObjectSupport
@@ -262,16 +262,6 @@ module Google
262
262
  class Person
263
263
  # @private
264
264
  class Representation < Google::Apis::Core::JsonRepresentation
265
- collection :im_clients, as: 'imClients', class: Google::Apis::PeopleV1::ImClient, decorator: Google::Apis::PeopleV1::ImClient::Representation
266
-
267
- collection :birthdays, as: 'birthdays', class: Google::Apis::PeopleV1::Birthday, decorator: Google::Apis::PeopleV1::Birthday::Representation
268
-
269
- collection :locales, as: 'locales', class: Google::Apis::PeopleV1::Locale, decorator: Google::Apis::PeopleV1::Locale::Representation
270
-
271
- collection :relationship_interests, as: 'relationshipInterests', class: Google::Apis::PeopleV1::RelationshipInterest, decorator: Google::Apis::PeopleV1::RelationshipInterest::Representation
272
-
273
- collection :urls, as: 'urls', class: Google::Apis::PeopleV1::Url, decorator: Google::Apis::PeopleV1::Url::Representation
274
-
275
265
  collection :nicknames, as: 'nicknames', class: Google::Apis::PeopleV1::Nickname, decorator: Google::Apis::PeopleV1::Nickname::Representation
276
266
 
277
267
  collection :relations, as: 'relations', class: Google::Apis::PeopleV1::Relation, decorator: Google::Apis::PeopleV1::Relation::Representation
@@ -319,6 +309,16 @@ module Google
319
309
 
320
310
  collection :cover_photos, as: 'coverPhotos', class: Google::Apis::PeopleV1::CoverPhoto, decorator: Google::Apis::PeopleV1::CoverPhoto::Representation
321
311
 
312
+ collection :im_clients, as: 'imClients', class: Google::Apis::PeopleV1::ImClient, decorator: Google::Apis::PeopleV1::ImClient::Representation
313
+
314
+ collection :birthdays, as: 'birthdays', class: Google::Apis::PeopleV1::Birthday, decorator: Google::Apis::PeopleV1::Birthday::Representation
315
+
316
+ collection :locales, as: 'locales', class: Google::Apis::PeopleV1::Locale, decorator: Google::Apis::PeopleV1::Locale::Representation
317
+
318
+ collection :relationship_interests, as: 'relationshipInterests', class: Google::Apis::PeopleV1::RelationshipInterest, decorator: Google::Apis::PeopleV1::RelationshipInterest::Representation
319
+
320
+ collection :urls, as: 'urls', class: Google::Apis::PeopleV1::Url, decorator: Google::Apis::PeopleV1::Url::Representation
321
+
322
322
  end
323
323
  end
324
324
 
@@ -330,24 +330,24 @@ module Google
330
330
  end
331
331
  end
332
332
 
333
- class Photo
333
+ class PhoneNumber
334
334
  # @private
335
335
  class Representation < Google::Apis::Core::JsonRepresentation
336
+ property :type, as: 'type'
336
337
  property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
337
338
 
338
- property :url, as: 'url'
339
+ property :value, as: 'value'
340
+ property :formatted_type, as: 'formattedType'
341
+ property :canonical_form, as: 'canonicalForm'
339
342
  end
340
343
  end
341
344
 
342
- class PhoneNumber
345
+ class Photo
343
346
  # @private
344
347
  class Representation < Google::Apis::Core::JsonRepresentation
345
- property :value, as: 'value'
346
- property :formatted_type, as: 'formattedType'
347
- property :canonical_form, as: 'canonicalForm'
348
- property :type, as: 'type'
349
348
  property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
350
349
 
350
+ property :url, as: 'url'
351
351
  end
352
352
  end
353
353
 
@@ -366,11 +366,11 @@ module Google
366
366
  class Birthday
367
367
  # @private
368
368
  class Representation < Google::Apis::Core::JsonRepresentation
369
- property :date, as: 'date', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation
370
-
371
369
  property :text, as: 'text'
372
370
  property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
373
371
 
372
+ property :date, as: 'date', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation
373
+
374
374
  end
375
375
  end
376
376
 
@@ -387,9 +387,6 @@ module Google
387
387
  class Address
388
388
  # @private
389
389
  class Representation < Google::Apis::Core::JsonRepresentation
390
- property :country, as: 'country'
391
- property :type, as: 'type'
392
- property :extended_address, as: 'extendedAddress'
393
390
  property :po_box, as: 'poBox'
394
391
  property :postal_code, as: 'postalCode'
395
392
  property :region, as: 'region'
@@ -400,6 +397,9 @@ module Google
400
397
  property :formatted_type, as: 'formattedType'
401
398
  property :city, as: 'city'
402
399
  property :formatted_value, as: 'formattedValue'
400
+ property :country, as: 'country'
401
+ property :type, as: 'type'
402
+ property :extended_address, as: 'extendedAddress'
403
403
  end
404
404
  end
405
405
 
@@ -413,33 +413,33 @@ module Google
413
413
  class Status
414
414
  # @private
415
415
  class Representation < Google::Apis::Core::JsonRepresentation
416
- collection :details, as: 'details'
417
416
  property :code, as: 'code'
418
417
  property :message, as: 'message'
418
+ collection :details, as: 'details'
419
419
  end
420
420
  end
421
421
 
422
- class PersonMetadata
422
+ class Event
423
423
  # @private
424
424
  class Representation < Google::Apis::Core::JsonRepresentation
425
- property :object_type, as: 'objectType'
426
- collection :linked_people_resource_names, as: 'linkedPeopleResourceNames'
427
- collection :previous_resource_names, as: 'previousResourceNames'
428
- collection :sources, as: 'sources', class: Google::Apis::PeopleV1::Source, decorator: Google::Apis::PeopleV1::Source::Representation
425
+ property :type, as: 'type'
426
+ property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
429
427
 
430
- property :deleted, as: 'deleted'
428
+ property :date, as: 'date', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation
429
+
430
+ property :formatted_type, as: 'formattedType'
431
431
  end
432
432
  end
433
433
 
434
- class Event
434
+ class PersonMetadata
435
435
  # @private
436
436
  class Representation < Google::Apis::Core::JsonRepresentation
437
- property :date, as: 'date', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation
438
-
439
- property :formatted_type, as: 'formattedType'
440
- property :type, as: 'type'
441
- property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
437
+ collection :linked_people_resource_names, as: 'linkedPeopleResourceNames'
438
+ collection :previous_resource_names, as: 'previousResourceNames'
439
+ collection :sources, as: 'sources', class: Google::Apis::PeopleV1::Source, decorator: Google::Apis::PeopleV1::Source::Representation
442
440
 
441
+ property :deleted, as: 'deleted'
442
+ property :object_type, as: 'objectType'
443
443
  end
444
444
  end
445
445
 
@@ -450,47 +450,47 @@ module Google
450
450
  end
451
451
  end
452
452
 
453
- class Gender
453
+ class Url
454
454
  # @private
455
455
  class Representation < Google::Apis::Core::JsonRepresentation
456
- property :formatted_value, as: 'formattedValue'
456
+ property :type, as: 'type'
457
457
  property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
458
458
 
459
459
  property :value, as: 'value'
460
+ property :formatted_type, as: 'formattedType'
460
461
  end
461
462
  end
462
463
 
463
- class Url
464
+ class Gender
464
465
  # @private
465
466
  class Representation < Google::Apis::Core::JsonRepresentation
466
- property :type, as: 'type'
467
+ property :formatted_value, as: 'formattedValue'
467
468
  property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
468
469
 
469
470
  property :value, as: 'value'
470
- property :formatted_type, as: 'formattedType'
471
471
  end
472
472
  end
473
473
 
474
474
  class CoverPhoto
475
475
  # @private
476
476
  class Representation < Google::Apis::Core::JsonRepresentation
477
- property :url, as: 'url'
478
477
  property :default, as: 'default'
479
478
  property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
480
479
 
480
+ property :url, as: 'url'
481
481
  end
482
482
  end
483
483
 
484
484
  class ImClient
485
485
  # @private
486
486
  class Representation < Google::Apis::Core::JsonRepresentation
487
- property :formatted_protocol, as: 'formattedProtocol'
488
- property :formatted_type, as: 'formattedType'
489
487
  property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
490
488
 
491
489
  property :type, as: 'type'
492
490
  property :protocol, as: 'protocol'
493
491
  property :username, as: 'username'
492
+ property :formatted_protocol, as: 'formattedProtocol'
493
+ property :formatted_type, as: 'formattedType'
494
494
  end
495
495
  end
496
496
 
@@ -503,25 +503,25 @@ module Google
503
503
  end
504
504
  end
505
505
 
506
- class EmailAddress
506
+ class Nickname
507
507
  # @private
508
508
  class Representation < Google::Apis::Core::JsonRepresentation
509
- property :display_name, as: 'displayName'
510
509
  property :type, as: 'type'
511
510
  property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
512
511
 
513
512
  property :value, as: 'value'
514
- property :formatted_type, as: 'formattedType'
515
513
  end
516
514
  end
517
515
 
518
- class Nickname
516
+ class EmailAddress
519
517
  # @private
520
518
  class Representation < Google::Apis::Core::JsonRepresentation
521
519
  property :type, as: 'type'
522
520
  property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
523
521
 
524
522
  property :value, as: 'value'
523
+ property :formatted_type, as: 'formattedType'
524
+ property :display_name, as: 'displayName'
525
525
  end
526
526
  end
527
527
 
@@ -544,12 +544,12 @@ module Google
544
544
  class Membership
545
545
  # @private
546
546
  class Representation < Google::Apis::Core::JsonRepresentation
547
+ property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
548
+
547
549
  property :domain_membership, as: 'domainMembership', class: Google::Apis::PeopleV1::DomainMembership, decorator: Google::Apis::PeopleV1::DomainMembership::Representation
548
550
 
549
551
  property :contact_group_membership, as: 'contactGroupMembership', class: Google::Apis::PeopleV1::ContactGroupMembership, decorator: Google::Apis::PeopleV1::ContactGroupMembership::Representation
550
552
 
551
- property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
552
-
553
553
  end
554
554
  end
555
555
 
@@ -566,9 +566,9 @@ module Google
566
566
  class Date
567
567
  # @private
568
568
  class Representation < Google::Apis::Core::JsonRepresentation
569
+ property :month, as: 'month'
569
570
  property :day, as: 'day'
570
571
  property :year, as: 'year'
571
- property :month, as: 'month'
572
572
  end
573
573
  end
574
574
 
@@ -584,21 +584,21 @@ module Google
584
584
  class Name
585
585
  # @private
586
586
  class Representation < Google::Apis::Core::JsonRepresentation
587
- property :given_name, as: 'givenName'
588
- property :middle_name, as: 'middleName'
589
- property :phonetic_honorific_prefix, as: 'phoneticHonorificPrefix'
590
587
  property :phonetic_given_name, as: 'phoneticGivenName'
591
588
  property :phonetic_family_name, as: 'phoneticFamilyName'
592
589
  property :family_name, as: 'familyName'
593
- property :phonetic_middle_name, as: 'phoneticMiddleName'
594
590
  property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
595
591
 
592
+ property :phonetic_middle_name, as: 'phoneticMiddleName'
596
593
  property :phonetic_full_name, as: 'phoneticFullName'
597
594
  property :display_name_last_first, as: 'displayNameLastFirst'
598
595
  property :display_name, as: 'displayName'
599
596
  property :honorific_suffix, as: 'honorificSuffix'
600
597
  property :honorific_prefix, as: 'honorificPrefix'
601
598
  property :phonetic_honorific_suffix, as: 'phoneticHonorificSuffix'
599
+ property :middle_name, as: 'middleName'
600
+ property :given_name, as: 'givenName'
601
+ property :phonetic_honorific_prefix, as: 'phoneticHonorificPrefix'
602
602
  end
603
603
  end
604
604
 
@@ -623,16 +623,8 @@ module Google
623
623
  class Organization
624
624
  # @private
625
625
  class Representation < Google::Apis::Core::JsonRepresentation
626
- property :title, as: 'title'
627
- property :location, as: 'location'
628
- property :current, as: 'current'
629
- property :formatted_type, as: 'formattedType'
630
- property :start_date, as: 'startDate', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation
631
-
632
- property :domain, as: 'domain'
633
- property :department, as: 'department'
634
- property :phonetic_name, as: 'phoneticName'
635
626
  property :type, as: 'type'
627
+ property :phonetic_name, as: 'phoneticName'
636
628
  property :job_description, as: 'jobDescription'
637
629
  property :end_date, as: 'endDate', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation
638
630
 
@@ -640,6 +632,14 @@ module Google
640
632
  property :name, as: 'name'
641
633
  property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
642
634
 
635
+ property :location, as: 'location'
636
+ property :title, as: 'title'
637
+ property :current, as: 'current'
638
+ property :start_date, as: 'startDate', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation
639
+
640
+ property :formatted_type, as: 'formattedType'
641
+ property :domain, as: 'domain'
642
+ property :department, as: 'department'
643
643
  end
644
644
  end
645
645
 
@@ -656,9 +656,9 @@ module Google
656
656
  class AgeRangeType
657
657
  # @private
658
658
  class Representation < Google::Apis::Core::JsonRepresentation
659
+ property :age_range, as: 'ageRange'
659
660
  property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
660
661
 
661
- property :age_range, as: 'ageRange'
662
662
  end
663
663
  end
664
664
 
@@ -675,33 +675,33 @@ module Google
675
675
  class PersonResponse
676
676
  # @private
677
677
  class Representation < Google::Apis::Core::JsonRepresentation
678
- property :person, as: 'person', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
679
-
680
678
  property :status, as: 'status', class: Google::Apis::PeopleV1::Status, decorator: Google::Apis::PeopleV1::Status::Representation
681
679
 
682
680
  property :http_status_code, as: 'httpStatusCode'
683
681
  property :requested_resource_name, as: 'requestedResourceName'
682
+ property :person, as: 'person', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
683
+
684
684
  end
685
685
  end
686
686
 
687
- class Source
687
+ class RelationshipInterest
688
688
  # @private
689
689
  class Representation < Google::Apis::Core::JsonRepresentation
690
- property :type, as: 'type'
691
- property :etag, as: 'etag'
692
- property :id, as: 'id'
693
- property :profile_metadata, as: 'profileMetadata', class: Google::Apis::PeopleV1::ProfileMetadata, decorator: Google::Apis::PeopleV1::ProfileMetadata::Representation
690
+ property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
694
691
 
692
+ property :value, as: 'value'
693
+ property :formatted_value, as: 'formattedValue'
695
694
  end
696
695
  end
697
696
 
698
- class RelationshipInterest
697
+ class Source
699
698
  # @private
700
699
  class Representation < Google::Apis::Core::JsonRepresentation
701
- property :formatted_value, as: 'formattedValue'
702
- property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
700
+ property :type, as: 'type'
701
+ property :etag, as: 'etag'
702
+ property :id, as: 'id'
703
+ property :profile_metadata, as: 'profileMetadata', class: Google::Apis::PeopleV1::ProfileMetadata, decorator: Google::Apis::PeopleV1::ProfileMetadata::Representation
703
704
 
704
- property :value, as: 'value'
705
705
  end
706
706
  end
707
707
 
@@ -32,16 +32,16 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/people/
34
34
  class PeopleServiceService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
35
  # @return [String]
41
36
  # Available to use for quota purposes for server-side applications. Can be any
42
37
  # arbitrary string assigned to a user, but should not exceed 40 characters.
43
38
  attr_accessor :quota_user
44
39
 
40
+ # @return [String]
41
+ # API key. Your API key identifies your project and provides you with API access,
42
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
+ attr_accessor :key
44
+
45
45
  def initialize
46
46
  super('https://people.googleapis.com/', '')
47
47
  @batch_path = 'batch'
@@ -50,15 +50,45 @@ module Google
50
50
  # Provides information about a list of specific people by specifying a list
51
51
  # of requested resource names. Use `people/me` to indicate the authenticated
52
52
  # user.
53
- # @param [String] request_mask_include_field
54
- # Required. Comma-separated list of person fields to be included in the
55
- # response. Each path should start with `person.`: for example,
56
- # `person.names` or `person.photos`.
57
53
  # @param [Array<String>, String] resource_names
58
54
  # The resource name, such as one returned by
59
55
  # [`people.connections.list`](/people/api/rest/v1/people.connections/list),
60
56
  # of one of the people to provide information about. You can include this
61
57
  # parameter up to 50 times in one request.
58
+ # @param [String] person_fields
59
+ # Required. A field mask to restrict which fields on each person are
60
+ # returned. Valid values are:
61
+ # * addresses
62
+ # * ageRanges
63
+ # * biographies
64
+ # * birthdays
65
+ # * braggingRights
66
+ # * coverPhotos
67
+ # * emailAddresses
68
+ # * events
69
+ # * genders
70
+ # * imClients
71
+ # * interests
72
+ # * locales
73
+ # * memberships
74
+ # * metadata
75
+ # * names
76
+ # * nicknames
77
+ # * occupations
78
+ # * organizations
79
+ # * phoneNumbers
80
+ # * photos
81
+ # * relations
82
+ # * relationshipInterests
83
+ # * relationshipStatuses
84
+ # * residences
85
+ # * skills
86
+ # * taglines
87
+ # * urls
88
+ # @param [String] request_mask_include_field
89
+ # Required. Comma-separated list of person fields to be included in the
90
+ # response. Each path should start with `person.`: for example,
91
+ # `person.names` or `person.photos`.
62
92
  # @param [String] quota_user
63
93
  # Available to use for quota purposes for server-side applications. Can be any
64
94
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -76,12 +106,13 @@ module Google
76
106
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
107
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
108
  # @raise [Google::Apis::AuthorizationError] Authorization is required
79
- def get_person_batch_get(request_mask_include_field: nil, resource_names: nil, quota_user: nil, fields: nil, options: nil, &block)
109
+ def get_people(resource_names: nil, person_fields: nil, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block)
80
110
  command = make_simple_command(:get, 'v1/people:batchGet', options)
81
111
  command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation
82
112
  command.response_class = Google::Apis::PeopleV1::GetPeopleResponse
83
- command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
84
113
  command.query['resourceNames'] = resource_names unless resource_names.nil?
114
+ command.query['personFields'] = person_fields unless person_fields.nil?
115
+ command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
85
116
  command.query['quotaUser'] = quota_user unless quota_user.nil?
86
117
  command.query['fields'] = fields unless fields.nil?
87
118
  execute_or_queue_command(command, &block)
@@ -95,6 +126,36 @@ module Google
95
126
  # - To get information about any user, specify the resource name that
96
127
  # identifies the user, such as the resource names returned by
97
128
  # [`people.connections.list`](/people/api/rest/v1/people.connections/list).
129
+ # @param [String] person_fields
130
+ # Required. A field mask to restrict which fields on the person are returned.
131
+ # Valid values are:
132
+ # * addresses
133
+ # * ageRanges
134
+ # * biographies
135
+ # * birthdays
136
+ # * braggingRights
137
+ # * coverPhotos
138
+ # * emailAddresses
139
+ # * events
140
+ # * genders
141
+ # * imClients
142
+ # * interests
143
+ # * locales
144
+ # * memberships
145
+ # * metadata
146
+ # * names
147
+ # * nicknames
148
+ # * occupations
149
+ # * organizations
150
+ # * phoneNumbers
151
+ # * photos
152
+ # * relations
153
+ # * relationshipInterests
154
+ # * relationshipStatuses
155
+ # * residences
156
+ # * skills
157
+ # * taglines
158
+ # * urls
98
159
  # @param [String] request_mask_include_field
99
160
  # Required. Comma-separated list of person fields to be included in the
100
161
  # response. Each path should start with `person.`: for example,
@@ -116,11 +177,12 @@ module Google
116
177
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
117
178
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
179
  # @raise [Google::Apis::AuthorizationError] Authorization is required
119
- def get_person(resource_name, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block)
180
+ def get_person(resource_name, person_fields: nil, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block)
120
181
  command = make_simple_command(:get, 'v1/{+resourceName}', options)
121
182
  command.response_representation = Google::Apis::PeopleV1::Person::Representation
122
183
  command.response_class = Google::Apis::PeopleV1::Person
123
184
  command.params['resourceName'] = resource_name unless resource_name.nil?
185
+ command.query['personFields'] = person_fields unless person_fields.nil?
124
186
  command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
125
187
  command.query['quotaUser'] = quota_user unless quota_user.nil?
126
188
  command.query['fields'] = fields unless fields.nil?
@@ -131,6 +193,9 @@ module Google
131
193
  # linked profiles.
132
194
  # @param [String] resource_name
133
195
  # The resource name to return connections for. Only `people/me` is valid.
196
+ # @param [String] sort_order
197
+ # The order in which the connections should be sorted. Defaults to
198
+ # `LAST_MODIFIED_ASCENDING`.
134
199
  # @param [Boolean] request_sync_token
135
200
  # Whether the response should include a sync token, which can be used to get
136
201
  # all changes since the last request.
@@ -146,9 +211,36 @@ module Google
146
211
  # @param [String] sync_token
147
212
  # A sync token, returned by a previous call to `people.connections.list`.
148
213
  # Only resources changed since the sync token was created will be returned.
149
- # @param [String] sort_order
150
- # The order in which the connections should be sorted. Defaults to
151
- # `LAST_MODIFIED_ASCENDING`.
214
+ # @param [String] person_fields
215
+ # Required. A field mask to restrict which fields on each person are
216
+ # returned. Valid values are:
217
+ # * addresses
218
+ # * ageRanges
219
+ # * biographies
220
+ # * birthdays
221
+ # * braggingRights
222
+ # * coverPhotos
223
+ # * emailAddresses
224
+ # * events
225
+ # * genders
226
+ # * imClients
227
+ # * interests
228
+ # * locales
229
+ # * memberships
230
+ # * metadata
231
+ # * names
232
+ # * nicknames
233
+ # * occupations
234
+ # * organizations
235
+ # * phoneNumbers
236
+ # * photos
237
+ # * relations
238
+ # * relationshipInterests
239
+ # * relationshipStatuses
240
+ # * residences
241
+ # * skills
242
+ # * taglines
243
+ # * urls
152
244
  # @param [String] quota_user
153
245
  # Available to use for quota purposes for server-side applications. Can be any
154
246
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -166,17 +258,18 @@ module Google
166
258
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
167
259
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
168
260
  # @raise [Google::Apis::AuthorizationError] Authorization is required
169
- def list_person_connections(resource_name, request_sync_token: nil, page_token: nil, page_size: nil, request_mask_include_field: nil, sync_token: nil, sort_order: nil, quota_user: nil, fields: nil, options: nil, &block)
261
+ def list_person_connections(resource_name, sort_order: nil, request_sync_token: nil, page_token: nil, page_size: nil, request_mask_include_field: nil, sync_token: nil, person_fields: nil, quota_user: nil, fields: nil, options: nil, &block)
170
262
  command = make_simple_command(:get, 'v1/{+resourceName}/connections', options)
171
263
  command.response_representation = Google::Apis::PeopleV1::ListConnectionsResponse::Representation
172
264
  command.response_class = Google::Apis::PeopleV1::ListConnectionsResponse
173
265
  command.params['resourceName'] = resource_name unless resource_name.nil?
266
+ command.query['sortOrder'] = sort_order unless sort_order.nil?
174
267
  command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
175
268
  command.query['pageToken'] = page_token unless page_token.nil?
176
269
  command.query['pageSize'] = page_size unless page_size.nil?
177
270
  command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
178
271
  command.query['syncToken'] = sync_token unless sync_token.nil?
179
- command.query['sortOrder'] = sort_order unless sort_order.nil?
272
+ command.query['personFields'] = person_fields unless person_fields.nil?
180
273
  command.query['quotaUser'] = quota_user unless quota_user.nil?
181
274
  command.query['fields'] = fields unless fields.nil?
182
275
  execute_or_queue_command(command, &block)
@@ -185,8 +278,8 @@ module Google
185
278
  protected
186
279
 
187
280
  def apply_command_defaults(command)
188
- command.query['key'] = key unless key.nil?
189
281
  command.query['quotaUser'] = quota_user unless quota_user.nil?
282
+ command.query['key'] = key unless key.nil?
190
283
  end
191
284
  end
192
285
  end