lemboy-google-api-client 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  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 +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,46 @@
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/storage_v1/service.rb'
16
+ require 'google/apis/storage_v1/classes.rb'
17
+ require 'google/apis/storage_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Cloud Storage JSON API
22
+ #
23
+ # Stores and retrieves potentially large, immutable data objects.
24
+ #
25
+ # @see https://developers.google.com/storage/docs/json_api/
26
+ module StorageV1
27
+ VERSION = 'V1'
28
+ REVISION = '20170104'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+
33
+ # View your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
35
+
36
+ # Manage your data and permissions in Google Cloud Storage
37
+ AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
38
+
39
+ # View your data in Google Cloud Storage
40
+ AUTH_DEVSTORAGE_READ_ONLY = 'https://www.googleapis.com/auth/devstorage.read_only'
41
+
42
+ # Manage your data in Google Cloud Storage
43
+ AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,1255 @@
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 StorageV1
24
+
25
+ # A bucket.
26
+ class Bucket
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Access controls on the bucket.
30
+ # Corresponds to the JSON property `acl`
31
+ # @return [Array<Google::Apis::StorageV1::BucketAccessControl>]
32
+ attr_accessor :acl
33
+
34
+ # The bucket's Cross-Origin Resource Sharing (CORS) configuration.
35
+ # Corresponds to the JSON property `cors`
36
+ # @return [Array<Google::Apis::StorageV1::Bucket::CorsConfiguration>]
37
+ attr_accessor :cors_configurations
38
+
39
+ # Default access controls to apply to new objects when no ACL is provided.
40
+ # Corresponds to the JSON property `defaultObjectAcl`
41
+ # @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]
42
+ attr_accessor :default_object_acl
43
+
44
+ # HTTP 1.1 Entity tag for the bucket.
45
+ # Corresponds to the JSON property `etag`
46
+ # @return [String]
47
+ attr_accessor :etag
48
+
49
+ # The ID of the bucket.
50
+ # Corresponds to the JSON property `id`
51
+ # @return [String]
52
+ attr_accessor :id
53
+
54
+ # The kind of item this is. For buckets, this is always storage#bucket.
55
+ # Corresponds to the JSON property `kind`
56
+ # @return [String]
57
+ attr_accessor :kind
58
+
59
+ # The bucket's lifecycle configuration. See lifecycle management for more
60
+ # information.
61
+ # Corresponds to the JSON property `lifecycle`
62
+ # @return [Google::Apis::StorageV1::Bucket::Lifecycle]
63
+ attr_accessor :lifecycle
64
+
65
+ # The location of the bucket. Object data for objects in the bucket resides in
66
+ # physical storage within this region. Defaults to US. See the developer's guide
67
+ # for the authoritative list.
68
+ # Corresponds to the JSON property `location`
69
+ # @return [String]
70
+ attr_accessor :location
71
+
72
+ # The bucket's logging configuration, which defines the destination bucket and
73
+ # optional name prefix for the current bucket's logs.
74
+ # Corresponds to the JSON property `logging`
75
+ # @return [Google::Apis::StorageV1::Bucket::Logging]
76
+ attr_accessor :logging
77
+
78
+ # The metadata generation of this bucket.
79
+ # Corresponds to the JSON property `metageneration`
80
+ # @return [String]
81
+ attr_accessor :metageneration
82
+
83
+ # The name of the bucket.
84
+ # Corresponds to the JSON property `name`
85
+ # @return [String]
86
+ attr_accessor :name
87
+
88
+ # The owner of the bucket. This is always the project team's owner group.
89
+ # Corresponds to the JSON property `owner`
90
+ # @return [Google::Apis::StorageV1::Bucket::Owner]
91
+ attr_accessor :owner
92
+
93
+ # The project number of the project the bucket belongs to.
94
+ # Corresponds to the JSON property `projectNumber`
95
+ # @return [String]
96
+ attr_accessor :project_number
97
+
98
+ # The URI of this bucket.
99
+ # Corresponds to the JSON property `selfLink`
100
+ # @return [String]
101
+ attr_accessor :self_link
102
+
103
+ # The bucket's default storage class, used whenever no storageClass is specified
104
+ # for a newly-created object. This defines how objects in the bucket are stored
105
+ # and determines the SLA and the cost of storage. Values include MULTI_REGIONAL,
106
+ # REGIONAL, STANDARD, NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY. If
107
+ # this value is not specified when the bucket is created, it will default to
108
+ # STANDARD. For more information, see storage classes.
109
+ # Corresponds to the JSON property `storageClass`
110
+ # @return [String]
111
+ attr_accessor :storage_class
112
+
113
+ # The creation time of the bucket in RFC 3339 format.
114
+ # Corresponds to the JSON property `timeCreated`
115
+ # @return [DateTime]
116
+ attr_accessor :time_created
117
+
118
+ # The modification time of the bucket in RFC 3339 format.
119
+ # Corresponds to the JSON property `updated`
120
+ # @return [DateTime]
121
+ attr_accessor :updated
122
+
123
+ # The bucket's versioning configuration.
124
+ # Corresponds to the JSON property `versioning`
125
+ # @return [Google::Apis::StorageV1::Bucket::Versioning]
126
+ attr_accessor :versioning
127
+
128
+ # The bucket's website configuration, controlling how the service behaves when
129
+ # accessing bucket contents as a web site. See the Static Website Examples for
130
+ # more information.
131
+ # Corresponds to the JSON property `website`
132
+ # @return [Google::Apis::StorageV1::Bucket::Website]
133
+ attr_accessor :website
134
+
135
+ def initialize(**args)
136
+ update!(**args)
137
+ end
138
+
139
+ # Update properties of this object
140
+ def update!(**args)
141
+ @acl = args[:acl] if args.key?(:acl)
142
+ @cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations)
143
+ @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
144
+ @etag = args[:etag] if args.key?(:etag)
145
+ @id = args[:id] if args.key?(:id)
146
+ @kind = args[:kind] if args.key?(:kind)
147
+ @lifecycle = args[:lifecycle] if args.key?(:lifecycle)
148
+ @location = args[:location] if args.key?(:location)
149
+ @logging = args[:logging] if args.key?(:logging)
150
+ @metageneration = args[:metageneration] if args.key?(:metageneration)
151
+ @name = args[:name] if args.key?(:name)
152
+ @owner = args[:owner] if args.key?(:owner)
153
+ @project_number = args[:project_number] if args.key?(:project_number)
154
+ @self_link = args[:self_link] if args.key?(:self_link)
155
+ @storage_class = args[:storage_class] if args.key?(:storage_class)
156
+ @time_created = args[:time_created] if args.key?(:time_created)
157
+ @updated = args[:updated] if args.key?(:updated)
158
+ @versioning = args[:versioning] if args.key?(:versioning)
159
+ @website = args[:website] if args.key?(:website)
160
+ end
161
+
162
+ #
163
+ class CorsConfiguration
164
+ include Google::Apis::Core::Hashable
165
+
166
+ # The value, in seconds, to return in the Access-Control-Max-Age header used in
167
+ # preflight responses.
168
+ # Corresponds to the JSON property `maxAgeSeconds`
169
+ # @return [Fixnum]
170
+ attr_accessor :max_age_seconds
171
+
172
+ # The list of HTTP methods on which to include CORS response headers, (GET,
173
+ # OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "
174
+ # any method".
175
+ # Corresponds to the JSON property `method`
176
+ # @return [Array<String>]
177
+ attr_accessor :http_method
178
+
179
+ # The list of Origins eligible to receive CORS response headers. Note: "*" is
180
+ # permitted in the list of origins, and means "any Origin".
181
+ # Corresponds to the JSON property `origin`
182
+ # @return [Array<String>]
183
+ attr_accessor :origin
184
+
185
+ # The list of HTTP headers other than the simple response headers to give
186
+ # permission for the user-agent to share across domains.
187
+ # Corresponds to the JSON property `responseHeader`
188
+ # @return [Array<String>]
189
+ attr_accessor :response_header
190
+
191
+ def initialize(**args)
192
+ update!(**args)
193
+ end
194
+
195
+ # Update properties of this object
196
+ def update!(**args)
197
+ @max_age_seconds = args[:max_age_seconds] if args.key?(:max_age_seconds)
198
+ @http_method = args[:http_method] if args.key?(:http_method)
199
+ @origin = args[:origin] if args.key?(:origin)
200
+ @response_header = args[:response_header] if args.key?(:response_header)
201
+ end
202
+ end
203
+
204
+ # The bucket's lifecycle configuration. See lifecycle management for more
205
+ # information.
206
+ class Lifecycle
207
+ include Google::Apis::Core::Hashable
208
+
209
+ # A lifecycle management rule, which is made of an action to take and the
210
+ # condition(s) under which the action will be taken.
211
+ # Corresponds to the JSON property `rule`
212
+ # @return [Array<Google::Apis::StorageV1::Bucket::Lifecycle::Rule>]
213
+ attr_accessor :rule
214
+
215
+ def initialize(**args)
216
+ update!(**args)
217
+ end
218
+
219
+ # Update properties of this object
220
+ def update!(**args)
221
+ @rule = args[:rule] if args.key?(:rule)
222
+ end
223
+
224
+ #
225
+ class Rule
226
+ include Google::Apis::Core::Hashable
227
+
228
+ # The action to take.
229
+ # Corresponds to the JSON property `action`
230
+ # @return [Google::Apis::StorageV1::Bucket::Lifecycle::Rule::Action]
231
+ attr_accessor :action
232
+
233
+ # The condition(s) under which the action will be taken.
234
+ # Corresponds to the JSON property `condition`
235
+ # @return [Google::Apis::StorageV1::Bucket::Lifecycle::Rule::Condition]
236
+ attr_accessor :condition
237
+
238
+ def initialize(**args)
239
+ update!(**args)
240
+ end
241
+
242
+ # Update properties of this object
243
+ def update!(**args)
244
+ @action = args[:action] if args.key?(:action)
245
+ @condition = args[:condition] if args.key?(:condition)
246
+ end
247
+
248
+ # The action to take.
249
+ class Action
250
+ include Google::Apis::Core::Hashable
251
+
252
+ # Target storage class. Required iff the type of the action is SetStorageClass.
253
+ # Corresponds to the JSON property `storageClass`
254
+ # @return [String]
255
+ attr_accessor :storage_class
256
+
257
+ # Type of the action. Currently, only Delete and SetStorageClass are supported.
258
+ # Corresponds to the JSON property `type`
259
+ # @return [String]
260
+ attr_accessor :type
261
+
262
+ def initialize(**args)
263
+ update!(**args)
264
+ end
265
+
266
+ # Update properties of this object
267
+ def update!(**args)
268
+ @storage_class = args[:storage_class] if args.key?(:storage_class)
269
+ @type = args[:type] if args.key?(:type)
270
+ end
271
+ end
272
+
273
+ # The condition(s) under which the action will be taken.
274
+ class Condition
275
+ include Google::Apis::Core::Hashable
276
+
277
+ # Age of an object (in days). This condition is satisfied when an object reaches
278
+ # the specified age.
279
+ # Corresponds to the JSON property `age`
280
+ # @return [Fixnum]
281
+ attr_accessor :age
282
+
283
+ # A date in RFC 3339 format with only the date part (for instance, "2013-01-15").
284
+ # This condition is satisfied when an object is created before midnight of the
285
+ # specified date in UTC.
286
+ # Corresponds to the JSON property `createdBefore`
287
+ # @return [Date]
288
+ attr_accessor :created_before
289
+
290
+ # Relevant only for versioned objects. If the value is true, this condition
291
+ # matches live objects; if the value is false, it matches archived objects.
292
+ # Corresponds to the JSON property `isLive`
293
+ # @return [Boolean]
294
+ attr_accessor :is_live
295
+ alias_method :is_live?, :is_live
296
+
297
+ # Objects having any of the storage classes specified by this condition will be
298
+ # matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD,
299
+ # and DURABLE_REDUCED_AVAILABILITY.
300
+ # Corresponds to the JSON property `matchesStorageClass`
301
+ # @return [Array<String>]
302
+ attr_accessor :matches_storage_class
303
+
304
+ # Relevant only for versioned objects. If the value is N, this condition is
305
+ # satisfied when there are at least N versions (including the live version)
306
+ # newer than this version of the object.
307
+ # Corresponds to the JSON property `numNewerVersions`
308
+ # @return [Fixnum]
309
+ attr_accessor :num_newer_versions
310
+
311
+ def initialize(**args)
312
+ update!(**args)
313
+ end
314
+
315
+ # Update properties of this object
316
+ def update!(**args)
317
+ @age = args[:age] if args.key?(:age)
318
+ @created_before = args[:created_before] if args.key?(:created_before)
319
+ @is_live = args[:is_live] if args.key?(:is_live)
320
+ @matches_storage_class = args[:matches_storage_class] if args.key?(:matches_storage_class)
321
+ @num_newer_versions = args[:num_newer_versions] if args.key?(:num_newer_versions)
322
+ end
323
+ end
324
+ end
325
+ end
326
+
327
+ # The bucket's logging configuration, which defines the destination bucket and
328
+ # optional name prefix for the current bucket's logs.
329
+ class Logging
330
+ include Google::Apis::Core::Hashable
331
+
332
+ # The destination bucket where the current bucket's logs should be placed.
333
+ # Corresponds to the JSON property `logBucket`
334
+ # @return [String]
335
+ attr_accessor :log_bucket
336
+
337
+ # A prefix for log object names.
338
+ # Corresponds to the JSON property `logObjectPrefix`
339
+ # @return [String]
340
+ attr_accessor :log_object_prefix
341
+
342
+ def initialize(**args)
343
+ update!(**args)
344
+ end
345
+
346
+ # Update properties of this object
347
+ def update!(**args)
348
+ @log_bucket = args[:log_bucket] if args.key?(:log_bucket)
349
+ @log_object_prefix = args[:log_object_prefix] if args.key?(:log_object_prefix)
350
+ end
351
+ end
352
+
353
+ # The owner of the bucket. This is always the project team's owner group.
354
+ class Owner
355
+ include Google::Apis::Core::Hashable
356
+
357
+ # The entity, in the form project-owner-projectId.
358
+ # Corresponds to the JSON property `entity`
359
+ # @return [String]
360
+ attr_accessor :entity
361
+
362
+ # The ID for the entity.
363
+ # Corresponds to the JSON property `entityId`
364
+ # @return [String]
365
+ attr_accessor :entity_id
366
+
367
+ def initialize(**args)
368
+ update!(**args)
369
+ end
370
+
371
+ # Update properties of this object
372
+ def update!(**args)
373
+ @entity = args[:entity] if args.key?(:entity)
374
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
375
+ end
376
+ end
377
+
378
+ # The bucket's versioning configuration.
379
+ class Versioning
380
+ include Google::Apis::Core::Hashable
381
+
382
+ # While set to true, versioning is fully enabled for this bucket.
383
+ # Corresponds to the JSON property `enabled`
384
+ # @return [Boolean]
385
+ attr_accessor :enabled
386
+ alias_method :enabled?, :enabled
387
+
388
+ def initialize(**args)
389
+ update!(**args)
390
+ end
391
+
392
+ # Update properties of this object
393
+ def update!(**args)
394
+ @enabled = args[:enabled] if args.key?(:enabled)
395
+ end
396
+ end
397
+
398
+ # The bucket's website configuration, controlling how the service behaves when
399
+ # accessing bucket contents as a web site. See the Static Website Examples for
400
+ # more information.
401
+ class Website
402
+ include Google::Apis::Core::Hashable
403
+
404
+ # If the requested object path is missing, the service will ensure the path has
405
+ # a trailing '/', append this suffix, and attempt to retrieve the resulting
406
+ # object. This allows the creation of index.html objects to represent directory
407
+ # pages.
408
+ # Corresponds to the JSON property `mainPageSuffix`
409
+ # @return [String]
410
+ attr_accessor :main_page_suffix
411
+
412
+ # If the requested object path is missing, and any mainPageSuffix object is
413
+ # missing, if applicable, the service will return the named object from this
414
+ # bucket as the content for a 404 Not Found result.
415
+ # Corresponds to the JSON property `notFoundPage`
416
+ # @return [String]
417
+ attr_accessor :not_found_page
418
+
419
+ def initialize(**args)
420
+ update!(**args)
421
+ end
422
+
423
+ # Update properties of this object
424
+ def update!(**args)
425
+ @main_page_suffix = args[:main_page_suffix] if args.key?(:main_page_suffix)
426
+ @not_found_page = args[:not_found_page] if args.key?(:not_found_page)
427
+ end
428
+ end
429
+ end
430
+
431
+ # An access-control entry.
432
+ class BucketAccessControl
433
+ include Google::Apis::Core::Hashable
434
+
435
+ # The name of the bucket.
436
+ # Corresponds to the JSON property `bucket`
437
+ # @return [String]
438
+ attr_accessor :bucket
439
+
440
+ # The domain associated with the entity, if any.
441
+ # Corresponds to the JSON property `domain`
442
+ # @return [String]
443
+ attr_accessor :domain
444
+
445
+ # The email address associated with the entity, if any.
446
+ # Corresponds to the JSON property `email`
447
+ # @return [String]
448
+ attr_accessor :email
449
+
450
+ # The entity holding the permission, in one of the following forms:
451
+ # - user-userId
452
+ # - user-email
453
+ # - group-groupId
454
+ # - group-email
455
+ # - domain-domain
456
+ # - project-team-projectId
457
+ # - allUsers
458
+ # - allAuthenticatedUsers Examples:
459
+ # - The user liz@example.com would be user-liz@example.com.
460
+ # - The group example@googlegroups.com would be group-example@googlegroups.com.
461
+ # - To refer to all members of the Google Apps for Business domain example.com,
462
+ # the entity would be domain-example.com.
463
+ # Corresponds to the JSON property `entity`
464
+ # @return [String]
465
+ attr_accessor :entity
466
+
467
+ # The ID for the entity, if any.
468
+ # Corresponds to the JSON property `entityId`
469
+ # @return [String]
470
+ attr_accessor :entity_id
471
+
472
+ # HTTP 1.1 Entity tag for the access-control entry.
473
+ # Corresponds to the JSON property `etag`
474
+ # @return [String]
475
+ attr_accessor :etag
476
+
477
+ # The ID of the access-control entry.
478
+ # Corresponds to the JSON property `id`
479
+ # @return [String]
480
+ attr_accessor :id
481
+
482
+ # The kind of item this is. For bucket access control entries, this is always
483
+ # storage#bucketAccessControl.
484
+ # Corresponds to the JSON property `kind`
485
+ # @return [String]
486
+ attr_accessor :kind
487
+
488
+ # The project team associated with the entity, if any.
489
+ # Corresponds to the JSON property `projectTeam`
490
+ # @return [Google::Apis::StorageV1::BucketAccessControl::ProjectTeam]
491
+ attr_accessor :project_team
492
+
493
+ # The access permission for the entity.
494
+ # Corresponds to the JSON property `role`
495
+ # @return [String]
496
+ attr_accessor :role
497
+
498
+ # The link to this access-control entry.
499
+ # Corresponds to the JSON property `selfLink`
500
+ # @return [String]
501
+ attr_accessor :self_link
502
+
503
+ def initialize(**args)
504
+ update!(**args)
505
+ end
506
+
507
+ # Update properties of this object
508
+ def update!(**args)
509
+ @bucket = args[:bucket] if args.key?(:bucket)
510
+ @domain = args[:domain] if args.key?(:domain)
511
+ @email = args[:email] if args.key?(:email)
512
+ @entity = args[:entity] if args.key?(:entity)
513
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
514
+ @etag = args[:etag] if args.key?(:etag)
515
+ @id = args[:id] if args.key?(:id)
516
+ @kind = args[:kind] if args.key?(:kind)
517
+ @project_team = args[:project_team] if args.key?(:project_team)
518
+ @role = args[:role] if args.key?(:role)
519
+ @self_link = args[:self_link] if args.key?(:self_link)
520
+ end
521
+
522
+ # The project team associated with the entity, if any.
523
+ class ProjectTeam
524
+ include Google::Apis::Core::Hashable
525
+
526
+ # The project number.
527
+ # Corresponds to the JSON property `projectNumber`
528
+ # @return [String]
529
+ attr_accessor :project_number
530
+
531
+ # The team.
532
+ # Corresponds to the JSON property `team`
533
+ # @return [String]
534
+ attr_accessor :team
535
+
536
+ def initialize(**args)
537
+ update!(**args)
538
+ end
539
+
540
+ # Update properties of this object
541
+ def update!(**args)
542
+ @project_number = args[:project_number] if args.key?(:project_number)
543
+ @team = args[:team] if args.key?(:team)
544
+ end
545
+ end
546
+ end
547
+
548
+ # An access-control list.
549
+ class BucketAccessControls
550
+ include Google::Apis::Core::Hashable
551
+
552
+ # The list of items.
553
+ # Corresponds to the JSON property `items`
554
+ # @return [Array<Google::Apis::StorageV1::BucketAccessControl>]
555
+ attr_accessor :items
556
+
557
+ # The kind of item this is. For lists of bucket access control entries, this is
558
+ # always storage#bucketAccessControls.
559
+ # Corresponds to the JSON property `kind`
560
+ # @return [String]
561
+ attr_accessor :kind
562
+
563
+ def initialize(**args)
564
+ update!(**args)
565
+ end
566
+
567
+ # Update properties of this object
568
+ def update!(**args)
569
+ @items = args[:items] if args.key?(:items)
570
+ @kind = args[:kind] if args.key?(:kind)
571
+ end
572
+ end
573
+
574
+ # A list of buckets.
575
+ class Buckets
576
+ include Google::Apis::Core::Hashable
577
+
578
+ # The list of items.
579
+ # Corresponds to the JSON property `items`
580
+ # @return [Array<Google::Apis::StorageV1::Bucket>]
581
+ attr_accessor :items
582
+
583
+ # The kind of item this is. For lists of buckets, this is always storage#buckets.
584
+ # Corresponds to the JSON property `kind`
585
+ # @return [String]
586
+ attr_accessor :kind
587
+
588
+ # The continuation token, used to page through large result sets. Provide this
589
+ # value in a subsequent request to return the next page of results.
590
+ # Corresponds to the JSON property `nextPageToken`
591
+ # @return [String]
592
+ attr_accessor :next_page_token
593
+
594
+ def initialize(**args)
595
+ update!(**args)
596
+ end
597
+
598
+ # Update properties of this object
599
+ def update!(**args)
600
+ @items = args[:items] if args.key?(:items)
601
+ @kind = args[:kind] if args.key?(:kind)
602
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
603
+ end
604
+ end
605
+
606
+ # An notification channel used to watch for resource changes.
607
+ class Channel
608
+ include Google::Apis::Core::Hashable
609
+
610
+ # The address where notifications are delivered for this channel.
611
+ # Corresponds to the JSON property `address`
612
+ # @return [String]
613
+ attr_accessor :address
614
+
615
+ # Date and time of notification channel expiration, expressed as a Unix
616
+ # timestamp, in milliseconds. Optional.
617
+ # Corresponds to the JSON property `expiration`
618
+ # @return [String]
619
+ attr_accessor :expiration
620
+
621
+ # A UUID or similar unique string that identifies this channel.
622
+ # Corresponds to the JSON property `id`
623
+ # @return [String]
624
+ attr_accessor :id
625
+
626
+ # Identifies this as a notification channel used to watch for changes to a
627
+ # resource. Value: the fixed string "api#channel".
628
+ # Corresponds to the JSON property `kind`
629
+ # @return [String]
630
+ attr_accessor :kind
631
+
632
+ # Additional parameters controlling delivery channel behavior. Optional.
633
+ # Corresponds to the JSON property `params`
634
+ # @return [Hash<String,String>]
635
+ attr_accessor :params
636
+
637
+ # A Boolean value to indicate whether payload is wanted. Optional.
638
+ # Corresponds to the JSON property `payload`
639
+ # @return [Boolean]
640
+ attr_accessor :payload
641
+ alias_method :payload?, :payload
642
+
643
+ # An opaque ID that identifies the resource being watched on this channel.
644
+ # Stable across different API versions.
645
+ # Corresponds to the JSON property `resourceId`
646
+ # @return [String]
647
+ attr_accessor :resource_id
648
+
649
+ # A version-specific identifier for the watched resource.
650
+ # Corresponds to the JSON property `resourceUri`
651
+ # @return [String]
652
+ attr_accessor :resource_uri
653
+
654
+ # An arbitrary string delivered to the target address with each notification
655
+ # delivered over this channel. Optional.
656
+ # Corresponds to the JSON property `token`
657
+ # @return [String]
658
+ attr_accessor :token
659
+
660
+ # The type of delivery mechanism used for this channel.
661
+ # Corresponds to the JSON property `type`
662
+ # @return [String]
663
+ attr_accessor :type
664
+
665
+ def initialize(**args)
666
+ update!(**args)
667
+ end
668
+
669
+ # Update properties of this object
670
+ def update!(**args)
671
+ @address = args[:address] if args.key?(:address)
672
+ @expiration = args[:expiration] if args.key?(:expiration)
673
+ @id = args[:id] if args.key?(:id)
674
+ @kind = args[:kind] if args.key?(:kind)
675
+ @params = args[:params] if args.key?(:params)
676
+ @payload = args[:payload] if args.key?(:payload)
677
+ @resource_id = args[:resource_id] if args.key?(:resource_id)
678
+ @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
679
+ @token = args[:token] if args.key?(:token)
680
+ @type = args[:type] if args.key?(:type)
681
+ end
682
+ end
683
+
684
+ # A Compose request.
685
+ class ComposeRequest
686
+ include Google::Apis::Core::Hashable
687
+
688
+ # An object.
689
+ # Corresponds to the JSON property `destination`
690
+ # @return [Google::Apis::StorageV1::Object]
691
+ attr_accessor :destination
692
+
693
+ # The kind of item this is.
694
+ # Corresponds to the JSON property `kind`
695
+ # @return [String]
696
+ attr_accessor :kind
697
+
698
+ # The list of source objects that will be concatenated into a single object.
699
+ # Corresponds to the JSON property `sourceObjects`
700
+ # @return [Array<Google::Apis::StorageV1::ComposeRequest::SourceObject>]
701
+ attr_accessor :source_objects
702
+
703
+ def initialize(**args)
704
+ update!(**args)
705
+ end
706
+
707
+ # Update properties of this object
708
+ def update!(**args)
709
+ @destination = args[:destination] if args.key?(:destination)
710
+ @kind = args[:kind] if args.key?(:kind)
711
+ @source_objects = args[:source_objects] if args.key?(:source_objects)
712
+ end
713
+
714
+ #
715
+ class SourceObject
716
+ include Google::Apis::Core::Hashable
717
+
718
+ # The generation of this object to use as the source.
719
+ # Corresponds to the JSON property `generation`
720
+ # @return [String]
721
+ attr_accessor :generation
722
+
723
+ # The source object's name. The source object's bucket is implicitly the
724
+ # destination bucket.
725
+ # Corresponds to the JSON property `name`
726
+ # @return [String]
727
+ attr_accessor :name
728
+
729
+ # Conditions that must be met for this operation to execute.
730
+ # Corresponds to the JSON property `objectPreconditions`
731
+ # @return [Google::Apis::StorageV1::ComposeRequest::SourceObject::ObjectPreconditions]
732
+ attr_accessor :object_preconditions
733
+
734
+ def initialize(**args)
735
+ update!(**args)
736
+ end
737
+
738
+ # Update properties of this object
739
+ def update!(**args)
740
+ @generation = args[:generation] if args.key?(:generation)
741
+ @name = args[:name] if args.key?(:name)
742
+ @object_preconditions = args[:object_preconditions] if args.key?(:object_preconditions)
743
+ end
744
+
745
+ # Conditions that must be met for this operation to execute.
746
+ class ObjectPreconditions
747
+ include Google::Apis::Core::Hashable
748
+
749
+ # Only perform the composition if the generation of the source object that would
750
+ # be used matches this value. If this value and a generation are both specified,
751
+ # they must be the same value or the call will fail.
752
+ # Corresponds to the JSON property `ifGenerationMatch`
753
+ # @return [String]
754
+ attr_accessor :if_generation_match
755
+
756
+ def initialize(**args)
757
+ update!(**args)
758
+ end
759
+
760
+ # Update properties of this object
761
+ def update!(**args)
762
+ @if_generation_match = args[:if_generation_match] if args.key?(:if_generation_match)
763
+ end
764
+ end
765
+ end
766
+ end
767
+
768
+ # An object.
769
+ class Object
770
+ include Google::Apis::Core::Hashable
771
+
772
+ # Access controls on the object.
773
+ # Corresponds to the JSON property `acl`
774
+ # @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]
775
+ attr_accessor :acl
776
+
777
+ # The name of the bucket containing this object.
778
+ # Corresponds to the JSON property `bucket`
779
+ # @return [String]
780
+ attr_accessor :bucket
781
+
782
+ # Cache-Control directive for the object data. If omitted, and the object is
783
+ # accessible to all anonymous users, the default will be public, max-age=3600.
784
+ # Corresponds to the JSON property `cacheControl`
785
+ # @return [String]
786
+ attr_accessor :cache_control
787
+
788
+ # Number of underlying components that make up this object. Components are
789
+ # accumulated by compose operations.
790
+ # Corresponds to the JSON property `componentCount`
791
+ # @return [Fixnum]
792
+ attr_accessor :component_count
793
+
794
+ # Content-Disposition of the object data.
795
+ # Corresponds to the JSON property `contentDisposition`
796
+ # @return [String]
797
+ attr_accessor :content_disposition
798
+
799
+ # Content-Encoding of the object data.
800
+ # Corresponds to the JSON property `contentEncoding`
801
+ # @return [String]
802
+ attr_accessor :content_encoding
803
+
804
+ # Content-Language of the object data.
805
+ # Corresponds to the JSON property `contentLanguage`
806
+ # @return [String]
807
+ attr_accessor :content_language
808
+
809
+ # Content-Type of the object data. If contentType is not specified, object
810
+ # downloads will be served as application/octet-stream.
811
+ # Corresponds to the JSON property `contentType`
812
+ # @return [String]
813
+ attr_accessor :content_type
814
+
815
+ # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in
816
+ # big-endian byte order. For more information about using the CRC32c checksum,
817
+ # see Hashes and ETags: Best Practices.
818
+ # Corresponds to the JSON property `crc32c`
819
+ # @return [String]
820
+ attr_accessor :crc32c
821
+
822
+ # Metadata of customer-supplied encryption key, if the object is encrypted by
823
+ # such a key.
824
+ # Corresponds to the JSON property `customerEncryption`
825
+ # @return [Google::Apis::StorageV1::Object::CustomerEncryption]
826
+ attr_accessor :customer_encryption
827
+
828
+ # HTTP 1.1 Entity tag for the object.
829
+ # Corresponds to the JSON property `etag`
830
+ # @return [String]
831
+ attr_accessor :etag
832
+
833
+ # The content generation of this object. Used for object versioning.
834
+ # Corresponds to the JSON property `generation`
835
+ # @return [String]
836
+ attr_accessor :generation
837
+
838
+ # The ID of the object.
839
+ # Corresponds to the JSON property `id`
840
+ # @return [String]
841
+ attr_accessor :id
842
+
843
+ # The kind of item this is. For objects, this is always storage#object.
844
+ # Corresponds to the JSON property `kind`
845
+ # @return [String]
846
+ attr_accessor :kind
847
+
848
+ # MD5 hash of the data; encoded using base64. For more information about using
849
+ # the MD5 hash, see Hashes and ETags: Best Practices.
850
+ # Corresponds to the JSON property `md5Hash`
851
+ # @return [String]
852
+ attr_accessor :md5_hash
853
+
854
+ # Media download link.
855
+ # Corresponds to the JSON property `mediaLink`
856
+ # @return [String]
857
+ attr_accessor :media_link
858
+
859
+ # User-provided metadata, in key/value pairs.
860
+ # Corresponds to the JSON property `metadata`
861
+ # @return [Hash<String,String>]
862
+ attr_accessor :metadata
863
+
864
+ # The version of the metadata for this object at this generation. Used for
865
+ # preconditions and for detecting changes in metadata. A metageneration number
866
+ # is only meaningful in the context of a particular generation of a particular
867
+ # object.
868
+ # Corresponds to the JSON property `metageneration`
869
+ # @return [String]
870
+ attr_accessor :metageneration
871
+
872
+ # The name of this object. Required if not specified by URL parameter.
873
+ # Corresponds to the JSON property `name`
874
+ # @return [String]
875
+ attr_accessor :name
876
+
877
+ # The owner of the object. This will always be the uploader of the object.
878
+ # Corresponds to the JSON property `owner`
879
+ # @return [Google::Apis::StorageV1::Object::Owner]
880
+ attr_accessor :owner
881
+
882
+ # The link to this object.
883
+ # Corresponds to the JSON property `selfLink`
884
+ # @return [String]
885
+ attr_accessor :self_link
886
+
887
+ # Content-Length of the data in bytes.
888
+ # Corresponds to the JSON property `size`
889
+ # @return [String]
890
+ attr_accessor :size
891
+
892
+ # Storage class of the object.
893
+ # Corresponds to the JSON property `storageClass`
894
+ # @return [String]
895
+ attr_accessor :storage_class
896
+
897
+ # The creation time of the object in RFC 3339 format.
898
+ # Corresponds to the JSON property `timeCreated`
899
+ # @return [DateTime]
900
+ attr_accessor :time_created
901
+
902
+ # The deletion time of the object in RFC 3339 format. Will be returned if and
903
+ # only if this version of the object has been deleted.
904
+ # Corresponds to the JSON property `timeDeleted`
905
+ # @return [DateTime]
906
+ attr_accessor :time_deleted
907
+
908
+ # The time at which the object's storage class was last changed. When the object
909
+ # is initially created, it will be set to timeCreated.
910
+ # Corresponds to the JSON property `timeStorageClassUpdated`
911
+ # @return [DateTime]
912
+ attr_accessor :time_storage_class_updated
913
+
914
+ # The modification time of the object metadata in RFC 3339 format.
915
+ # Corresponds to the JSON property `updated`
916
+ # @return [DateTime]
917
+ attr_accessor :updated
918
+
919
+ def initialize(**args)
920
+ update!(**args)
921
+ end
922
+
923
+ # Update properties of this object
924
+ def update!(**args)
925
+ @acl = args[:acl] if args.key?(:acl)
926
+ @bucket = args[:bucket] if args.key?(:bucket)
927
+ @cache_control = args[:cache_control] if args.key?(:cache_control)
928
+ @component_count = args[:component_count] if args.key?(:component_count)
929
+ @content_disposition = args[:content_disposition] if args.key?(:content_disposition)
930
+ @content_encoding = args[:content_encoding] if args.key?(:content_encoding)
931
+ @content_language = args[:content_language] if args.key?(:content_language)
932
+ @content_type = args[:content_type] if args.key?(:content_type)
933
+ @crc32c = args[:crc32c] if args.key?(:crc32c)
934
+ @customer_encryption = args[:customer_encryption] if args.key?(:customer_encryption)
935
+ @etag = args[:etag] if args.key?(:etag)
936
+ @generation = args[:generation] if args.key?(:generation)
937
+ @id = args[:id] if args.key?(:id)
938
+ @kind = args[:kind] if args.key?(:kind)
939
+ @md5_hash = args[:md5_hash] if args.key?(:md5_hash)
940
+ @media_link = args[:media_link] if args.key?(:media_link)
941
+ @metadata = args[:metadata] if args.key?(:metadata)
942
+ @metageneration = args[:metageneration] if args.key?(:metageneration)
943
+ @name = args[:name] if args.key?(:name)
944
+ @owner = args[:owner] if args.key?(:owner)
945
+ @self_link = args[:self_link] if args.key?(:self_link)
946
+ @size = args[:size] if args.key?(:size)
947
+ @storage_class = args[:storage_class] if args.key?(:storage_class)
948
+ @time_created = args[:time_created] if args.key?(:time_created)
949
+ @time_deleted = args[:time_deleted] if args.key?(:time_deleted)
950
+ @time_storage_class_updated = args[:time_storage_class_updated] if args.key?(:time_storage_class_updated)
951
+ @updated = args[:updated] if args.key?(:updated)
952
+ end
953
+
954
+ # Metadata of customer-supplied encryption key, if the object is encrypted by
955
+ # such a key.
956
+ class CustomerEncryption
957
+ include Google::Apis::Core::Hashable
958
+
959
+ # The encryption algorithm.
960
+ # Corresponds to the JSON property `encryptionAlgorithm`
961
+ # @return [String]
962
+ attr_accessor :encryption_algorithm
963
+
964
+ # SHA256 hash value of the encryption key.
965
+ # Corresponds to the JSON property `keySha256`
966
+ # @return [String]
967
+ attr_accessor :key_sha256
968
+
969
+ def initialize(**args)
970
+ update!(**args)
971
+ end
972
+
973
+ # Update properties of this object
974
+ def update!(**args)
975
+ @encryption_algorithm = args[:encryption_algorithm] if args.key?(:encryption_algorithm)
976
+ @key_sha256 = args[:key_sha256] if args.key?(:key_sha256)
977
+ end
978
+ end
979
+
980
+ # The owner of the object. This will always be the uploader of the object.
981
+ class Owner
982
+ include Google::Apis::Core::Hashable
983
+
984
+ # The entity, in the form user-userId.
985
+ # Corresponds to the JSON property `entity`
986
+ # @return [String]
987
+ attr_accessor :entity
988
+
989
+ # The ID for the entity.
990
+ # Corresponds to the JSON property `entityId`
991
+ # @return [String]
992
+ attr_accessor :entity_id
993
+
994
+ def initialize(**args)
995
+ update!(**args)
996
+ end
997
+
998
+ # Update properties of this object
999
+ def update!(**args)
1000
+ @entity = args[:entity] if args.key?(:entity)
1001
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
1002
+ end
1003
+ end
1004
+ end
1005
+
1006
+ # An access-control entry.
1007
+ class ObjectAccessControl
1008
+ include Google::Apis::Core::Hashable
1009
+
1010
+ # The name of the bucket.
1011
+ # Corresponds to the JSON property `bucket`
1012
+ # @return [String]
1013
+ attr_accessor :bucket
1014
+
1015
+ # The domain associated with the entity, if any.
1016
+ # Corresponds to the JSON property `domain`
1017
+ # @return [String]
1018
+ attr_accessor :domain
1019
+
1020
+ # The email address associated with the entity, if any.
1021
+ # Corresponds to the JSON property `email`
1022
+ # @return [String]
1023
+ attr_accessor :email
1024
+
1025
+ # The entity holding the permission, in one of the following forms:
1026
+ # - user-userId
1027
+ # - user-email
1028
+ # - group-groupId
1029
+ # - group-email
1030
+ # - domain-domain
1031
+ # - project-team-projectId
1032
+ # - allUsers
1033
+ # - allAuthenticatedUsers Examples:
1034
+ # - The user liz@example.com would be user-liz@example.com.
1035
+ # - The group example@googlegroups.com would be group-example@googlegroups.com.
1036
+ # - To refer to all members of the Google Apps for Business domain example.com,
1037
+ # the entity would be domain-example.com.
1038
+ # Corresponds to the JSON property `entity`
1039
+ # @return [String]
1040
+ attr_accessor :entity
1041
+
1042
+ # The ID for the entity, if any.
1043
+ # Corresponds to the JSON property `entityId`
1044
+ # @return [String]
1045
+ attr_accessor :entity_id
1046
+
1047
+ # HTTP 1.1 Entity tag for the access-control entry.
1048
+ # Corresponds to the JSON property `etag`
1049
+ # @return [String]
1050
+ attr_accessor :etag
1051
+
1052
+ # The content generation of the object, if applied to an object.
1053
+ # Corresponds to the JSON property `generation`
1054
+ # @return [String]
1055
+ attr_accessor :generation
1056
+
1057
+ # The ID of the access-control entry.
1058
+ # Corresponds to the JSON property `id`
1059
+ # @return [String]
1060
+ attr_accessor :id
1061
+
1062
+ # The kind of item this is. For object access control entries, this is always
1063
+ # storage#objectAccessControl.
1064
+ # Corresponds to the JSON property `kind`
1065
+ # @return [String]
1066
+ attr_accessor :kind
1067
+
1068
+ # The name of the object, if applied to an object.
1069
+ # Corresponds to the JSON property `object`
1070
+ # @return [String]
1071
+ attr_accessor :object
1072
+
1073
+ # The project team associated with the entity, if any.
1074
+ # Corresponds to the JSON property `projectTeam`
1075
+ # @return [Google::Apis::StorageV1::ObjectAccessControl::ProjectTeam]
1076
+ attr_accessor :project_team
1077
+
1078
+ # The access permission for the entity.
1079
+ # Corresponds to the JSON property `role`
1080
+ # @return [String]
1081
+ attr_accessor :role
1082
+
1083
+ # The link to this access-control entry.
1084
+ # Corresponds to the JSON property `selfLink`
1085
+ # @return [String]
1086
+ attr_accessor :self_link
1087
+
1088
+ def initialize(**args)
1089
+ update!(**args)
1090
+ end
1091
+
1092
+ # Update properties of this object
1093
+ def update!(**args)
1094
+ @bucket = args[:bucket] if args.key?(:bucket)
1095
+ @domain = args[:domain] if args.key?(:domain)
1096
+ @email = args[:email] if args.key?(:email)
1097
+ @entity = args[:entity] if args.key?(:entity)
1098
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
1099
+ @etag = args[:etag] if args.key?(:etag)
1100
+ @generation = args[:generation] if args.key?(:generation)
1101
+ @id = args[:id] if args.key?(:id)
1102
+ @kind = args[:kind] if args.key?(:kind)
1103
+ @object = args[:object] if args.key?(:object)
1104
+ @project_team = args[:project_team] if args.key?(:project_team)
1105
+ @role = args[:role] if args.key?(:role)
1106
+ @self_link = args[:self_link] if args.key?(:self_link)
1107
+ end
1108
+
1109
+ # The project team associated with the entity, if any.
1110
+ class ProjectTeam
1111
+ include Google::Apis::Core::Hashable
1112
+
1113
+ # The project number.
1114
+ # Corresponds to the JSON property `projectNumber`
1115
+ # @return [String]
1116
+ attr_accessor :project_number
1117
+
1118
+ # The team.
1119
+ # Corresponds to the JSON property `team`
1120
+ # @return [String]
1121
+ attr_accessor :team
1122
+
1123
+ def initialize(**args)
1124
+ update!(**args)
1125
+ end
1126
+
1127
+ # Update properties of this object
1128
+ def update!(**args)
1129
+ @project_number = args[:project_number] if args.key?(:project_number)
1130
+ @team = args[:team] if args.key?(:team)
1131
+ end
1132
+ end
1133
+ end
1134
+
1135
+ # An access-control list.
1136
+ class ObjectAccessControls
1137
+ include Google::Apis::Core::Hashable
1138
+
1139
+ # The list of items.
1140
+ # Corresponds to the JSON property `items`
1141
+ # @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]
1142
+ attr_accessor :items
1143
+
1144
+ # The kind of item this is. For lists of object access control entries, this is
1145
+ # always storage#objectAccessControls.
1146
+ # Corresponds to the JSON property `kind`
1147
+ # @return [String]
1148
+ attr_accessor :kind
1149
+
1150
+ def initialize(**args)
1151
+ update!(**args)
1152
+ end
1153
+
1154
+ # Update properties of this object
1155
+ def update!(**args)
1156
+ @items = args[:items] if args.key?(:items)
1157
+ @kind = args[:kind] if args.key?(:kind)
1158
+ end
1159
+ end
1160
+
1161
+ # A list of objects.
1162
+ class Objects
1163
+ include Google::Apis::Core::Hashable
1164
+
1165
+ # The list of items.
1166
+ # Corresponds to the JSON property `items`
1167
+ # @return [Array<Google::Apis::StorageV1::Object>]
1168
+ attr_accessor :items
1169
+
1170
+ # The kind of item this is. For lists of objects, this is always storage#objects.
1171
+ # Corresponds to the JSON property `kind`
1172
+ # @return [String]
1173
+ attr_accessor :kind
1174
+
1175
+ # The continuation token, used to page through large result sets. Provide this
1176
+ # value in a subsequent request to return the next page of results.
1177
+ # Corresponds to the JSON property `nextPageToken`
1178
+ # @return [String]
1179
+ attr_accessor :next_page_token
1180
+
1181
+ # The list of prefixes of objects matching-but-not-listed up to and including
1182
+ # the requested delimiter.
1183
+ # Corresponds to the JSON property `prefixes`
1184
+ # @return [Array<String>]
1185
+ attr_accessor :prefixes
1186
+
1187
+ def initialize(**args)
1188
+ update!(**args)
1189
+ end
1190
+
1191
+ # Update properties of this object
1192
+ def update!(**args)
1193
+ @items = args[:items] if args.key?(:items)
1194
+ @kind = args[:kind] if args.key?(:kind)
1195
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1196
+ @prefixes = args[:prefixes] if args.key?(:prefixes)
1197
+ end
1198
+ end
1199
+
1200
+ # A rewrite response.
1201
+ class RewriteResponse
1202
+ include Google::Apis::Core::Hashable
1203
+
1204
+ # true if the copy is finished; otherwise, false if the copy is in progress.
1205
+ # This property is always present in the response.
1206
+ # Corresponds to the JSON property `done`
1207
+ # @return [Boolean]
1208
+ attr_accessor :done
1209
+ alias_method :done?, :done
1210
+
1211
+ # The kind of item this is.
1212
+ # Corresponds to the JSON property `kind`
1213
+ # @return [String]
1214
+ attr_accessor :kind
1215
+
1216
+ # The total size of the object being copied in bytes. This property is always
1217
+ # present in the response.
1218
+ # Corresponds to the JSON property `objectSize`
1219
+ # @return [String]
1220
+ attr_accessor :object_size
1221
+
1222
+ # An object.
1223
+ # Corresponds to the JSON property `resource`
1224
+ # @return [Google::Apis::StorageV1::Object]
1225
+ attr_accessor :resource
1226
+
1227
+ # A token to use in subsequent requests to continue copying data. This token is
1228
+ # present in the response only when there is more data to copy.
1229
+ # Corresponds to the JSON property `rewriteToken`
1230
+ # @return [String]
1231
+ attr_accessor :rewrite_token
1232
+
1233
+ # The total bytes written so far, which can be used to provide a waiting user
1234
+ # with a progress indicator. This property is always present in the response.
1235
+ # Corresponds to the JSON property `totalBytesRewritten`
1236
+ # @return [String]
1237
+ attr_accessor :total_bytes_rewritten
1238
+
1239
+ def initialize(**args)
1240
+ update!(**args)
1241
+ end
1242
+
1243
+ # Update properties of this object
1244
+ def update!(**args)
1245
+ @done = args[:done] if args.key?(:done)
1246
+ @kind = args[:kind] if args.key?(:kind)
1247
+ @object_size = args[:object_size] if args.key?(:object_size)
1248
+ @resource = args[:resource] if args.key?(:resource)
1249
+ @rewrite_token = args[:rewrite_token] if args.key?(:rewrite_token)
1250
+ @total_bytes_rewritten = args[:total_bytes_rewritten] if args.key?(:total_bytes_rewritten)
1251
+ end
1252
+ end
1253
+ end
1254
+ end
1255
+ end