google-api-client 0.8.7 → 0.9.pre1

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