google-api-client 0.8.7 → 0.9.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +21 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +6 -3
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +28 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +158 -150
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +872 -0
  15. data/api_names_out.yaml +20843 -0
  16. data/bin/generate-api +93 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1124 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +375 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +893 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +682 -0
  25. data/generated/google/apis/admin_directory_v1.rb +89 -0
  26. data/generated/google/apis/admin_directory_v1/classes.rb +2389 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +780 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +2805 -0
  29. data/generated/google/apis/admin_reports_v1.rb +38 -0
  30. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  31. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  32. data/generated/google/apis/admin_reports_v1/service.rb +341 -0
  33. data/generated/google/apis/adsense_v1_4.rb +38 -0
  34. data/generated/google/apis/adsense_v1_4/classes.rb +1279 -0
  35. data/generated/google/apis/adsense_v1_4/representations.rb +493 -0
  36. data/generated/google/apis/adsense_v1_4/service.rb +1752 -0
  37. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  38. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  39. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  40. data/generated/google/apis/adsensehost_v4_1/service.rb +1190 -0
  41. data/generated/google/apis/analytics_v3.rb +49 -0
  42. data/generated/google/apis/analytics_v3/classes.rb +5113 -0
  43. data/generated/google/apis/analytics_v3/representations.rb +1661 -0
  44. data/generated/google/apis/analytics_v3/service.rb +3600 -0
  45. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  46. data/generated/google/apis/androidenterprise_v1/classes.rb +1162 -0
  47. data/generated/google/apis/androidenterprise_v1/representations.rb +431 -0
  48. data/generated/google/apis/androidenterprise_v1/service.rb +1979 -0
  49. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +1374 -0
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +630 -0
  52. data/generated/google/apis/androidpublisher_v2/service.rb +2390 -0
  53. data/generated/google/apis/appsactivity_v1.rb +46 -0
  54. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  55. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  56. data/generated/google/apis/appsactivity_v1/service.rb +129 -0
  57. data/generated/google/apis/appstate_v1.rb +34 -0
  58. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  59. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  60. data/generated/google/apis/appstate_v1/service.rb +265 -0
  61. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  62. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  63. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  64. data/generated/google/apis/autoscaler_v1beta2/service.rb +488 -0
  65. data/generated/google/apis/bigquery_v2.rb +49 -0
  66. data/generated/google/apis/bigquery_v2/classes.rb +2255 -0
  67. data/generated/google/apis/bigquery_v2/representations.rb +754 -0
  68. data/generated/google/apis/bigquery_v2/service.rb +1003 -0
  69. data/generated/google/apis/blogger_v3.rb +37 -0
  70. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  71. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  72. data/generated/google/apis/blogger_v3/service.rb +1620 -0
  73. data/generated/google/apis/books_v1.rb +34 -0
  74. data/generated/google/apis/books_v1/classes.rb +3515 -0
  75. data/generated/google/apis/books_v1/representations.rb +1361 -0
  76. data/generated/google/apis/books_v1/service.rb +2170 -0
  77. data/generated/google/apis/calendar_v3.rb +37 -0
  78. data/generated/google/apis/calendar_v3/classes.rb +1702 -0
  79. data/generated/google/apis/calendar_v3/representations.rb +566 -0
  80. data/generated/google/apis/calendar_v3/service.rb +1943 -0
  81. data/generated/google/apis/civicinfo_v2.rb +31 -0
  82. data/generated/google/apis/civicinfo_v2/classes.rb +1057 -0
  83. data/generated/google/apis/civicinfo_v2/representations.rb +374 -0
  84. data/generated/google/apis/civicinfo_v2/service.rb +284 -0
  85. data/generated/google/apis/cloudmonitoring_v2beta2.rb +34 -0
  86. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  87. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  88. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +458 -0
  89. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  90. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +139 -0
  91. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +65 -0
  92. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +301 -0
  93. data/generated/google/apis/compute_v1.rb +49 -0
  94. data/generated/google/apis/compute_v1/classes.rb +6391 -0
  95. data/generated/google/apis/compute_v1/representations.rb +2209 -0
  96. data/generated/google/apis/compute_v1/service.rb +6352 -0
  97. data/generated/google/apis/container_v1beta1.rb +35 -0
  98. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  99. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  100. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  101. data/generated/google/apis/content_v2.rb +35 -0
  102. data/generated/google/apis/content_v2/classes.rb +3780 -0
  103. data/generated/google/apis/content_v2/representations.rb +1456 -0
  104. data/generated/google/apis/content_v2/service.rb +1706 -0
  105. data/generated/google/apis/coordinate_v1.rb +37 -0
  106. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  107. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  108. data/generated/google/apis/coordinate_v1/service.rb +687 -0
  109. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  110. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  111. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  112. data/generated/google/apis/customsearch_v1/service.rb +208 -0
  113. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  114. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  115. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  116. data/generated/google/apis/datastore_v1beta2/service.rb +300 -0
  117. data/generated/google/apis/deploymentmanager_v2beta2.rb +41 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +820 -0
  119. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +303 -0
  120. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +647 -0
  121. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  122. data/generated/google/apis/dfareporting_v2_1/classes.rb +10755 -0
  123. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +8775 -0
  125. data/generated/google/apis/discovery_v1.rb +32 -0
  126. data/generated/google/apis/discovery_v1/classes.rb +947 -0
  127. data/generated/google/apis/discovery_v1/representations.rb +355 -0
  128. data/generated/google/apis/discovery_v1/service.rb +144 -0
  129. data/generated/google/apis/dns_v1.rb +41 -0
  130. data/generated/google/apis/dns_v1/classes.rb +406 -0
  131. data/generated/google/apis/dns_v1/representations.rb +151 -0
  132. data/generated/google/apis/dns_v1/service.rb +460 -0
  133. data/{spec/google/api_client/request_spec.rb → generated/google/apis/doubleclickbidmanager_v1.rb} +15 -13
  134. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +709 -0
  135. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +297 -0
  136. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +349 -0
  137. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  138. data/generated/google/apis/doubleclicksearch_v2/classes.rb +947 -0
  139. data/generated/google/apis/doubleclicksearch_v2/representations.rb +315 -0
  140. data/generated/google/apis/doubleclicksearch_v2/service.rb +490 -0
  141. data/generated/google/apis/drive_v2.rb +55 -0
  142. data/generated/google/apis/drive_v2/classes.rb +2519 -0
  143. data/generated/google/apis/drive_v2/representations.rb +781 -0
  144. data/generated/google/apis/drive_v2/service.rb +2685 -0
  145. data/generated/google/apis/fitness_v1.rb +49 -0
  146. data/generated/google/apis/fitness_v1/classes.rb +809 -0
  147. data/generated/google/apis/fitness_v1/representations.rb +295 -0
  148. data/generated/google/apis/fitness_v1/service.rb +684 -0
  149. data/generated/google/apis/fusiontables_v2.rb +37 -0
  150. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  151. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  152. data/generated/google/apis/fusiontables_v2/service.rb +1496 -0
  153. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  154. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  155. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  156. data/generated/google/apis/games_configuration_v1configuration/service.rb +578 -0
  157. data/generated/google/apis/games_v1.rb +40 -0
  158. data/generated/google/apis/games_v1/classes.rb +4578 -0
  159. data/generated/google/apis/games_v1/representations.rb +1570 -0
  160. data/generated/google/apis/games_v1/service.rb +2306 -0
  161. data/generated/google/apis/gan_v1beta1.rb +31 -0
  162. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  163. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  164. data/generated/google/apis/gan_v1beta1/service.rb +692 -0
  165. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  166. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  167. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  168. data/generated/google/apis/genomics_v1beta2/service.rb +2356 -0
  169. data/generated/google/apis/gmail_v1.rb +49 -0
  170. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  171. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  172. data/generated/google/apis/gmail_v1/service.rb +1502 -0
  173. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  174. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  175. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  176. data/generated/google/apis/groupsmigration_v1/service.rb +111 -0
  177. data/generated/google/apis/groupssettings_v1.rb +34 -0
  178. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  179. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  180. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  181. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  182. data/generated/google/apis/identitytoolkit_v3/classes.rb +1229 -0
  183. data/generated/google/apis/identitytoolkit_v3/representations.rb +422 -0
  184. data/generated/google/apis/identitytoolkit_v3/service.rb +491 -0
  185. data/generated/google/apis/licensing_v1.rb +34 -0
  186. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  187. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  188. data/generated/google/apis/licensing_v1/service.rb +376 -0
  189. data/generated/google/apis/logging_v1beta3.rb +35 -0
  190. data/generated/google/apis/logging_v1beta3/classes.rb +505 -0
  191. data/generated/google/apis/logging_v1beta3/representations.rb +222 -0
  192. data/generated/google/apis/logging_v1beta3/service.rb +670 -0
  193. data/generated/google/apis/manager_v1beta2.rb +50 -0
  194. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  195. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  196. data/generated/google/apis/manager_v1beta2/service.rb +380 -0
  197. data/generated/google/apis/mapsengine_v1.rb +38 -0
  198. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  199. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  200. data/generated/google/apis/mapsengine_v1/service.rb +3465 -0
  201. data/generated/google/apis/mirror_v1.rb +37 -0
  202. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  203. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  204. data/generated/google/apis/mirror_v1/service.rb +1001 -0
  205. data/generated/google/apis/oauth2_v2.rb +43 -0
  206. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  207. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  208. data/generated/google/apis/oauth2_v2/service.rb +203 -0
  209. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  210. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  211. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  212. data/generated/google/apis/pagespeedonline_v2/service.rb +120 -0
  213. data/generated/google/apis/plus_domains_v1.rb +61 -0
  214. data/generated/google/apis/plus_domains_v1/classes.rb +2402 -0
  215. data/generated/google/apis/plus_domains_v1/representations.rb +873 -0
  216. data/generated/google/apis/plus_domains_v1/service.rb +924 -0
  217. data/generated/google/apis/plus_v1.rb +43 -0
  218. data/generated/google/apis/plus_v1/classes.rb +2384 -0
  219. data/generated/google/apis/plus_v1/representations.rb +812 -0
  220. data/generated/google/apis/plus_v1/service.rb +616 -0
  221. data/generated/google/apis/prediction_v1_6.rb +44 -0
  222. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  223. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  224. data/generated/google/apis/prediction_v1_6/service.rb +388 -0
  225. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  226. data/generated/google/apis/pubsub_v1beta2/classes.rb +824 -0
  227. data/generated/google/apis/pubsub_v1beta2/representations.rb +366 -0
  228. data/generated/google/apis/pubsub_v1beta2/service.rb +778 -0
  229. data/generated/google/apis/qpx_express_v1.rb +31 -0
  230. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  231. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  232. data/generated/google/apis/qpx_express_v1/service.rb +101 -0
  233. data/generated/google/apis/replicapool_v1beta2.rb +41 -0
  234. data/generated/google/apis/replicapool_v1beta2/classes.rb +621 -0
  235. data/generated/google/apis/replicapool_v1beta2/representations.rb +235 -0
  236. data/generated/google/apis/replicapool_v1beta2/service.rb +620 -0
  237. data/generated/google/apis/replicapoolupdater_v1beta1.rb +41 -0
  238. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +682 -0
  239. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +247 -0
  240. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +472 -0
  241. data/generated/google/apis/reseller_v1.rb +37 -0
  242. data/generated/google/apis/reseller_v1/classes.rb +502 -0
  243. data/generated/google/apis/reseller_v1/representations.rb +199 -0
  244. data/generated/google/apis/reseller_v1/service.rb +637 -0
  245. data/generated/google/apis/resourceviews_v1beta2.rb +47 -0
  246. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  247. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  248. data/generated/google/apis/resourceviews_v1beta2/service.rb +574 -0
  249. data/generated/google/apis/site_verification_v1.rb +37 -0
  250. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  251. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  252. data/generated/google/apis/site_verification_v1/service.rb +322 -0
  253. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  254. data/generated/google/apis/sqladmin_v1beta4/classes.rb +1817 -0
  255. data/generated/google/apis/sqladmin_v1beta4/representations.rb +688 -0
  256. data/generated/google/apis/sqladmin_v1beta4/service.rb +1534 -0
  257. data/generated/google/apis/storage_v1.rb +43 -0
  258. data/generated/google/apis/storage_v1/classes.rb +1177 -0
  259. data/generated/google/apis/storage_v1/representations.rb +427 -0
  260. data/generated/google/apis/storage_v1/service.rb +1920 -0
  261. data/generated/google/apis/tagmanager_v1.rb +52 -0
  262. data/generated/google/apis/tagmanager_v1/classes.rb +1226 -0
  263. data/generated/google/apis/tagmanager_v1/representations.rb +461 -0
  264. data/generated/google/apis/tagmanager_v1/service.rb +1978 -0
  265. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  266. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  267. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  268. data/generated/google/apis/taskqueue_v1beta2/service.rb +416 -0
  269. data/generated/google/apis/tasks_v1.rb +37 -0
  270. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  271. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  272. data/generated/google/apis/tasks_v1/service.rb +657 -0
  273. data/generated/google/apis/translate_v2.rb +31 -0
  274. data/generated/google/apis/translate_v2/classes.rb +168 -0
  275. data/generated/google/apis/translate_v2/representations.rb +109 -0
  276. data/generated/google/apis/translate_v2/service.rb +185 -0
  277. data/generated/google/apis/urlshortener_v1.rb +34 -0
  278. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  279. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  280. data/generated/google/apis/urlshortener_v1/service.rb +179 -0
  281. data/generated/google/apis/webmasters_v3.rb +37 -0
  282. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  283. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  284. data/generated/google/apis/webmasters_v3/service.rb +587 -0
  285. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  286. data/generated/google/apis/youtube_analytics_v1/classes.rb +540 -0
  287. data/generated/google/apis/youtube_analytics_v1/representations.rb +242 -0
  288. data/generated/google/apis/youtube_analytics_v1/service.rb +567 -0
  289. data/generated/google/apis/youtube_v3.rb +49 -0
  290. data/generated/google/apis/youtube_v3/classes.rb +7225 -0
  291. data/generated/google/apis/youtube_v3/representations.rb +2529 -0
  292. data/generated/google/apis/youtube_v3/service.rb +4051 -0
  293. data/google-api-client.gemspec +27 -39
  294. data/lib/google/api_client/auth/storage.rb +3 -2
  295. data/lib/google/api_client/auth/storages/file_store.rb +1 -3
  296. data/lib/google/api_client/auth/storages/redis_store.rb +6 -2
  297. data/lib/google/apis.rb +48 -0
  298. data/lib/google/apis/core/api_command.rb +128 -0
  299. data/lib/google/apis/core/base_service.rb +314 -0
  300. data/lib/google/apis/core/batch.rb +222 -0
  301. data/lib/google/apis/core/download.rb +94 -0
  302. data/lib/google/apis/core/hashable.rb +44 -0
  303. data/lib/google/apis/core/http_command.rb +275 -0
  304. data/lib/google/apis/core/json_representation.rb +122 -0
  305. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  306. data/lib/google/apis/core/multipart.rb +173 -0
  307. data/lib/google/apis/core/upload.rb +275 -0
  308. data/lib/google/{api_client → apis}/errors.rb +32 -28
  309. data/lib/google/apis/generator.rb +70 -0
  310. data/lib/google/apis/generator/annotator.rb +271 -0
  311. data/lib/google/apis/generator/helpers.rb +74 -0
  312. data/lib/google/apis/generator/model.rb +130 -0
  313. data/lib/google/apis/generator/template.rb +124 -0
  314. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  315. data/lib/google/apis/generator/templates/_method.tmpl +90 -0
  316. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  317. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  318. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  319. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  320. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  321. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  322. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  323. data/lib/google/apis/options.rb +79 -0
  324. data/lib/google/apis/version.rb +39 -0
  325. data/rakelib/metrics.rake +22 -0
  326. data/rakelib/rubocop.rake +10 -0
  327. data/rakelib/spec.rake +11 -0
  328. data/rakelib/yard.rake +11 -0
  329. data/samples/calendar/calendar.rb +43 -0
  330. data/samples/drive/drive.rb +40 -0
  331. data/samples/pubsub/pubsub.rb +52 -0
  332. data/{lib/google/api_client/discovery.rb → samples/translate/translate.rb} +14 -5
  333. data/script/generate +79 -0
  334. data/script/package +8 -0
  335. data/script/release +15 -0
  336. data/spec/fixtures/files/api_names.yaml +3 -0
  337. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  338. data/spec/fixtures/files/client_secrets.json +1 -0
  339. data/spec/fixtures/files/test.blah +1 -0
  340. data/spec/fixtures/files/test.txt +1 -0
  341. data/spec/fixtures/files/test_api.json +440 -0
  342. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  343. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  344. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  345. data/spec/google/apis/core/api_command_spec.rb +170 -0
  346. data/spec/google/apis/core/batch_spec.rb +128 -0
  347. data/spec/google/apis/core/download_spec.rb +90 -0
  348. data/spec/google/apis/core/hashable_spec.rb +60 -0
  349. data/spec/google/apis/core/http_command_spec.rb +238 -0
  350. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  351. data/spec/google/apis/core/service_spec.rb +247 -0
  352. data/spec/google/apis/core/upload_spec.rb +238 -0
  353. data/{lib/google/api_client/service_account.rb → spec/google/apis/generated_spec.rb} +14 -8
  354. data/spec/google/apis/generator/generator_spec.rb +272 -0
  355. data/spec/google/apis/logging_spec.rb +45 -0
  356. data/spec/google/apis/options_spec.rb +40 -0
  357. data/spec/integration_tests/drive_spec.rb +35 -0
  358. data/spec/integration_tests/pubsub_spec.rb +48 -0
  359. data/spec/integration_tests/url_shortener_spec.rb +31 -0
  360. data/spec/spec_helper.rb +102 -46
  361. metadata +433 -178
  362. data/lib/compat/multi_json.rb +0 -19
  363. data/lib/google/api_client.rb +0 -750
  364. data/lib/google/api_client/auth/file_storage.rb +0 -59
  365. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  366. data/lib/google/api_client/auth/key_utils.rb +0 -93
  367. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  368. data/lib/google/api_client/batch.rb +0 -326
  369. data/lib/google/api_client/charset.rb +0 -33
  370. data/lib/google/api_client/discovery/api.rb +0 -310
  371. data/lib/google/api_client/discovery/media.rb +0 -77
  372. data/lib/google/api_client/discovery/method.rb +0 -363
  373. data/lib/google/api_client/discovery/resource.rb +0 -156
  374. data/lib/google/api_client/discovery/schema.rb +0 -117
  375. data/lib/google/api_client/environment.rb +0 -42
  376. data/lib/google/api_client/gzip.rb +0 -28
  377. data/lib/google/api_client/logging.rb +0 -32
  378. data/lib/google/api_client/media.rb +0 -259
  379. data/lib/google/api_client/railtie.rb +0 -18
  380. data/lib/google/api_client/request.rb +0 -350
  381. data/lib/google/api_client/result.rb +0 -255
  382. data/lib/google/api_client/service.rb +0 -233
  383. data/lib/google/api_client/service/batch.rb +0 -110
  384. data/lib/google/api_client/service/request.rb +0 -144
  385. data/lib/google/api_client/service/resource.rb +0 -40
  386. data/lib/google/api_client/service/result.rb +0 -162
  387. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  388. data/lib/google/api_client/service/stub_generator.rb +0 -61
  389. data/spec/google/api_client/batch_spec.rb +0 -248
  390. data/spec/google/api_client/discovery_spec.rb +0 -708
  391. data/spec/google/api_client/gzip_spec.rb +0 -98
  392. data/spec/google/api_client/media_spec.rb +0 -178
  393. data/spec/google/api_client/result_spec.rb +0 -207
  394. data/spec/google/api_client/service_account_spec.rb +0 -169
  395. data/spec/google/api_client/service_spec.rb +0 -618
  396. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  397. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,43 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/plus_v1/service.rb'
