google-api-client 0.8.3 → 0.9

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