16
+ require 'google/apis/plus_v1/classes.rb'
17
+ require 'google/apis/plus_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google+ API
22
+ #
23
+ # The Google+ API enables developers to build on top of the Google+ platform.
24
+ #
25
+ # @see https://developers.google.com/+/api/
26
+ module PlusV1
27
+ VERSION = 'V1'
28
+ REVISION = '20150622'
29
+
30
+ # Know your basic profile info and list of people in your circles.
31
+ AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
32
+
33
+ # Know who you are on Google
34
+ AUTH_PLUS_ME = 'https://www.googleapis.com/auth/plus.me'
35
+
36
+ # View your email address
37
+ AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
38
+
39
+ # View your basic profile info
40
+ AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,2384 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module PlusV1
24
+
25
+ #
26
+ class Acl
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Description of the access granted, suitable for display.
30
+ # Corresponds to the JSON property `description`
31
+ # @return [String]
32
+ attr_accessor :description
33
+
34
+ # The list of access entries.
35
+ # Corresponds to the JSON property `items`
36
+ # @return [Array<Google::Apis::PlusV1::PlusAclentryResource>]
37
+ attr_accessor :items
38
+
39
+ # Identifies this resource as a collection of access controls. Value: "plus#acl".
40
+ # Corresponds to the JSON property `kind`
41
+ # @return [String]
42
+ attr_accessor :kind
43
+
44
+ def initialize(**args)
45
+ update!(**args)
46
+ end
47
+
48
+ # Update properties of this object
49
+ def update!(**args)
50
+ @description = args[:description] unless args[:description].nil?
51
+ @items = args[:items] unless args[:items].nil?
52
+ @kind = args[:kind] unless args[:kind].nil?
53
+ end
54
+ end
55
+
56
+ #
57
+ class Activity
58
+ include Google::Apis::Core::Hashable
59
+
60
+ # Identifies who has access to see this activity.
61
+ # Corresponds to the JSON property `access`
62
+ # @return [Google::Apis::PlusV1::Acl]
63
+ attr_accessor :access
64
+
65
+ # The person who performed this activity.
66
+ # Corresponds to the JSON property `actor`
67
+ # @return [Google::Apis::PlusV1::Activity::Actor]
68
+ attr_accessor :actor
69
+
70
+ # Street address where this activity occurred.
71
+ # Corresponds to the JSON property `address`
72
+ # @return [String]
73
+ attr_accessor :address
74
+
75
+ # Additional content added by the person who shared this activity, applicable
76
+ # only when resharing an activity.
77
+ # Corresponds to the JSON property `annotation`
78
+ # @return [String]
79
+ attr_accessor :annotation
80
+
81
+ # If this activity is a crosspost from another system, this property specifies
82
+ # the ID of the original activity.
83
+ # Corresponds to the JSON property `crosspostSource`
84
+ # @return [String]
85
+ attr_accessor :crosspost_source
86
+
87
+ # ETag of this response for caching purposes.
88
+ # Corresponds to the JSON property `etag`
89
+ # @return [String]
90
+ attr_accessor :etag
91
+
92
+ # Latitude and longitude where this activity occurred. Format is latitude
93
+ # followed by longitude, space separated.
94
+ # Corresponds to the JSON property `geocode`
95
+ # @return [String]
96
+ attr_accessor :geocode
97
+
98
+ # The ID of this activity.
99
+ # Corresponds to the JSON property `id`
100
+ # @return [String]
101
+ attr_accessor :id
102
+
103
+ # Identifies this resource as an activity. Value: "plus#activity".
104
+ # Corresponds to the JSON property `kind`
105
+ # @return [String]
106
+ attr_accessor :kind
107
+
108
+ # The location where this activity occurred.
109
+ # Corresponds to the JSON property `location`
110
+ # @return [Google::Apis::PlusV1::Place]
111
+ attr_accessor :location
112
+
113
+ # The object of this activity.
114
+ # Corresponds to the JSON property `object`
115
+ # @return [Google::Apis::PlusV1::Activity::Object]
116
+ attr_accessor :object
117
+
118
+ # ID of the place where this activity occurred.
119
+ # Corresponds to the JSON property `placeId`
120
+ # @return [String]
121
+ attr_accessor :place_id
122
+
123
+ # Name of the place where this activity occurred.
124
+ # Corresponds to the JSON property `placeName`
125
+ # @return [String]
126
+ attr_accessor :place_name
127
+
128
+ # The service provider that initially published this activity.
129
+ # Corresponds to the JSON property `provider`
130
+ # @return [Google::Apis::PlusV1::Activity::Provider]
131
+ attr_accessor :provider
132
+
133
+ # The time at which this activity was initially published. Formatted as an RFC
134
+ # 3339 timestamp.
135
+ # Corresponds to the JSON property `published`
136
+ # @return [DateTime]
137
+ attr_accessor :published
138
+
139
+ # Radius, in meters, of the region where this activity occurred, centered at the
140
+ # latitude and longitude identified in geocode.
141
+ # Corresponds to the JSON property `radius`
142
+ # @return [String]
143
+ attr_accessor :radius
144
+
145
+ # Title of this activity.
146
+ # Corresponds to the JSON property `title`
147
+ # @return [String]
148
+ attr_accessor :title
149
+
150
+ # The time at which this activity was last updated. Formatted as an RFC 3339
151
+ # timestamp.
152
+ # Corresponds to the JSON property `updated`
153
+ # @return [DateTime]
154
+ attr_accessor :updated
155
+
156
+ # The link to this activity.
157
+ # Corresponds to the JSON property `url`
158
+ # @return [String]
159
+ attr_accessor :url
160
+
161
+ # This activity's verb, which indicates the action that was performed. Possible
162
+ # values include, but are not limited to, the following values:
163
+ # - "post" - Publish content to the stream.
164
+ # - "share" - Reshare an activity.
165
+ # Corresponds to the JSON property `verb`
166
+ # @return [String]
167
+ attr_accessor :verb
168
+
169
+ def initialize(**args)
170
+ update!(**args)
171
+ end
172
+
173
+ # Update properties of this object
174
+ def update!(**args)
175
+ @access = args[:access] unless args[:access].nil?
176
+ @actor = args[:actor] unless args[:actor].nil?
177
+ @address = args[:address] unless args[:address].nil?
178
+ @annotation = args[:annotation] unless args[:annotation].nil?
179
+ @crosspost_source = args[:crosspost_source] unless args[:crosspost_source].nil?
180
+ @etag = args[:etag] unless args[:etag].nil?
181
+ @geocode = args[:geocode] unless args[:geocode].nil?
182
+ @id = args[:id] unless args[:id].nil?
183
+ @kind = args[:kind] unless args[:kind].nil?
184
+ @location = args[:location] unless args[:location].nil?
185
+ @object = args[:object] unless args[:object].nil?
186
+ @place_id = args[:place_id] unless args[:place_id].nil?
187
+ @place_name = args[:place_name] unless args[:place_name].nil?
188
+ @provider = args[:provider] unless args[:provider].nil?
189
+ @published = args[:published] unless args[:published].nil?
190
+ @radius = args[:radius] unless args[:radius].nil?
191
+ @title = args[:title] unless args[:title].nil?
192
+ @updated = args[:updated] unless args[:updated].nil?
193
+ @url = args[:url] unless args[:url].nil?
194
+ @verb = args[:verb] unless args[:verb].nil?
195
+ end
196
+
197
+ # The person who performed this activity.
198
+ class Actor
199
+ include Google::Apis::Core::Hashable
200
+
201
+ # The name of the actor, suitable for display.
202
+ # Corresponds to the JSON property `displayName`
203
+ # @return [String]
204
+ attr_accessor :display_name
205
+
206
+ # The ID of the actor's Person resource.
207
+ # Corresponds to the JSON property `id`
208
+ # @return [String]
209
+ attr_accessor :id
210
+
211
+ # The image representation of the actor.
212
+ # Corresponds to the JSON property `image`
213
+ # @return [Google::Apis::PlusV1::Activity::Actor::Image]
214
+ attr_accessor :image
215
+
216
+ # An object representation of the individual components of name.
217
+ # Corresponds to the JSON property `name`
218
+ # @return [Google::Apis::PlusV1::Activity::Actor::Name]
219
+ attr_accessor :name
220
+
221
+ # The link to the actor's Google profile.
222
+ # Corresponds to the JSON property `url`
223
+ # @return [String]
224
+ attr_accessor :url
225
+
226
+ def initialize(**args)
227
+ update!(**args)
228
+ end
229
+
230
+ # Update properties of this object
231
+ def update!(**args)
232
+ @display_name = args[:display_name] unless args[:display_name].nil?
233
+ @id = args[:id] unless args[:id].nil?
234
+ @image = args[:image] unless args[:image].nil?
235
+ @name = args[:name] unless args[:name].nil?
236
+ @url = args[:url] unless args[:url].nil?
237
+ end
238
+
239
+ # The image representation of the actor.
240
+ class Image
241
+ include Google::Apis::Core::Hashable
242
+
243
+ # The URL of the actor's profile photo. To resize the image and crop it to a
244
+ # square, append the query string ?sz=x, where x is the dimension in pixels of
245
+ # each side.
246
+ # Corresponds to the JSON property `url`
247
+ # @return [String]
248
+ attr_accessor :url
249
+
250
+ def initialize(**args)
251
+ update!(**args)
252
+ end
253
+
254
+ # Update properties of this object
255
+ def update!(**args)
256
+ @url = args[:url] unless args[:url].nil?
257
+ end
258
+ end
259
+
260
+ # An object representation of the individual components of name.
261
+ class Name
262
+ include Google::Apis::Core::Hashable
263
+
264
+ # The family name ("last name") of the actor.
265
+ # Corresponds to the JSON property `familyName`
266
+ # @return [String]
267
+ attr_accessor :family_name
268
+
269
+ # The given name ("first name") of the actor.
270
+ # Corresponds to the JSON property `givenName`
271
+ # @return [String]
272
+ attr_accessor :given_name
273
+
274
+ def initialize(**args)
275
+ update!(**args)
276
+ end
277
+
278
+ # Update properties of this object
279
+ def update!(**args)
280
+ @family_name = args[:family_name] unless args[:family_name].nil?
281
+ @given_name = args[:given_name] unless args[:given_name].nil?
282
+ end
283
+ end
284
+ end
285
+
286
+ # The object of this activity.
287
+ class Object
288
+ include Google::Apis::Core::Hashable
289
+
290
+ # If this activity's object is itself another activity, such as when a person
291
+ # reshares an activity, this property specifies the original activity's actor.
292
+ # Corresponds to the JSON property `actor`
293
+ # @return [Google::Apis::PlusV1::Activity::Object::Actor]
294
+ attr_accessor :actor
295
+
296
+ # The media objects attached to this activity.
297
+ # Corresponds to the JSON property `attachments`
298
+ # @return [Array<Google::Apis::PlusV1::Activity::Object::Attachment>]
299
+ attr_accessor :attachments
300
+
301
+ # The HTML-formatted content, which is suitable for display.
302
+ # Corresponds to the JSON property `content`
303
+ # @return [String]
304
+ attr_accessor :content
305
+
306
+ # The ID of the object. When resharing an activity, this is the ID of the
307
+ # activity that is being reshared.
308
+ # Corresponds to the JSON property `id`
309
+ # @return [String]
310
+ attr_accessor :id
311
+
312
+ # The type of the object. Possible values include, but are not limited to, the
313
+ # following values:
314
+ # - "note" - Textual content.
315
+ # - "activity" - A Google+ activity.
316
+ # Corresponds to the JSON property `objectType`
317
+ # @return [String]
318
+ attr_accessor :object_type
319
+
320
+ # The content (text) as provided by the author, which is stored without any HTML
321
+ # formatting. When creating or updating an activity, this value must be supplied
322
+ # as plain text in the request.
323
+ # Corresponds to the JSON property `originalContent`
324
+ # @return [String]
325
+ attr_accessor :original_content
326
+
327
+ # People who +1'd this activity.
328
+ # Corresponds to the JSON property `plusoners`
329
+ # @return [Google::Apis::PlusV1::Activity::Object::Plusoners]
330
+ attr_accessor :plusoners
331
+
332
+ # Comments in reply to this activity.
333
+ # Corresponds to the JSON property `replies`
334
+ # @return [Google::Apis::PlusV1::Activity::Object::Replies]
335
+ attr_accessor :replies
336
+
337
+ # People who reshared this activity.
338
+ # Corresponds to the JSON property `resharers`
339
+ # @return [Google::Apis::PlusV1::Activity::Object::Resharers]
340
+ attr_accessor :resharers
341
+
342
+ # The URL that points to the linked resource.
343
+ # Corresponds to the JSON property `url`
344
+ # @return [String]
345
+ attr_accessor :url
346
+
347
+ def initialize(**args)
348
+ update!(**args)
349
+ end
350
+
351
+ # Update properties of this object
352
+ def update!(**args)
353
+ @actor = args[:actor] unless args[:actor].nil?
354
+ @attachments = args[:attachments] unless args[:attachments].nil?
355
+ @content = args[:content] unless args[:content].nil?
356
+ @id = args[:id] unless args[:id].nil?
357
+ @object_type = args[:object_type] unless args[:object_type].nil?
358
+ @original_content = args[:original_content] unless args[:original_content].nil?
359
+ @plusoners = args[:plusoners] unless args[:plusoners].nil?
360
+ @replies = args[:replies] unless args[:replies].nil?
361
+ @resharers = args[:resharers] unless args[:resharers].nil?
362
+ @url = args[:url] unless args[:url].nil?
363
+ end
364
+
365
+ # If this activity's object is itself another activity, such as when a person
366
+ # reshares an activity, this property specifies the original activity's actor.
367
+ class Actor
368
+ include Google::Apis::Core::Hashable
369
+
370
+ # The original actor's name, which is suitable for display.
371
+ # Corresponds to the JSON property `displayName`
372
+ # @return [String]
373
+ attr_accessor :display_name
374
+
375
+ # ID of the original actor.
376
+ # Corresponds to the JSON property `id`
377
+ # @return [String]
378
+ attr_accessor :id
379
+
380
+ # The image representation of the original actor.
381
+ # Corresponds to the JSON property `image`
382
+ # @return [Google::Apis::PlusV1::Activity::Object::Actor::Image]
383
+ attr_accessor :image
384
+
385
+ # A link to the original actor's Google profile.
386
+ # Corresponds to the JSON property `url`
387
+ # @return [String]
388
+ attr_accessor :url
389
+
390
+ def initialize(**args)
391
+ update!(**args)
392
+ end
393
+
394
+ # Update properties of this object
395
+ def update!(**args)
396
+ @display_name = args[:display_name] unless args[:display_name].nil?
397
+ @id = args[:id] unless args[:id].nil?
398
+ @image = args[:image] unless args[:image].nil?
399
+ @url = args[:url] unless args[:url].nil?
400
+ end
401
+
402
+ # The image representation of the original actor.
403
+ class Image
404
+ include Google::Apis::Core::Hashable
405
+
406
+ # A URL that points to a thumbnail photo of the original actor.
407
+ # Corresponds to the JSON property `url`
408
+ # @return [String]
409
+ attr_accessor :url
410
+
411
+ def initialize(**args)
412
+ update!(**args)
413
+ end
414
+
415
+ # Update properties of this object
416
+ def update!(**args)
417
+ @url = args[:url] unless args[:url].nil?
418
+ end
419
+ end
420
+ end
421
+
422
+ #
423
+ class Attachment
424
+ include Google::Apis::Core::Hashable
425
+
426
+ # If the attachment is an article, this property contains a snippet of text from
427
+ # the article. It can also include descriptions for other types.
428
+ # Corresponds to the JSON property `content`
429
+ # @return [String]
430
+ attr_accessor :content
431
+
432
+ # The title of the attachment, such as a photo caption or an article title.
433
+ # Corresponds to the JSON property `displayName`
434
+ # @return [String]
435
+ attr_accessor :display_name
436
+
437
+ # If the attachment is a video, the embeddable link.
438
+ # Corresponds to the JSON property `embed`
439
+ # @return [Google::Apis::PlusV1::Activity::Object::Attachment::Embed]
440
+ attr_accessor :embed
441
+
442
+ # The full image URL for photo attachments.
443
+ # Corresponds to the JSON property `fullImage`
444
+ # @return [Google::Apis::PlusV1::Activity::Object::Attachment::FullImage]
445
+ attr_accessor :full_image
446
+
447
+ # The ID of the attachment.
448
+ # Corresponds to the JSON property `id`
449
+ # @return [String]
450
+ attr_accessor :id
451
+
452
+ # The preview image for photos or videos.
453
+ # Corresponds to the JSON property `image`
454
+ # @return [Google::Apis::PlusV1::Activity::Object::Attachment::Image]
455
+ attr_accessor :image
456
+
457
+ # The type of media object. Possible values include, but are not limited to, the
458
+ # following values:
459
+ # - "photo" - A photo.
460
+ # - "album" - A photo album.
461
+ # - "video" - A video.
462
+ # - "article" - An article, specified by a link.
463
+ # Corresponds to the JSON property `objectType`
464
+ # @return [String]
465
+ attr_accessor :object_type
466
+
467
+ # If the attachment is an album, this property is a list of potential additional
468
+ # thumbnails from the album.
469
+ # Corresponds to the JSON property `thumbnails`
470
+ # @return [Array<Google::Apis::PlusV1::Activity::Object::Attachment::Thumbnail>]
471
+ attr_accessor :thumbnails
472
+
473
+ # The link to the attachment, which should be of type text/html.
474
+ # Corresponds to the JSON property `url`
475
+ # @return [String]
476
+ attr_accessor :url
477
+
478
+ def initialize(**args)
479
+ update!(**args)
480
+ end
481
+
482
+ # Update properties of this object
483
+ def update!(**args)
484
+ @content = args[:content] unless args[:content].nil?
485
+ @display_name = args[:display_name] unless args[:display_name].nil?
486
+ @embed = args[:embed] unless args[:embed].nil?
487
+ @full_image = args[:full_image] unless args[:full_image].nil?
488
+ @id = args[:id] unless args[:id].nil?
489
+ @image = args[:image] unless args[:image].nil?
490
+ @object_type = args[:object_type] unless args[:object_type].nil?
491
+ @thumbnails = args[:thumbnails] unless args[:thumbnails].nil?
492
+ @url = args[:url] unless args[:url].nil?
493
+ end
494
+
495
+ # If the attachment is a video, the embeddable link.
496
+ class Embed
497
+ include Google::Apis::Core::Hashable
498
+
499
+ # Media type of the link.
500
+ # Corresponds to the JSON property `type`
501
+ # @return [String]
502
+ attr_accessor :type
503
+
504
+ # URL of the link.
505
+ # Corresponds to the JSON property `url`
506
+ # @return [String]
507
+ attr_accessor :url
508
+
509
+ def initialize(**args)
510
+ update!(**args)
511
+ end
512
+
513
+ # Update properties of this object
514
+ def update!(**args)
515
+ @type = args[:type] unless args[:type].nil?
516
+ @url = args[:url] unless args[:url].nil?
517
+ end
518
+ end
519
+
520
+ # The full image URL for photo attachments.
521
+ class FullImage
522
+ include Google::Apis::Core::Hashable
523
+
524
+ # The height, in pixels, of the linked resource.
525
+ # Corresponds to the JSON property `height`
526
+ # @return [Fixnum]
527
+ attr_accessor :height
528
+
529
+ # Media type of the link.
530
+ # Corresponds to the JSON property `type`
531
+ # @return [String]
532
+ attr_accessor :type
533
+
534
+ # URL of the image.
535
+ # Corresponds to the JSON property `url`
536
+ # @return [String]
537
+ attr_accessor :url
538
+
539
+ # The width, in pixels, of the linked resource.
540
+ # Corresponds to the JSON property `width`
541
+ # @return [Fixnum]
542
+ attr_accessor :width
543
+
544
+ def initialize(**args)
545
+ update!(**args)
546
+ end
547
+
548
+ # Update properties of this object
549
+ def update!(**args)
550
+ @height = args[:height] unless args[:height].nil?
551
+ @type = args[:type] unless args[:type].nil?
552
+ @url = args[:url] unless args[:url].nil?
553
+ @width = args[:width] unless args[:width].nil?
554
+ end
555
+ end
556
+
557
+ # The preview image for photos or videos.
558
+ class Image
559
+ include Google::Apis::Core::Hashable
560
+
561
+ # The height, in pixels, of the linked resource.
562
+ # Corresponds to the JSON property `height`
563
+ # @return [Fixnum]
564
+ attr_accessor :height
565
+
566
+ # Media type of the link.
567
+ # Corresponds to the JSON property `type`
568
+ # @return [String]
569
+ attr_accessor :type
570
+
571
+ # Image URL.
572
+ # Corresponds to the JSON property `url`
573
+ # @return [String]
574
+ attr_accessor :url
575
+
576
+ # The width, in pixels, of the linked resource.
577
+ # Corresponds to the JSON property `width`
578
+ # @return [Fixnum]
579
+ attr_accessor :width
580
+
581
+ def initialize(**args)
582
+ update!(**args)
583
+ end
584
+
585
+ # Update properties of this object
586
+ def update!(**args)
587
+ @height = args[:height] unless args[:height].nil?
588
+ @type = args[:type] unless args[:type].nil?
589
+ @url = args[:url] unless args[:url].nil?
590
+ @width = args[:width] unless args[:width].nil?
591
+ end
592
+ end
593
+
594
+ #
595
+ class Thumbnail
596
+ include Google::Apis::Core::Hashable
597
+
598
+ # Potential name of the thumbnail.
599
+ # Corresponds to the JSON property `description`
600
+ # @return [String]
601
+ attr_accessor :description
602
+
603
+ # Image resource.
604
+ # Corresponds to the JSON property `image`
605
+ # @return [Google::Apis::PlusV1::Activity::Object::Attachment::Thumbnail::Image]
606
+ attr_accessor :image
607
+
608
+ # URL of the webpage containing the image.
609
+ # Corresponds to the JSON property `url`
610
+ # @return [String]
611
+ attr_accessor :url
612
+
613
+ def initialize(**args)
614
+ update!(**args)
615
+ end
616
+
617
+ # Update properties of this object
618
+ def update!(**args)
619
+ @description = args[:description] unless args[:description].nil?
620
+ @image = args[:image] unless args[:image].nil?
621
+ @url = args[:url] unless args[:url].nil?
622
+ end
623
+
624
+ # Image resource.
625
+ class Image
626
+ include Google::Apis::Core::Hashable
627
+
628
+ # The height, in pixels, of the linked resource.
629
+ # Corresponds to the JSON property `height`
630
+ # @return [Fixnum]
631
+ attr_accessor :height
632
+
633
+ # Media type of the link.
634
+ # Corresponds to the JSON property `type`
635
+ # @return [String]
636
+ attr_accessor :type
637
+
638
+ # Image url.
639
+ # Corresponds to the JSON property `url`
640
+ # @return [String]
641
+ attr_accessor :url
642
+
643
+ # The width, in pixels, of the linked resource.
644
+ # Corresponds to the JSON property `width`
645
+ # @return [Fixnum]
646
+ attr_accessor :width
647
+
648
+ def initialize(**args)
649
+ update!(**args)
650
+ end
651
+
652
+ # Update properties of this object
653
+ def update!(**args)
654
+ @height = args[:height] unless args[:height].nil?
655
+ @type = args[:type] unless args[:type].nil?
656
+ @url = args[:url] unless args[:url].nil?
657
+ @width = args[:width] unless args[:width].nil?
658
+ end
659
+ end
660
+ end
661
+ end
662
+
663
+ # People who +1'd this activity.
664
+ class Plusoners
665
+ include Google::Apis::Core::Hashable
666
+
667
+ # The URL for the collection of people who +1'd this activity.
668
+ # Corresponds to the JSON property `selfLink`
669
+ # @return [String]
670
+ attr_accessor :self_link
671
+
672
+ # Total number of people who +1'd this activity.
673
+ # Corresponds to the JSON property `totalItems`
674
+ # @return [Fixnum]
675
+ attr_accessor :total_items
676
+
677
+ def initialize(**args)
678
+ update!(**args)
679
+ end
680
+
681
+ # Update properties of this object
682
+ def update!(**args)
683
+ @self_link = args[:self_link] unless args[:self_link].nil?
684
+ @total_items = args[:total_items] unless args[:total_items].nil?
685
+ end
686
+ end
687
+
688
+ # Comments in reply to this activity.
689
+ class Replies
690
+ include Google::Apis::Core::Hashable
691
+
692
+ # The URL for the collection of comments in reply to this activity.
693
+ # Corresponds to the JSON property `selfLink`
694
+ # @return [String]
695
+ attr_accessor :self_link
696
+
697
+ # Total number of comments on this activity.
698
+ # Corresponds to the JSON property `totalItems`
699
+ # @return [Fixnum]
700
+ attr_accessor :total_items
701
+
702
+ def initialize(**args)
703
+ update!(**args)
704
+ end
705
+
706
+ # Update properties of this object
707
+ def update!(**args)
708
+ @self_link = args[:self_link] unless args[:self_link].nil?
709
+ @total_items = args[:total_items] unless args[:total_items].nil?
710
+ end
711
+ end
712
+
713
+ # People who reshared this activity.
714
+ class Resharers
715
+ include Google::Apis::Core::Hashable
716
+
717
+ # The URL for the collection of resharers.
718
+ # Corresponds to the JSON property `selfLink`
719
+ # @return [String]
720
+ attr_accessor :self_link
721
+
722
+ # Total number of people who reshared this activity.
723
+ # Corresponds to the JSON property `totalItems`
724
+ # @return [Fixnum]
725
+ attr_accessor :total_items
726
+
727
+ def initialize(**args)
728
+ update!(**args)
729
+ end
730
+
731
+ # Update properties of this object
732
+ def update!(**args)
733
+ @self_link = args[:self_link] unless args[:self_link].nil?
734
+ @total_items = args[:total_items] unless args[:total_items].nil?
735
+ end
736
+ end
737
+ end
738
+
739
+ # The service provider that initially published this activity.
740
+ class Provider
741
+ include Google::Apis::Core::Hashable
742
+
743
+ # Name of the service provider.
744
+ # Corresponds to the JSON property `title`
745
+ # @return [String]
746
+ attr_accessor :title
747
+
748
+ def initialize(**args)
749
+ update!(**args)
750
+ end
751
+
752
+ # Update properties of this object
753
+ def update!(**args)
754
+ @title = args[:title] unless args[:title].nil?
755
+ end
756
+ end
757
+ end
758
+
759
+ #
760
+ class ActivityFeed
761
+ include Google::Apis::Core::Hashable
762
+
763
+ # ETag of this response for caching purposes.
764
+ # Corresponds to the JSON property `etag`
765
+ # @return [String]
766
+ attr_accessor :etag
767
+
768
+ # The ID of this collection of activities. Deprecated.
769
+ # Corresponds to the JSON property `id`
770
+ # @return [String]
771
+ attr_accessor :id
772
+
773
+ # The activities in this page of results.
774
+ # Corresponds to the JSON property `items`
775
+ # @return [Array<Google::Apis::PlusV1::Activity>]
776
+ attr_accessor :items
777
+
778
+ # Identifies this resource as a collection of activities. Value: "plus#
779
+ # activityFeed".
780
+ # Corresponds to the JSON property `kind`
781
+ # @return [String]
782
+ attr_accessor :kind
783
+
784
+ # Link to the next page of activities.
785
+ # Corresponds to the JSON property `nextLink`
786
+ # @return [String]
787
+ attr_accessor :next_link
788
+
789
+ # The continuation token, which is used to page through large result sets.
790
+ # Provide this value in a subsequent request to return the next page of results.
791
+ # Corresponds to the JSON property `nextPageToken`
792
+ # @return [String]
793
+ attr_accessor :next_page_token
794
+
795
+ # Link to this activity resource.
796
+ # Corresponds to the JSON property `selfLink`
797
+ # @return [String]
798
+ attr_accessor :self_link
799
+
800
+ # The title of this collection of activities, which is a truncated portion of
801
+ # the content.
802
+ # Corresponds to the JSON property `title`
803
+ # @return [String]
804
+ attr_accessor :title
805
+
806
+ # The time at which this collection of activities was last updated. Formatted as
807
+ # an RFC 3339 timestamp.
808
+ # Corresponds to the JSON property `updated`
809
+ # @return [DateTime]
810
+ attr_accessor :updated
811
+
812
+ def initialize(**args)
813
+ update!(**args)
814
+ end
815
+
816
+ # Update properties of this object
817
+ def update!(**args)
818
+ @etag = args[:etag] unless args[:etag].nil?
819
+ @id = args[:id] unless args[:id].nil?
820
+ @items = args[:items] unless args[:items].nil?
821
+ @kind = args[:kind] unless args[:kind].nil?
822
+ @next_link = args[:next_link] unless args[:next_link].nil?
823
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
824
+ @self_link = args[:self_link] unless args[:self_link].nil?
825
+ @title = args[:title] unless args[:title].nil?
826
+ @updated = args[:updated] unless args[:updated].nil?
827
+ end
828
+ end
829
+
830
+ #
831
+ class Comment
832
+ include Google::Apis::Core::Hashable
833
+
834
+ # The person who posted this comment.
835
+ # Corresponds to the JSON property `actor`
836
+ # @return [Google::Apis::PlusV1::Comment::Actor]
837
+ attr_accessor :actor
838
+
839
+ # ETag of this response for caching purposes.
840
+ # Corresponds to the JSON property `etag`
841
+ # @return [String]
842
+ attr_accessor :etag
843
+
844
+ # The ID of this comment.
845
+ # Corresponds to the JSON property `id`
846
+ # @return [String]
847
+ attr_accessor :id
848
+
849
+ # The activity this comment replied to.
850
+ # Corresponds to the JSON property `inReplyTo`
851
+ # @return [Array<Google::Apis::PlusV1::Comment::InReplyTo>]
852
+ attr_accessor :in_reply_to
853
+
854
+ # Identifies this resource as a comment. Value: "plus#comment".
855
+ # Corresponds to the JSON property `kind`
856
+ # @return [String]
857
+ attr_accessor :kind
858
+
859
+ # The object of this comment.
860
+ # Corresponds to the JSON property `object`
861
+ # @return [Google::Apis::PlusV1::Comment::Object]
862
+ attr_accessor :object
863
+
864
+ # People who +1'd this comment.
865
+ # Corresponds to the JSON property `plusoners`
866
+ # @return [Google::Apis::PlusV1::Comment::Plusoners]
867
+ attr_accessor :plusoners
868
+
869
+ # The time at which this comment was initially published. Formatted as an RFC
870
+ # 3339 timestamp.
871
+ # Corresponds to the JSON property `published`
872
+ # @return [DateTime]
873
+ attr_accessor :published
874
+
875
+ # Link to this comment resource.
876
+ # Corresponds to the JSON property `selfLink`
877
+ # @return [String]
878
+ attr_accessor :self_link
879
+
880
+ # The time at which this comment was last updated. Formatted as an RFC 3339
881
+ # timestamp.
882
+ # Corresponds to the JSON property `updated`
883
+ # @return [DateTime]
884
+ attr_accessor :updated
885
+
886
+ # This comment's verb, indicating what action was performed. Possible values are:
887
+ #
888
+ # - "post" - Publish content to the stream.
889
+ # Corresponds to the JSON property `verb`
890
+ # @return [String]
891
+ attr_accessor :verb
892
+
893
+ def initialize(**args)
894
+ update!(**args)
895
+ end
896
+
897
+ # Update properties of this object
898
+ def update!(**args)
899
+ @actor = args[:actor] unless args[:actor].nil?
900
+ @etag = args[:etag] unless args[:etag].nil?
901
+ @id = args[:id] unless args[:id].nil?
902
+ @in_reply_to = args[:in_reply_to] unless args[:in_reply_to].nil?
903
+ @kind = args[:kind] unless args[:kind].nil?
904
+ @object = args[:object] unless args[:object].nil?
905
+ @plusoners = args[:plusoners] unless args[:plusoners].nil?
906
+ @published = args[:published] unless args[:published].nil?
907
+ @self_link = args[:self_link] unless args[:self_link].nil?
908
+ @updated = args[:updated] unless args[:updated].nil?
909
+ @verb = args[:verb] unless args[:verb].nil?
910
+ end
911
+
912
+ # The person who posted this comment.
913
+ class Actor
914
+ include Google::Apis::Core::Hashable
915
+
916
+ # The name of this actor, suitable for display.
917
+ # Corresponds to the JSON property `displayName`
918
+ # @return [String]
919
+ attr_accessor :display_name
920
+
921
+ # The ID of the actor.
922
+ # Corresponds to the JSON property `id`
923
+ # @return [String]
924
+ attr_accessor :id
925
+
926
+ # The image representation of this actor.
927
+ # Corresponds to the JSON property `image`
928
+ # @return [Google::Apis::PlusV1::Comment::Actor::Image]
929
+ attr_accessor :image
930
+
931
+ # A link to the Person resource for this actor.
932
+ # Corresponds to the JSON property `url`
933
+ # @return [String]
934
+ attr_accessor :url
935
+
936
+ def initialize(**args)
937
+ update!(**args)
938
+ end
939
+
940
+ # Update properties of this object
941
+ def update!(**args)
942
+ @display_name = args[:display_name] unless args[:display_name].nil?
943
+ @id = args[:id] unless args[:id].nil?
944
+ @image = args[:image] unless args[:image].nil?
945
+ @url = args[:url] unless args[:url].nil?
946
+ end
947
+
948
+ # The image representation of this actor.
949
+ class Image
950
+ include Google::Apis::Core::Hashable
951
+
952
+ # The URL of the actor's profile photo. To resize the image and crop it to a
953
+ # square, append the query string ?sz=x, where x is the dimension in pixels of
954
+ # each side.
955
+ # Corresponds to the JSON property `url`
956
+ # @return [String]
957
+ attr_accessor :url
958
+
959
+ def initialize(**args)
960
+ update!(**args)
961
+ end
962
+
963
+ # Update properties of this object
964
+ def update!(**args)
965
+ @url = args[:url] unless args[:url].nil?
966
+ end
967
+ end
968
+ end
969
+
970
+ #
971
+ class InReplyTo
972
+ include Google::Apis::Core::Hashable
973
+
974
+ # The ID of the activity.
975
+ # Corresponds to the JSON property `id`
976
+ # @return [String]
977
+ attr_accessor :id
978
+
979
+ # The URL of the activity.
980
+ # Corresponds to the JSON property `url`
981
+ # @return [String]
982
+ attr_accessor :url
983
+
984
+ def initialize(**args)
985
+ update!(**args)
986
+ end
987
+
988
+ # Update properties of this object
989
+ def update!(**args)
990
+ @id = args[:id] unless args[:id].nil?
991
+ @url = args[:url] unless args[:url].nil?
992
+ end
993
+ end
994
+
995
+ # The object of this comment.
996
+ class Object
997
+ include Google::Apis::Core::Hashable
998
+
999
+ # The HTML-formatted content, suitable for display.
1000
+ # Corresponds to the JSON property `content`
1001
+ # @return [String]
1002
+ attr_accessor :content
1003
+
1004
+ # The object type of this comment. Possible values are:
1005
+ # - "comment" - A comment in reply to an activity.
1006
+ # Corresponds to the JSON property `objectType`
1007
+ # @return [String]
1008
+ attr_accessor :object_type
1009
+
1010
+ # The content (text) as provided by the author, stored without any HTML
1011
+ # formatting. When creating or updating a comment, this value must be supplied
1012
+ # as plain text in the request.
1013
+ # Corresponds to the JSON property `originalContent`
1014
+ # @return [String]
1015
+ attr_accessor :original_content
1016
+
1017
+ def initialize(**args)
1018
+ update!(**args)
1019
+ end
1020
+
1021
+ # Update properties of this object
1022
+ def update!(**args)
1023
+ @content = args[:content] unless args[:content].nil?
1024
+ @object_type = args[:object_type] unless args[:object_type].nil?
1025
+ @original_content = args[:original_content] unless args[:original_content].nil?
1026
+ end
1027
+ end
1028
+
1029
+ # People who +1'd this comment.
1030
+ class Plusoners
1031
+ include Google::Apis::Core::Hashable
1032
+
1033
+ # Total number of people who +1'd this comment.
1034
+ # Corresponds to the JSON property `totalItems`
1035
+ # @return [Fixnum]
1036
+ attr_accessor :total_items
1037
+
1038
+ def initialize(**args)
1039
+ update!(**args)
1040
+ end
1041
+
1042
+ # Update properties of this object
1043
+ def update!(**args)
1044
+ @total_items = args[:total_items] unless args[:total_items].nil?
1045
+ end
1046
+ end
1047
+ end
1048
+
1049
+ #
1050
+ class CommentFeed
1051
+ include Google::Apis::Core::Hashable
1052
+
1053
+ # ETag of this response for caching purposes.
1054
+ # Corresponds to the JSON property `etag`
1055
+ # @return [String]
1056
+ attr_accessor :etag
1057
+
1058
+ # The ID of this collection of comments.
1059
+ # Corresponds to the JSON property `id`
1060
+ # @return [String]
1061
+ attr_accessor :id
1062
+
1063
+ # The comments in this page of results.
1064
+ # Corresponds to the JSON property `items`
1065
+ # @return [Array<Google::Apis::PlusV1::Comment>]
1066
+ attr_accessor :items
1067
+
1068
+ # Identifies this resource as a collection of comments. Value: "plus#commentFeed"
1069
+ # .
1070
+ # Corresponds to the JSON property `kind`
1071
+ # @return [String]
1072
+ attr_accessor :kind
1073
+
1074
+ # Link to the next page of activities.
1075
+ # Corresponds to the JSON property `nextLink`
1076
+ # @return [String]
1077
+ attr_accessor :next_link
1078
+
1079
+ # The continuation token, which is used to page through large result sets.
1080
+ # Provide this value in a subsequent request to return the next page of results.
1081
+ # Corresponds to the JSON property `nextPageToken`
1082
+ # @return [String]
1083
+ attr_accessor :next_page_token
1084
+
1085
+ # The title of this collection of comments.
1086
+ # Corresponds to the JSON property `title`
1087
+ # @return [String]
1088
+ attr_accessor :title
1089
+
1090
+ # The time at which this collection of comments was last updated. Formatted as
1091
+ # an RFC 3339 timestamp.
1092
+ # Corresponds to the JSON property `updated`
1093
+ # @return [DateTime]
1094
+ attr_accessor :updated
1095
+
1096
+ def initialize(**args)
1097
+ update!(**args)
1098
+ end
1099
+
1100
+ # Update properties of this object
1101
+ def update!(**args)
1102
+ @etag = args[:etag] unless args[:etag].nil?
1103
+ @id = args[:id] unless args[:id].nil?
1104
+ @items = args[:items] unless args[:items].nil?
1105
+ @kind = args[:kind] unless args[:kind].nil?
1106
+ @next_link = args[:next_link] unless args[:next_link].nil?
1107
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1108
+ @title = args[:title] unless args[:title].nil?
1109
+ @updated = args[:updated] unless args[:updated].nil?
1110
+ end
1111
+ end
1112
+
1113
+ #
1114
+ class ItemScope
1115
+ include Google::Apis::Core::Hashable
1116
+
1117
+ # The subject matter of the content.
1118
+ # Corresponds to the JSON property `about`
1119
+ # @return [Google::Apis::PlusV1::ItemScope]
1120
+ attr_accessor :about
1121
+
1122
+ # An additional name for a Person, can be used for a middle name.
1123
+ # Corresponds to the JSON property `additionalName`
1124
+ # @return [Array<String>]
1125
+ attr_accessor :additional_name
1126
+
1127
+ # Postal address.
1128
+ # Corresponds to the JSON property `address`
1129
+ # @return [Google::Apis::PlusV1::ItemScope]
1130
+ attr_accessor :address
1131
+
1132
+ # Address country.
1133
+ # Corresponds to the JSON property `addressCountry`
1134
+ # @return [String]
1135
+ attr_accessor :address_country
1136
+
1137
+ # Address locality.
1138
+ # Corresponds to the JSON property `addressLocality`
1139
+ # @return [String]
1140
+ attr_accessor :address_locality
1141
+
1142
+ # Address region.
1143
+ # Corresponds to the JSON property `addressRegion`
1144
+ # @return [String]
1145
+ attr_accessor :address_region
1146
+
1147
+ # The encoding.
1148
+ # Corresponds to the JSON property `associated_media`
1149
+ # @return [Array<Google::Apis::PlusV1::ItemScope>]
1150
+ attr_accessor :associated_media
1151
+
1152
+ # Number of attendees.
1153
+ # Corresponds to the JSON property `attendeeCount`
1154
+ # @return [Fixnum]
1155
+ attr_accessor :attendee_count
1156
+
1157
+ # A person attending the event.
1158
+ # Corresponds to the JSON property `attendees`
1159
+ # @return [Array<Google::Apis::PlusV1::ItemScope>]
1160
+ attr_accessor :attendees
1161
+
1162
+ # From http://schema.org/MusicRecording, the audio file.
1163
+ # Corresponds to the JSON property `audio`
1164
+ # @return [Google::Apis::PlusV1::ItemScope]
1165
+ attr_accessor :audio
1166
+
1167
+ # The person or persons who created this result. In the example of restaurant
1168
+ # reviews, this might be the reviewer's name.
1169
+ # Corresponds to the JSON property `author`
1170
+ # @return [Array<Google::Apis::PlusV1::ItemScope>]
1171
+ attr_accessor :author
1172
+
1173
+ # Best possible rating value that a result might obtain. This property defines
1174
+ # the upper bound for the ratingValue. For example, you might have a 5 star
1175
+ # rating scale, you would provide 5 as the value for this property.
1176
+ # Corresponds to the JSON property `bestRating`
1177
+ # @return [String]
1178
+ attr_accessor :best_rating
1179
+
1180
+ # Date of birth.
1181
+ # Corresponds to the JSON property `birthDate`
1182
+ # @return [String]
1183
+ attr_accessor :birth_date
1184
+
1185
+ # From http://schema.org/MusicRecording, the artist that performed this
1186
+ # recording.
1187
+ # Corresponds to the JSON property `byArtist`
1188
+ # @return [Google::Apis::PlusV1::ItemScope]
1189
+ attr_accessor :by_artist
1190
+
1191
+ # The caption for this object.
1192
+ # Corresponds to the JSON property `caption`
1193
+ # @return [String]
1194
+ attr_accessor :caption
1195
+
1196
+ # File size in (mega/kilo) bytes.
1197
+ # Corresponds to the JSON property `contentSize`
1198
+ # @return [String]
1199
+ attr_accessor :content_size
1200
+
1201
+ # Actual bytes of the media object, for example the image file or video file.
1202
+ # Corresponds to the JSON property `contentUrl`
1203
+ # @return [String]
1204
+ attr_accessor :content_url
1205
+
1206
+ # A list of contributors to this result.
1207
+ # Corresponds to the JSON property `contributor`
1208
+ # @return [Array<Google::Apis::PlusV1::ItemScope>]
1209
+ attr_accessor :contributor
1210
+
1211
+ # The date the result was created such as the date that a review was first
1212
+ # created.
1213
+ # Corresponds to the JSON property `dateCreated`
1214
+ # @return [String]
1215
+ attr_accessor :date_created
1216
+
1217
+ # The date the result was last modified such as the date that a review was last
1218
+ # edited.
1219
+ # Corresponds to the JSON property `dateModified`
1220
+ # @return [String]
1221
+ attr_accessor :date_modified
1222
+
1223
+ # The initial date that the result was published. For example, a user writes a
1224
+ # comment on a blog, which has a result.dateCreated of when they submit it. If
1225
+ # the blog users comment moderation, the result.datePublished value would match
1226
+ # the date when the owner approved the message.
1227
+ # Corresponds to the JSON property `datePublished`
1228
+ # @return [String]
1229
+ attr_accessor :date_published
1230
+
1231
+ # The string that describes the content of the result.
1232
+ # Corresponds to the JSON property `description`
1233
+ # @return [String]
1234
+ attr_accessor :description
1235
+
1236
+ # The duration of the item (movie, audio recording, event, etc.) in ISO 8601
1237
+ # date format.
1238
+ # Corresponds to the JSON property `duration`
1239
+ # @return [String]
1240
+ attr_accessor :duration
1241
+
1242
+ # A URL pointing to a player for a specific video. In general, this is the
1243
+ # information in the src element of an embed tag and should not be the same as
1244
+ # the content of the loc tag.
1245
+ # Corresponds to the JSON property `embedUrl`
1246
+ # @return [String]
1247
+ attr_accessor :embed_url
1248
+
1249
+ # The end date and time of the event (in ISO 8601 date format).
1250
+ # Corresponds to the JSON property `endDate`
1251
+ # @return [String]
1252
+ attr_accessor :end_date
1253
+
1254
+ # Family name. This property can be used with givenName instead of the name
1255
+ # property.
1256
+ # Corresponds to the JSON property `familyName`
1257
+ # @return [String]
1258
+ attr_accessor :family_name
1259
+
1260
+ # Gender of the person.
1261
+ # Corresponds to the JSON property `gender`
1262
+ # @return [String]
1263
+ attr_accessor :gender
1264
+
1265
+ # Geo coordinates.
1266
+ # Corresponds to the JSON property `geo`
1267
+ # @return [Google::Apis::PlusV1::ItemScope]
1268
+ attr_accessor :geo
1269
+
1270
+ # Given name. This property can be used with familyName instead of the name
1271
+ # property.
1272
+ # Corresponds to the JSON property `givenName`
1273
+ # @return [String]
1274
+ attr_accessor :given_name
1275
+
1276
+ # The height of the media object.
1277
+ # Corresponds to the JSON property `height`
1278
+ # @return [String]
1279
+ attr_accessor :height
1280
+
1281
+ # An identifier for the object. Your app can choose how to identify objects. The
1282
+ # object.id is required if you are writing an action that does not have a
1283
+ # corresponding web page or object.url property.
1284
+ # Corresponds to the JSON property `id`
1285
+ # @return [String]
1286
+ attr_accessor :id
1287
+
1288
+ # A URL to the image that represents this result. For example, if a user writes
1289
+ # a review of a restaurant and attaches a photo of their meal, you might use
1290
+ # that photo as the result.image.
1291
+ # Corresponds to the JSON property `image`
1292
+ # @return [String]
1293
+ attr_accessor :image
1294
+
1295
+ # From http://schema.org/MusicRecording, which album a song is in.
1296
+ # Corresponds to the JSON property `inAlbum`
1297
+ # @return [Google::Apis::PlusV1::ItemScope]
1298
+ attr_accessor :in_album
1299
+
1300
+ # Identifies this resource as an itemScope.
1301
+ # Corresponds to the JSON property `kind`
1302
+ # @return [String]
1303
+ attr_accessor :kind
1304
+
1305
+ # Latitude.
1306
+ # Corresponds to the JSON property `latitude`
1307
+ # @return [Float]
1308
+ attr_accessor :latitude
1309
+
1310
+ # The location of the event or organization.
1311
+ # Corresponds to the JSON property `location`
1312
+ # @return [Google::Apis::PlusV1::ItemScope]
1313
+ attr_accessor :location
1314
+
1315
+ # Longitude.
1316
+ # Corresponds to the JSON property `longitude`
1317
+ # @return [Float]
1318
+ attr_accessor :longitude
1319
+
1320
+ # The name of the result. In the example of a restaurant review, this might be
1321
+ # the summary the user gave their review such as "Great ambiance, but overpriced.
1322
+ # "
1323
+ # Corresponds to the JSON property `name`
1324
+ # @return [String]
1325
+ attr_accessor :name
1326
+
1327
+ # Property of http://schema.org/TVEpisode indicating which series the episode
1328
+ # belongs to.
1329
+ # Corresponds to the JSON property `partOfTVSeries`
1330
+ # @return [Google::Apis::PlusV1::ItemScope]
1331
+ attr_accessor :part_of_tv_series
1332
+
1333
+ # The main performer or performers of the event-for example, a presenter,
1334
+ # musician, or actor.
1335
+ # Corresponds to the JSON property `performers`
1336
+ # @return [Array<Google::Apis::PlusV1::ItemScope>]
1337
+ attr_accessor :performers
1338
+
1339
+ # Player type that is required. For example: Flash or Silverlight.
1340
+ # Corresponds to the JSON property `playerType`
1341
+ # @return [String]
1342
+ attr_accessor :player_type
1343
+
1344
+ # Post office box number.
1345
+ # Corresponds to the JSON property `postOfficeBoxNumber`
1346
+ # @return [String]
1347
+ attr_accessor :post_office_box_number
1348
+
1349
+ # Postal code.
1350
+ # Corresponds to the JSON property `postalCode`
1351
+ # @return [String]
1352
+ attr_accessor :postal_code
1353
+
1354
+ # Rating value.
1355
+ # Corresponds to the JSON property `ratingValue`
1356
+ # @return [String]
1357
+ attr_accessor :rating_value
1358
+
1359
+ # Review rating.
1360
+ # Corresponds to the JSON property `reviewRating`
1361
+ # @return [Google::Apis::PlusV1::ItemScope]
1362
+ attr_accessor :review_rating
1363
+
1364
+ # The start date and time of the event (in ISO 8601 date format).
1365
+ # Corresponds to the JSON property `startDate`
1366
+ # @return [String]
1367
+ attr_accessor :start_date
1368
+
1369
+ # Street address.
1370
+ # Corresponds to the JSON property `streetAddress`
1371
+ # @return [String]
1372
+ attr_accessor :street_address
1373
+
1374
+ # The text that is the result of the app activity. For example, if a user leaves
1375
+ # a review of a restaurant, this might be the text of the review.
1376
+ # Corresponds to the JSON property `text`
1377
+ # @return [String]
1378
+ attr_accessor :text
1379
+
1380
+ # Thumbnail image for an image or video.
1381
+ # Corresponds to the JSON property `thumbnail`
1382
+ # @return [Google::Apis::PlusV1::ItemScope]
1383
+ attr_accessor :thumbnail
1384
+
1385
+ # A URL to a thumbnail image that represents this result.
1386
+ # Corresponds to the JSON property `thumbnailUrl`
1387
+ # @return [String]
1388
+ attr_accessor :thumbnail_url
1389
+
1390
+ # The exchange traded instrument associated with a Corporation object. The
1391
+ # tickerSymbol is expressed as an exchange and an instrument name separated by a
1392
+ # space character. For the exchange component of the tickerSymbol attribute, we
1393
+ # recommend using the controlled vocabulary of Market Identifier Codes (MIC)
1394
+ # specified in ISO15022.
1395
+ # Corresponds to the JSON property `tickerSymbol`
1396
+ # @return [String]
1397
+ attr_accessor :ticker_symbol
1398
+
1399
+ # The schema.org URL that best describes the referenced object and matches the
1400
+ # type of moment.
1401
+ # Corresponds to the JSON property `type`
1402
+ # @return [String]
1403
+ attr_accessor :type
1404
+
1405
+ # The URL that points to the result object. For example, a permalink directly to
1406
+ # a restaurant reviewer's comment.
1407
+ # Corresponds to the JSON property `url`
1408
+ # @return [String]
1409
+ attr_accessor :url
1410
+
1411
+ # The width of the media object.
1412
+ # Corresponds to the JSON property `width`
1413
+ # @return [String]
1414
+ attr_accessor :width
1415
+
1416
+ # Worst possible rating value that a result might obtain. This property defines
1417
+ # the lower bound for the ratingValue.
1418
+ # Corresponds to the JSON property `worstRating`
1419
+ # @return [String]
1420
+ attr_accessor :worst_rating
1421
+
1422
+ def initialize(**args)
1423
+ update!(**args)
1424
+ end
1425
+
1426
+ # Update properties of this object
1427
+ def update!(**args)
1428
+ @about = args[:about] unless args[:about].nil?
1429
+ @additional_name = args[:additional_name] unless args[:additional_name].nil?
1430
+ @address = args[:address] unless args[:address].nil?
1431
+ @address_country = args[:address_country] unless args[:address_country].nil?
1432
+ @address_locality = args[:address_locality] unless args[:address_locality].nil?
1433
+ @address_region = args[:address_region] unless args[:address_region].nil?
1434
+ @associated_media = args[:associated_media] unless args[:associated_media].nil?
1435
+ @attendee_count = args[:attendee_count] unless args[:attendee_count].nil?
1436
+ @attendees = args[:attendees] unless args[:attendees].nil?
1437
+ @audio = args[:audio] unless args[:audio].nil?
1438
+ @author = args[:author] unless args[:author].nil?
1439
+ @best_rating = args[:best_rating] unless args[:best_rating].nil?
1440
+ @birth_date = args[:birth_date] unless args[:birth_date].nil?
1441
+ @by_artist = args[:by_artist] unless args[:by_artist].nil?
1442
+ @caption = args[:caption] unless args[:caption].nil?
1443
+ @content_size = args[:content_size] unless args[:content_size].nil?
1444
+ @content_url = args[:content_url] unless args[:content_url].nil?
1445
+ @contributor = args[:contributor] unless args[:contributor].nil?
1446
+ @date_created = args[:date_created] unless args[:date_created].nil?
1447
+ @date_modified = args[:date_modified] unless args[:date_modified].nil?
1448
+ @date_published = args[:date_published] unless args[:date_published].nil?
1449
+ @description = args[:description] unless args[:description].nil?
1450
+ @duration = args[:duration] unless args[:duration].nil?
1451
+ @embed_url = args[:embed_url] unless args[:embed_url].nil?
1452
+ @end_date = args[:end_date] unless args[:end_date].nil?
1453
+ @family_name = args[:family_name] unless args[:family_name].nil?
1454
+ @gender = args[:gender] unless args[:gender].nil?
1455
+ @geo = args[:geo] unless args[:geo].nil?
1456
+ @given_name = args[:given_name] unless args[:given_name].nil?
1457
+ @height = args[:height] unless args[:height].nil?
1458
+ @id = args[:id] unless args[:id].nil?
1459
+ @image = args[:image] unless args[:image].nil?
1460
+ @in_album = args[:in_album] unless args[:in_album].nil?
1461
+ @kind = args[:kind] unless args[:kind].nil?
1462
+ @latitude = args[:latitude] unless args[:latitude].nil?
1463
+ @location = args[:location] unless args[:location].nil?
1464
+ @longitude = args[:longitude] unless args[:longitude].nil?
1465
+ @name = args[:name] unless args[:name].nil?
1466
+ @part_of_tv_series = args[:part_of_tv_series] unless args[:part_of_tv_series].nil?
1467
+ @performers = args[:performers] unless args[:performers].nil?
1468
+ @player_type = args[:player_type] unless args[:player_type].nil?
1469
+ @post_office_box_number = args[:post_office_box_number] unless args[:post_office_box_number].nil?
1470
+ @postal_code = args[:postal_code] unless args[:postal_code].nil?
1471
+ @rating_value = args[:rating_value] unless args[:rating_value].nil?
1472
+ @review_rating = args[:review_rating] unless args[:review_rating].nil?
1473
+ @start_date = args[:start_date] unless args[:start_date].nil?
1474
+ @street_address = args[:street_address] unless args[:street_address].nil?
1475
+ @text = args[:text] unless args[:text].nil?
1476
+ @thumbnail = args[:thumbnail] unless args[:thumbnail].nil?
1477
+ @thumbnail_url = args[:thumbnail_url] unless args[:thumbnail_url].nil?
1478
+ @ticker_symbol = args[:ticker_symbol] unless args[:ticker_symbol].nil?
1479
+ @type = args[:type] unless args[:type].nil?
1480
+ @url = args[:url] unless args[:url].nil?
1481
+ @width = args[:width] unless args[:width].nil?
1482
+ @worst_rating = args[:worst_rating] unless args[:worst_rating].nil?
1483
+ end
1484
+ end
1485
+
1486
+ #
1487
+ class Moment
1488
+ include Google::Apis::Core::Hashable
1489
+
1490
+ # The moment ID.
1491
+ # Corresponds to the JSON property `id`
1492
+ # @return [String]
1493
+ attr_accessor :id
1494
+
1495
+ # Identifies this resource as a moment.
1496
+ # Corresponds to the JSON property `kind`
1497
+ # @return [String]
1498
+ attr_accessor :kind
1499
+
1500
+ # The object on which the action was performed. Specifying this is equivalent
1501
+ # with specifying "target". Note that responses from the server will use the "
1502
+ # target" field instead for backward-compatibility with older clients.
1503
+ # Corresponds to the JSON property `object`
1504
+ # @return [Google::Apis::PlusV1::ItemScope]
1505
+ attr_accessor :object
1506
+
1507
+ # The object generated by performing the action on the object. For example, a
1508
+ # user writes a review of a restaurant, the object is the restaurant and the
1509
+ # result is the review.
1510
+ # Corresponds to the JSON property `result`
1511
+ # @return [Google::Apis::PlusV1::ItemScope]
1512
+ attr_accessor :result
1513
+
1514
+ # Time stamp of when the action occurred in RFC3339 format.
1515
+ # Corresponds to the JSON property `startDate`
1516
+ # @return [DateTime]
1517
+ attr_accessor :start_date
1518
+
1519
+ # The object on which the action was performed.
1520
+ # Corresponds to the JSON property `target`
1521
+ # @return [Google::Apis::PlusV1::ItemScope]
1522
+ attr_accessor :target
1523
+
1524
+ # The schema.org type for the type of moment to write. For example, http://
1525
+ # schema.org/AddAction. Note that responses from the server will use the Google
1526
+ # schema type instead for backward-compatibility with older clients. For example,
1527
+ # http://schemas.google.com/AddActivity.
1528
+ # Corresponds to the JSON property `type`
1529
+ # @return [String]
1530
+ attr_accessor :type
1531
+
1532
+ def initialize(**args)
1533
+ update!(**args)
1534
+ end
1535
+
1536
+ # Update properties of this object
1537
+ def update!(**args)
1538
+ @id = args[:id] unless args[:id].nil?
1539
+ @kind = args[:kind] unless args[:kind].nil?
1540
+ @object = args[:object] unless args[:object].nil?
1541
+ @result = args[:result] unless args[:result].nil?
1542
+ @start_date = args[:start_date] unless args[:start_date].nil?
1543
+ @target = args[:target] unless args[:target].nil?
1544
+ @type = args[:type] unless args[:type].nil?
1545
+ end
1546
+ end
1547
+
1548
+ #
1549
+ class MomentsFeed
1550
+ include Google::Apis::Core::Hashable
1551
+
1552
+ # ETag of this response for caching purposes.
1553
+ # Corresponds to the JSON property `etag`
1554
+ # @return [String]
1555
+ attr_accessor :etag
1556
+
1557
+ # The moments in this page of results.
1558
+ # Corresponds to the JSON property `items`
1559
+ # @return [Array<Google::Apis::PlusV1::Moment>]
1560
+ attr_accessor :items
1561
+
1562
+ # Identifies this resource as a collection of moments. Value: "plus#momentsFeed".
1563
+ # Corresponds to the JSON property `kind`
1564
+ # @return [String]
1565
+ attr_accessor :kind
1566
+
1567
+ # Link to the next page of moments.
1568
+ # Corresponds to the JSON property `nextLink`
1569
+ # @return [String]
1570
+ attr_accessor :next_link
1571
+
1572
+ # The continuation token, which is used to page through large result sets.
1573
+ # Provide this value in a subsequent request to return the next page of results.
1574
+ # Corresponds to the JSON property `nextPageToken`
1575
+ # @return [String]
1576
+ attr_accessor :next_page_token
1577
+
1578
+ # Link to this page of moments.
1579
+ # Corresponds to the JSON property `selfLink`
1580
+ # @return [String]
1581
+ attr_accessor :self_link
1582
+
1583
+ # The title of this collection of moments.
1584
+ # Corresponds to the JSON property `title`
1585
+ # @return [String]
1586
+ attr_accessor :title
1587
+
1588
+ # The RFC 339 timestamp for when this collection of moments was last updated.
1589
+ # Corresponds to the JSON property `updated`
1590
+ # @return [DateTime]
1591
+ attr_accessor :updated
1592
+
1593
+ def initialize(**args)
1594
+ update!(**args)
1595
+ end
1596
+
1597
+ # Update properties of this object
1598
+ def update!(**args)
1599
+ @etag = args[:etag] unless args[:etag].nil?
1600
+ @items = args[:items] unless args[:items].nil?
1601
+ @kind = args[:kind] unless args[:kind].nil?
1602
+ @next_link = args[:next_link] unless args[:next_link].nil?
1603
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1604
+ @self_link = args[:self_link] unless args[:self_link].nil?
1605
+ @title = args[:title] unless args[:title].nil?
1606
+ @updated = args[:updated] unless args[:updated].nil?
1607
+ end
1608
+ end
1609
+
1610
+ #
1611
+ class PeopleFeed
1612
+ include Google::Apis::Core::Hashable
1613
+
1614
+ # ETag of this response for caching purposes.
1615
+ # Corresponds to the JSON property `etag`
1616
+ # @return [String]
1617
+ attr_accessor :etag
1618
+
1619
+ # The people in this page of results. Each item includes the id, displayName,
1620
+ # image, and url for the person. To retrieve additional profile data, see the
1621
+ # people.get method.
1622
+ # Corresponds to the JSON property `items`
1623
+ # @return [Array<Google::Apis::PlusV1::Person>]
1624
+ attr_accessor :items
1625
+
1626
+ # Identifies this resource as a collection of people. Value: "plus#peopleFeed".
1627
+ # Corresponds to the JSON property `kind`
1628
+ # @return [String]
1629
+ attr_accessor :kind
1630
+
1631
+ # The continuation token, which is used to page through large result sets.
1632
+ # Provide this value in a subsequent request to return the next page of results.
1633
+ # Corresponds to the JSON property `nextPageToken`
1634
+ # @return [String]
1635
+ attr_accessor :next_page_token
1636
+
1637
+ # Link to this resource.
1638
+ # Corresponds to the JSON property `selfLink`
1639
+ # @return [String]
1640
+ attr_accessor :self_link
1641
+
1642
+ # The title of this collection of people.
1643
+ # Corresponds to the JSON property `title`
1644
+ # @return [String]
1645
+ attr_accessor :title
1646
+
1647
+ # The total number of people available in this list. The number of people in a
1648
+ # response might be smaller due to paging. This might not be set for all
1649
+ # collections.
1650
+ # Corresponds to the JSON property `totalItems`
1651
+ # @return [Fixnum]
1652
+ attr_accessor :total_items
1653
+
1654
+ def initialize(**args)
1655
+ update!(**args)
1656
+ end
1657
+
1658
+ # Update properties of this object
1659
+ def update!(**args)
1660
+ @etag = args[:etag] unless args[:etag].nil?
1661
+ @items = args[:items] unless args[:items].nil?
1662
+ @kind = args[:kind] unless args[:kind].nil?
1663
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1664
+ @self_link = args[:self_link] unless args[:self_link].nil?
1665
+ @title = args[:title] unless args[:title].nil?
1666
+ @total_items = args[:total_items] unless args[:total_items].nil?
1667
+ end
1668
+ end
1669
+
1670
+ #
1671
+ class Person
1672
+ include Google::Apis::Core::Hashable
1673
+
1674
+ # A short biography for this person.
1675
+ # Corresponds to the JSON property `aboutMe`
1676
+ # @return [String]
1677
+ attr_accessor :about_me
1678
+
1679
+ # The age range of the person. Valid ranges are 17 or younger, 18 to 20, and 21
1680
+ # or older. Age is determined from the user's birthday using Western age
1681
+ # reckoning.
1682
+ # Corresponds to the JSON property `ageRange`
1683
+ # @return [Google::Apis::PlusV1::Person::AgeRange]
1684
+ attr_accessor :age_range
1685
+
1686
+ # The person's date of birth, represented as YYYY-MM-DD.
1687
+ # Corresponds to the JSON property `birthday`
1688
+ # @return [String]
1689
+ attr_accessor :birthday
1690
+
1691
+ # The "bragging rights" line of this person.
1692
+ # Corresponds to the JSON property `braggingRights`
1693
+ # @return [String]
1694
+ attr_accessor :bragging_rights
1695
+
1696
+ # For followers who are visible, the number of people who have added this person
1697
+ # or page to a circle.
1698
+ # Corresponds to the JSON property `circledByCount`
1699
+ # @return [Fixnum]
1700
+ attr_accessor :circled_by_count
1701
+
1702
+ # The cover photo content.
1703
+ # Corresponds to the JSON property `cover`
1704
+ # @return [Google::Apis::PlusV1::Person::Cover]
1705
+ attr_accessor :cover
1706
+
1707
+ # (this field is not currently used)
1708
+ # Corresponds to the JSON property `currentLocation`
1709
+ # @return [String]
1710
+ attr_accessor :current_location
1711
+
1712
+ # The name of this person, which is suitable for display.
1713
+ # Corresponds to the JSON property `displayName`
1714
+ # @return [String]
1715
+ attr_accessor :display_name
1716
+
1717
+ # The hosted domain name for the user's Google Apps account. For instance,
1718
+ # example.com. The plus.profile.emails.read or email scope is needed to get this
1719
+ # domain name.
1720
+ # Corresponds to the JSON property `domain`
1721
+ # @return [String]
1722
+ attr_accessor :domain
1723
+
1724
+ # A list of email addresses that this person has, including their Google account
1725
+ # email address, and the public verified email addresses on their Google+
1726
+ # profile. The plus.profile.emails.read scope is needed to retrieve these email
1727
+ # addresses, or the email scope can be used to retrieve just the Google account
1728
+ # email address.
1729
+ # Corresponds to the JSON property `emails`
1730
+ # @return [Array<Google::Apis::PlusV1::Person::Email>]
1731
+ attr_accessor :emails
1732
+
1733
+ # ETag of this response for caching purposes.
1734
+ # Corresponds to the JSON property `etag`
1735
+ # @return [String]
1736
+ attr_accessor :etag
1737
+
1738
+ # The person's gender. Possible values include, but are not limited to, the
1739
+ # following values:
1740
+ # - "male" - Male gender.
1741
+ # - "female" - Female gender.
1742
+ # - "other" - Other.
1743
+ # Corresponds to the JSON property `gender`
1744
+ # @return [String]
1745
+ attr_accessor :gender
1746
+
1747
+ # The ID of this person.
1748
+ # Corresponds to the JSON property `id`
1749
+ # @return [String]
1750
+ attr_accessor :id
1751
+
1752
+ # The representation of the person's profile photo.
1753
+ # Corresponds to the JSON property `image`
1754
+ # @return [Google::Apis::PlusV1::Person::Image]
1755
+ attr_accessor :image
1756
+
1757
+ # Whether this user has signed up for Google+.
1758
+ # Corresponds to the JSON property `isPlusUser`
1759
+ # @return [Boolean]
1760
+ attr_accessor :is_plus_user
1761
+ alias_method :is_plus_user?, :is_plus_user
1762
+
1763
+ # Identifies this resource as a person. Value: "plus#person".
1764
+ # Corresponds to the JSON property `kind`
1765
+ # @return [String]
1766
+ attr_accessor :kind
1767
+
1768
+ # The user's preferred language for rendering.
1769
+ # Corresponds to the JSON property `language`
1770
+ # @return [String]
1771
+ attr_accessor :language
1772
+
1773
+ # An object representation of the individual components of a person's name.
1774
+ # Corresponds to the JSON property `name`
1775
+ # @return [Google::Apis::PlusV1::Person::Name]
1776
+ attr_accessor :name
1777
+
1778
+ # The nickname of this person.
1779
+ # Corresponds to the JSON property `nickname`
1780
+ # @return [String]
1781
+ attr_accessor :nickname
1782
+
1783
+ # Type of person within Google+. Possible values include, but are not limited to,
1784
+ # the following values:
1785
+ # - "person" - represents an actual person.
1786
+ # - "page" - represents a page.
1787
+ # Corresponds to the JSON property `objectType`
1788
+ # @return [String]
1789
+ attr_accessor :object_type
1790
+
1791
+ # The occupation of this person.
1792
+ # Corresponds to the JSON property `occupation`
1793
+ # @return [String]
1794
+ attr_accessor :occupation
1795
+
1796
+ # A list of current or past organizations with which this person is associated.
1797
+ # Corresponds to the JSON property `organizations`
1798
+ # @return [Array<Google::Apis::PlusV1::Person::Organization>]
1799
+ attr_accessor :organizations
1800
+
1801
+ # A list of places where this person has lived.
1802
+ # Corresponds to the JSON property `placesLived`
1803
+ # @return [Array<Google::Apis::PlusV1::Person::PlacesLived>]
1804
+ attr_accessor :places_lived
1805
+
1806
+ # If a Google+ Page, the number of people who have +1'd this page.
1807
+ # Corresponds to the JSON property `plusOneCount`
1808
+ # @return [Fixnum]
1809
+ attr_accessor :plus_one_count
1810
+
1811
+ # The person's relationship status. Possible values include, but are not limited
1812
+ # to, the following values:
1813
+ # - "single" - Person is single.
1814
+ # - "in_a_relationship" - Person is in a relationship.
1815
+ # - "engaged" - Person is engaged.
1816
+ # - "married" - Person is married.
1817
+ # - "its_complicated" - The relationship is complicated.
1818
+ # - "open_relationship" - Person is in an open relationship.
1819
+ # - "widowed" - Person is widowed.
1820
+ # - "in_domestic_partnership" - Person is in a domestic partnership.
1821
+ # - "in_civil_union" - Person is in a civil union.
1822
+ # Corresponds to the JSON property `relationshipStatus`
1823
+ # @return [String]
1824
+ attr_accessor :relationship_status
1825
+
1826
+ # The person's skills.
1827
+ # Corresponds to the JSON property `skills`
1828
+ # @return [String]
1829
+ attr_accessor :skills
1830
+
1831
+ # The brief description (tagline) of this person.
1832
+ # Corresponds to the JSON property `tagline`
1833
+ # @return [String]
1834
+ attr_accessor :tagline
1835
+
1836
+ # The URL of this person's profile.
1837
+ # Corresponds to the JSON property `url`
1838
+ # @return [String]
1839
+ attr_accessor :url
1840
+
1841
+ # A list of URLs for this person.
1842
+ # Corresponds to the JSON property `urls`
1843
+ # @return [Array<Google::Apis::PlusV1::Person::Url>]
1844
+ attr_accessor :urls
1845
+
1846
+ # Whether the person or Google+ Page has been verified.
1847
+ # Corresponds to the JSON property `verified`
1848
+ # @return [Boolean]
1849
+ attr_accessor :verified
1850
+ alias_method :verified?, :verified
1851
+
1852
+ def initialize(**args)
1853
+ update!(**args)
1854
+ end
1855
+
1856
+ # Update properties of this object
1857
+ def update!(**args)
1858
+ @about_me = args[:about_me] unless args[:about_me].nil?
1859
+ @age_range = args[:age_range] unless args[:age_range].nil?
1860
+ @birthday = args[:birthday] unless args[:birthday].nil?
1861
+ @bragging_rights = args[:bragging_rights] unless args[:bragging_rights].nil?
1862
+ @circled_by_count = args[:circled_by_count] unless args[:circled_by_count].nil?
1863
+ @cover = args[:cover] unless args[:cover].nil?
1864
+ @current_location = args[:current_location] unless args[:current_location].nil?
1865
+ @display_name = args[:display_name] unless args[:display_name].nil?
1866
+ @domain = args[:domain] unless args[:domain].nil?
1867
+ @emails = args[:emails] unless args[:emails].nil?
1868
+ @etag = args[:etag] unless args[:etag].nil?
1869
+ @gender = args[:gender] unless args[:gender].nil?
1870
+ @id = args[:id] unless args[:id].nil?
1871
+ @image = args[:image] unless args[:image].nil?
1872
+ @is_plus_user = args[:is_plus_user] unless args[:is_plus_user].nil?
1873
+ @kind = args[:kind] unless args[:kind].nil?
1874
+ @language = args[:language] unless args[:language].nil?
1875
+ @name = args[:name] unless args[:name].nil?
1876
+ @nickname = args[:nickname] unless args[:nickname].nil?
1877
+ @object_type = args[:object_type] unless args[:object_type].nil?
1878
+ @occupation = args[:occupation] unless args[:occupation].nil?
1879
+ @organizations = args[:organizations] unless args[:organizations].nil?
1880
+ @places_lived = args[:places_lived] unless args[:places_lived].nil?
1881
+ @plus_one_count = args[:plus_one_count] unless args[:plus_one_count].nil?
1882
+ @relationship_status = args[:relationship_status] unless args[:relationship_status].nil?
1883
+ @skills = args[:skills] unless args[:skills].nil?
1884
+ @tagline = args[:tagline] unless args[:tagline].nil?
1885
+ @url = args[:url] unless args[:url].nil?
1886
+ @urls = args[:urls] unless args[:urls].nil?
1887
+ @verified = args[:verified] unless args[:verified].nil?
1888
+ end
1889
+
1890
+ # The age range of the person. Valid ranges are 17 or younger, 18 to 20, and 21
1891
+ # or older. Age is determined from the user's birthday using Western age
1892
+ # reckoning.
1893
+ class AgeRange
1894
+ include Google::Apis::Core::Hashable
1895
+
1896
+ # The age range's upper bound, if any. Possible values include, but are not
1897
+ # limited to, the following:
1898
+ # - "17" - for age 17
1899
+ # - "20" - for age 20
1900
+ # Corresponds to the JSON property `max`
1901
+ # @return [Fixnum]
1902
+ attr_accessor :max
1903
+
1904
+ # The age range's lower bound, if any. Possible values include, but are not
1905
+ # limited to, the following:
1906
+ # - "21" - for age 21
1907
+ # - "18" - for age 18
1908
+ # Corresponds to the JSON property `min`
1909
+ # @return [Fixnum]
1910
+ attr_accessor :min
1911
+
1912
+ def initialize(**args)
1913
+ update!(**args)
1914
+ end
1915
+
1916
+ # Update properties of this object
1917
+ def update!(**args)
1918
+ @max = args[:max] unless args[:max].nil?
1919
+ @min = args[:min] unless args[:min].nil?
1920
+ end
1921
+ end
1922
+
1923
+ # The cover photo content.
1924
+ class Cover
1925
+ include Google::Apis::Core::Hashable
1926
+
1927
+ # Extra information about the cover photo.
1928
+ # Corresponds to the JSON property `coverInfo`
1929
+ # @return [Google::Apis::PlusV1::Person::Cover::CoverInfo]
1930
+ attr_accessor :cover_info
1931
+
1932
+ # The person's primary cover image.
1933
+ # Corresponds to the JSON property `coverPhoto`
1934
+ # @return [Google::Apis::PlusV1::Person::Cover::CoverPhoto]
1935
+ attr_accessor :cover_photo
1936
+
1937
+ # The layout of the cover art. Possible values include, but are not limited to,
1938
+ # the following values:
1939
+ # - "banner" - One large image banner.
1940
+ # Corresponds to the JSON property `layout`
1941
+ # @return [String]
1942
+ attr_accessor :layout
1943
+
1944
+ def initialize(**args)
1945
+ update!(**args)
1946
+ end
1947
+
1948
+ # Update properties of this object
1949
+ def update!(**args)
1950
+ @cover_info = args[:cover_info] unless args[:cover_info].nil?
1951
+ @cover_photo = args[:cover_photo] unless args[:cover_photo].nil?
1952
+ @layout = args[:layout] unless args[:layout].nil?
1953
+ end
1954
+
1955
+ # Extra information about the cover photo.
1956
+ class CoverInfo
1957
+ include Google::Apis::Core::Hashable
1958
+
1959
+ # The difference between the left position of the cover image and the actual
1960
+ # displayed cover image. Only valid for banner layout.
1961
+ # Corresponds to the JSON property `leftImageOffset`
1962
+ # @return [Fixnum]
1963
+ attr_accessor :left_image_offset
1964
+
1965
+ # The difference between the top position of the cover image and the actual
1966
+ # displayed cover image. Only valid for banner layout.
1967
+ # Corresponds to the JSON property `topImageOffset`
1968
+ # @return [Fixnum]
1969
+ attr_accessor :top_image_offset
1970
+
1971
+ def initialize(**args)
1972
+ update!(**args)
1973
+ end
1974
+
1975
+ # Update properties of this object
1976
+ def update!(**args)
1977
+ @left_image_offset = args[:left_image_offset] unless args[:left_image_offset].nil?
1978
+ @top_image_offset = args[:top_image_offset] unless args[:top_image_offset].nil?
1979
+ end
1980
+ end
1981
+
1982
+ # The person's primary cover image.
1983
+ class CoverPhoto
1984
+ include Google::Apis::Core::Hashable
1985
+
1986
+ # The height of the image.
1987
+ # Corresponds to the JSON property `height`
1988
+ # @return [Fixnum]
1989
+ attr_accessor :height
1990
+
1991
+ # The URL of the image.
1992
+ # Corresponds to the JSON property `url`
1993
+ # @return [String]
1994
+ attr_accessor :url
1995
+
1996
+ # The width of the image.
1997
+ # Corresponds to the JSON property `width`
1998
+ # @return [Fixnum]
1999
+ attr_accessor :width
2000
+
2001
+ def initialize(**args)
2002
+ update!(**args)
2003
+ end
2004
+
2005
+ # Update properties of this object
2006
+ def update!(**args)
2007
+ @height = args[:height] unless args[:height].nil?
2008
+ @url = args[:url] unless args[:url].nil?
2009
+ @width = args[:width] unless args[:width].nil?
2010
+ end
2011
+ end
2012
+ end
2013
+
2014
+ #
2015
+ class Email
2016
+ include Google::Apis::Core::Hashable
2017
+
2018
+ # The type of address. Possible values include, but are not limited to, the
2019
+ # following values:
2020
+ # - "account" - Google account email address.
2021
+ # - "home" - Home email address.
2022
+ # - "work" - Work email address.
2023
+ # - "other" - Other.
2024
+ # Corresponds to the JSON property `type`
2025
+ # @return [String]
2026
+ attr_accessor :type
2027
+
2028
+ # The email address.
2029
+ # Corresponds to the JSON property `value`
2030
+ # @return [String]
2031
+ attr_accessor :value
2032
+
2033
+ def initialize(**args)
2034
+ update!(**args)
2035
+ end
2036
+
2037
+ # Update properties of this object
2038
+ def update!(**args)
2039
+ @type = args[:type] unless args[:type].nil?
2040
+ @value = args[:value] unless args[:value].nil?
2041
+ end
2042
+ end
2043
+
2044
+ # The representation of the person's profile photo.
2045
+ class Image
2046
+ include Google::Apis::Core::Hashable
2047
+
2048
+ # Whether the person's profile photo is the default one
2049
+ # Corresponds to the JSON property `isDefault`
2050
+ # @return [Boolean]
2051
+ attr_accessor :is_default
2052
+ alias_method :is_default?, :is_default
2053
+
2054
+ # The URL of the person's profile photo. To resize the image and crop it to a
2055
+ # square, append the query string ?sz=x, where x is the dimension in pixels of
2056
+ # each side.
2057
+ # Corresponds to the JSON property `url`
2058
+ # @return [String]
2059
+ attr_accessor :url
2060
+
2061
+ def initialize(**args)
2062
+ update!(**args)
2063
+ end
2064
+
2065
+ # Update properties of this object
2066
+ def update!(**args)
2067
+ @is_default = args[:is_default] unless args[:is_default].nil?
2068
+ @url = args[:url] unless args[:url].nil?
2069
+ end
2070
+ end
2071
+
2072
+ # An object representation of the individual components of a person's name.
2073
+ class Name
2074
+ include Google::Apis::Core::Hashable
2075
+
2076
+ # The family name (last name) of this person.
2077
+ # Corresponds to the JSON property `familyName`
2078
+ # @return [String]
2079
+ attr_accessor :family_name
2080
+
2081
+ # The full name of this person, including middle names, suffixes, etc.
2082
+ # Corresponds to the JSON property `formatted`
2083
+ # @return [String]
2084
+ attr_accessor :formatted
2085
+
2086
+ # The given name (first name) of this person.
2087
+ # Corresponds to the JSON property `givenName`
2088
+ # @return [String]
2089
+ attr_accessor :given_name
2090
+
2091
+ # The honorific prefixes (such as "Dr." or "Mrs.") for this person.
2092
+ # Corresponds to the JSON property `honorificPrefix`
2093
+ # @return [String]
2094
+ attr_accessor :honorific_prefix
2095
+
2096
+ # The honorific suffixes (such as "Jr.") for this person.
2097
+ # Corresponds to the JSON property `honorificSuffix`
2098
+ # @return [String]
2099
+ attr_accessor :honorific_suffix
2100
+
2101
+ # The middle name of this person.
2102
+ # Corresponds to the JSON property `middleName`
2103
+ # @return [String]
2104
+ attr_accessor :middle_name
2105
+
2106
+ def initialize(**args)
2107
+ update!(**args)
2108
+ end
2109
+
2110
+ # Update properties of this object
2111
+ def update!(**args)
2112
+ @family_name = args[:family_name] unless args[:family_name].nil?
2113
+ @formatted = args[:formatted] unless args[:formatted].nil?
2114
+ @given_name = args[:given_name] unless args[:given_name].nil?
2115
+ @honorific_prefix = args[:honorific_prefix] unless args[:honorific_prefix].nil?
2116
+ @honorific_suffix = args[:honorific_suffix] unless args[:honorific_suffix].nil?
2117
+ @middle_name = args[:middle_name] unless args[:middle_name].nil?
2118
+ end
2119
+ end
2120
+
2121
+ #
2122
+ class Organization
2123
+ include Google::Apis::Core::Hashable
2124
+
2125
+ # The department within the organization. Deprecated.
2126
+ # Corresponds to the JSON property `department`
2127
+ # @return [String]
2128
+ attr_accessor :department
2129
+
2130
+ # A short description of the person's role in this organization. Deprecated.
2131
+ # Corresponds to the JSON property `description`
2132
+ # @return [String]
2133
+ attr_accessor :description
2134
+
2135
+ # The date that the person left this organization.
2136
+ # Corresponds to the JSON property `endDate`
2137
+ # @return [String]
2138
+ attr_accessor :end_date
2139
+
2140
+ # The location of this organization. Deprecated.
2141
+ # Corresponds to the JSON property `location`
2142
+ # @return [String]
2143
+ attr_accessor :location
2144
+
2145
+ # The name of the organization.
2146
+ # Corresponds to the JSON property `name`
2147
+ # @return [String]
2148
+ attr_accessor :name
2149
+
2150
+ # If "true", indicates this organization is the person's primary one, which is
2151
+ # typically interpreted as the current one.
2152
+ # Corresponds to the JSON property `primary`
2153
+ # @return [Boolean]
2154
+ attr_accessor :primary
2155
+ alias_method :primary?, :primary
2156
+
2157
+ # The date that the person joined this organization.
2158
+ # Corresponds to the JSON property `startDate`
2159
+ # @return [String]
2160
+ attr_accessor :start_date
2161
+
2162
+ # The person's job title or role within the organization.
2163
+ # Corresponds to the JSON property `title`
2164
+ # @return [String]
2165
+ attr_accessor :title
2166
+
2167
+ # The type of organization. Possible values include, but are not limited to, the
2168
+ # following values:
2169
+ # - "work" - Work.
2170
+ # - "school" - School.
2171
+ # Corresponds to the JSON property `type`
2172
+ # @return [String]
2173
+ attr_accessor :type
2174
+
2175
+ def initialize(**args)
2176
+ update!(**args)
2177
+ end
2178
+
2179
+ # Update properties of this object
2180
+ def update!(**args)
2181
+ @department = args[:department] unless args[:department].nil?
2182
+ @description = args[:description] unless args[:description].nil?
2183
+ @end_date = args[:end_date] unless args[:end_date].nil?
2184
+ @location = args[:location] unless args[:location].nil?
2185
+ @name = args[:name] unless args[:name].nil?
2186
+ @primary = args[:primary] unless args[:primary].nil?
2187
+ @start_date = args[:start_date] unless args[:start_date].nil?
2188
+ @title = args[:title] unless args[:title].nil?
2189
+ @type = args[:type] unless args[:type].nil?
2190
+ end
2191
+ end
2192
+
2193
+ #
2194
+ class PlacesLived
2195
+ include Google::Apis::Core::Hashable
2196
+
2197
+ # If "true", this place of residence is this person's primary residence.
2198
+ # Corresponds to the JSON property `primary`
2199
+ # @return [Boolean]
2200
+ attr_accessor :primary
2201
+ alias_method :primary?, :primary
2202
+
2203
+ # A place where this person has lived. For example: "Seattle, WA", "Near Toronto"
2204
+ # .
2205
+ # Corresponds to the JSON property `value`
2206
+ # @return [String]
2207
+ attr_accessor :value
2208
+
2209
+ def initialize(**args)
2210
+ update!(**args)
2211
+ end
2212
+
2213
+ # Update properties of this object
2214
+ def update!(**args)
2215
+ @primary = args[:primary] unless args[:primary].nil?
2216
+ @value = args[:value] unless args[:value].nil?
2217
+ end
2218
+ end
2219
+
2220
+ #
2221
+ class Url
2222
+ include Google::Apis::Core::Hashable
2223
+
2224
+ # The label of the URL.
2225
+ # Corresponds to the JSON property `label`
2226
+ # @return [String]
2227
+ attr_accessor :label
2228
+
2229
+ # The type of URL. Possible values include, but are not limited to, the
2230
+ # following values:
2231
+ # - "otherProfile" - URL for another profile.
2232
+ # - "contributor" - URL to a site for which this person is a contributor.
2233
+ # - "website" - URL for this Google+ Page's primary website.
2234
+ # - "other" - Other URL.
2235
+ # Corresponds to the JSON property `type`
2236
+ # @return [String]
2237
+ attr_accessor :type
2238
+
2239
+ # The URL value.
2240
+ # Corresponds to the JSON property `value`
2241
+ # @return [String]
2242
+ attr_accessor :value
2243
+
2244
+ def initialize(**args)
2245
+ update!(**args)
2246
+ end
2247
+
2248
+ # Update properties of this object
2249
+ def update!(**args)
2250
+ @label = args[:label] unless args[:label].nil?
2251
+ @type = args[:type] unless args[:type].nil?
2252
+ @value = args[:value] unless args[:value].nil?
2253
+ end
2254
+ end
2255
+ end
2256
+
2257
+ #
2258
+ class Place
2259
+ include Google::Apis::Core::Hashable
2260
+
2261
+ # The physical address of the place.
2262
+ # Corresponds to the JSON property `address`
2263
+ # @return [Google::Apis::PlusV1::Place::Address]
2264
+ attr_accessor :address
2265
+
2266
+ # The display name of the place.
2267
+ # Corresponds to the JSON property `displayName`
2268
+ # @return [String]
2269
+ attr_accessor :display_name
2270
+
2271
+ # The id of the place.
2272
+ # Corresponds to the JSON property `id`
2273
+ # @return [String]
2274
+ attr_accessor :id
2275
+
2276
+ # Identifies this resource as a place. Value: "plus#place".
2277
+ # Corresponds to the JSON property `kind`
2278
+ # @return [String]
2279
+ attr_accessor :kind
2280
+
2281
+ # The position of the place.
2282
+ # Corresponds to the JSON property `position`
2283
+ # @return [Google::Apis::PlusV1::Place::Position]
2284
+ attr_accessor :position
2285
+
2286
+ def initialize(**args)
2287
+ update!(**args)
2288
+ end
2289
+
2290
+ # Update properties of this object
2291
+ def update!(**args)
2292
+ @address = args[:address] unless args[:address].nil?
2293
+ @display_name = args[:display_name] unless args[:display_name].nil?
2294
+ @id = args[:id] unless args[:id].nil?
2295
+ @kind = args[:kind] unless args[:kind].nil?
2296
+ @position = args[:position] unless args[:position].nil?
2297
+ end
2298
+
2299
+ # The physical address of the place.
2300
+ class Address
2301
+ include Google::Apis::Core::Hashable
2302
+
2303
+ # The formatted address for display.
2304
+ # Corresponds to the JSON property `formatted`
2305
+ # @return [String]
2306
+ attr_accessor :formatted
2307
+
2308
+ def initialize(**args)
2309
+ update!(**args)
2310
+ end
2311
+
2312
+ # Update properties of this object
2313
+ def update!(**args)
2314
+ @formatted = args[:formatted] unless args[:formatted].nil?
2315
+ end
2316
+ end
2317
+
2318
+ # The position of the place.
2319
+ class Position
2320
+ include Google::Apis::Core::Hashable
2321
+
2322
+ # The latitude of this position.
2323
+ # Corresponds to the JSON property `latitude`
2324
+ # @return [Float]
2325
+ attr_accessor :latitude
2326
+
2327
+ # The longitude of this position.
2328
+ # Corresponds to the JSON property `longitude`
2329
+ # @return [Float]
2330
+ attr_accessor :longitude
2331
+
2332
+ def initialize(**args)
2333
+ update!(**args)
2334
+ end
2335
+
2336
+ # Update properties of this object
2337
+ def update!(**args)
2338
+ @latitude = args[:latitude] unless args[:latitude].nil?
2339
+ @longitude = args[:longitude] unless args[:longitude].nil?
2340
+ end
2341
+ end
2342
+ end
2343
+
2344
+ #
2345
+ class PlusAclentryResource
2346
+ include Google::Apis::Core::Hashable
2347
+
2348
+ # A descriptive name for this entry. Suitable for display.
2349
+ # Corresponds to the JSON property `displayName`
2350
+ # @return [String]
2351
+ attr_accessor :display_name
2352
+
2353
+ # The ID of the entry. For entries of type "person" or "circle", this is the ID
2354
+ # of the resource. For other types, this property is not set.
2355
+ # Corresponds to the JSON property `id`
2356
+ # @return [String]
2357
+ attr_accessor :id
2358
+
2359
+ # The type of entry describing to whom access is granted. Possible values are:
2360
+ # - "person" - Access to an individual.
2361
+ # - "circle" - Access to members of a circle.
2362
+ # - "myCircles" - Access to members of all the person's circles.
2363
+ # - "extendedCircles" - Access to members of all the person's circles, plus all
2364
+ # of the people in their circles.
2365
+ # - "domain" - Access to members of the person's Google Apps domain.
2366
+ # - "public" - Access to anyone on the web.
2367
+ # Corresponds to the JSON property `type`
2368
+ # @return [String]
2369
+ attr_accessor :type
2370
+
2371
+ def initialize(**args)
2372
+ update!(**args)
2373
+ end
2374
+
2375
+ # Update properties of this object
2376
+ def update!(**args)
2377
+ @display_name = args[:display_name] unless args[:display_name].nil?
2378
+ @id = args[:id] unless args[:id].nil?
2379
+ @type = args[:type] unless args[:type].nil?
2380
+ end
2381
+ end
2382
+ end
2383
+ end
2384
+ end