google-api-client 0.34.1 → 0.35.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (312) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +16 -3
  3. data/CHANGELOG.md +114 -0
  4. data/OVERVIEW.md +36 -0
  5. data/README.md +49 -1
  6. data/Rakefile +1 -1
  7. data/docs/api-keys.md +20 -0
  8. data/docs/auth.md +53 -0
  9. data/docs/client-secrets.md +69 -0
  10. data/docs/getting-started.md +340 -0
  11. data/docs/installation.md +0 -0
  12. data/docs/logging.md +34 -0
  13. data/docs/media-upload.md +25 -0
  14. data/docs/oauth-installed.md +191 -0
  15. data/docs/oauth-server.md +135 -0
  16. data/docs/oauth-web.md +280 -0
  17. data/docs/oauth.md +268 -0
  18. data/docs/pagination.md +29 -0
  19. data/docs/performance.md +25 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +9 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +1 -0
  24. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  25. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +9 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  27. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  28. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  29. data/generated/google/apis/androidpublisher_v3/classes.rb +93 -0
  30. data/generated/google/apis/androidpublisher_v3/representations.rb +49 -0
  31. data/generated/google/apis/appengine_v1.rb +1 -1
  32. data/generated/google/apis/appengine_v1beta.rb +1 -1
  33. data/generated/google/apis/appsmarket_v2.rb +1 -1
  34. data/generated/google/apis/bigquery_v2.rb +1 -1
  35. data/generated/google/apis/bigquery_v2/classes.rb +46 -4
  36. data/generated/google/apis/bigquery_v2/representations.rb +17 -0
  37. data/generated/google/apis/bigquery_v2/service.rb +1 -5
  38. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  39. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -5
  40. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  41. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -4
  42. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  43. data/generated/google/apis/bigqueryreservation_v1/classes.rb +0 -21
  44. data/generated/google/apis/bigqueryreservation_v1/representations.rb +0 -13
  45. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  46. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +116 -1
  47. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +35 -0
  48. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +71 -0
  49. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  50. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +61 -77
  51. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +16 -17
  52. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +112 -78
  53. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  54. data/generated/google/apis/bigtableadmin_v1/classes.rb +1 -1
  55. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  56. data/generated/google/apis/bigtableadmin_v2/classes.rb +1 -1
  57. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
  58. data/generated/google/apis/{sqladmin_v1beta4.rb → billingbudgets_v1beta1.rb} +10 -13
  59. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +392 -0
  60. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +191 -0
  61. data/generated/google/apis/billingbudgets_v1beta1/service.rb +233 -0
  62. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  63. data/generated/google/apis/binaryauthorization_v1/classes.rb +6 -5
  64. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  65. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -5
  66. data/generated/google/apis/books_v1.rb +1 -1
  67. data/generated/google/apis/books_v1/classes.rb +20 -0
  68. data/generated/google/apis/books_v1/representations.rb +3 -0
  69. data/generated/google/apis/calendar_v3.rb +1 -1
  70. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  71. data/generated/google/apis/calendar_v3/service.rb +18 -30
  72. data/generated/google/apis/civicinfo_v2.rb +1 -1
  73. data/generated/google/apis/civicinfo_v2/classes.rb +0 -156
  74. data/generated/google/apis/civicinfo_v2/representations.rb +0 -58
  75. data/generated/google/apis/cloudasset_v1.rb +1 -1
  76. data/generated/google/apis/cloudasset_v1/classes.rb +6 -5
  77. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  78. data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -5
  79. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  80. data/generated/google/apis/cloudbilling_v1/classes.rb +17 -0
  81. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  82. data/generated/google/apis/cloudbuild_v1/classes.rb +8 -2
  83. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  84. data/generated/google/apis/cloudbuild_v1/service.rb +18 -18
  85. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  86. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -2
  87. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  88. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +4 -1
  89. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  90. data/generated/google/apis/cloudfunctions_v1/classes.rb +13 -5
  91. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  92. data/generated/google/apis/cloudfunctions_v1/service.rb +3 -1
  93. data/generated/google/apis/cloudiot_v1.rb +1 -1
  94. data/generated/google/apis/cloudiot_v1/classes.rb +6 -5
  95. data/generated/google/apis/cloudkms_v1.rb +1 -1
  96. data/generated/google/apis/cloudkms_v1/classes.rb +6 -5
  97. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  98. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +6 -5
  99. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  100. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
  101. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  102. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -5
  103. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  104. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -5
  105. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  106. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -5
  107. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  108. data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
  109. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  110. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
  111. data/generated/google/apis/cloudsearch_v1.rb +8 -8
  112. data/generated/google/apis/cloudsearch_v1/classes.rb +5 -130
  113. data/generated/google/apis/cloudsearch_v1/representations.rb +0 -75
  114. data/generated/google/apis/cloudsearch_v1/service.rb +42 -7
  115. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  116. data/generated/google/apis/cloudtasks_v2/classes.rb +212 -5
  117. data/generated/google/apis/cloudtasks_v2/representations.rb +50 -0
  118. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  119. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +6 -5
  120. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  121. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +6 -5
  122. data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
  123. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +14 -19
  124. data/generated/google/apis/compute_alpha.rb +1 -1
  125. data/generated/google/apis/compute_alpha/classes.rb +75 -12
  126. data/generated/google/apis/compute_alpha/representations.rb +2 -0
  127. data/generated/google/apis/compute_beta.rb +1 -1
  128. data/generated/google/apis/compute_beta/classes.rb +54 -10
  129. data/generated/google/apis/compute_v1.rb +1 -1
  130. data/generated/google/apis/compute_v1/classes.rb +54 -10
  131. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  132. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +6 -5
  133. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  134. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +6 -5
  135. data/generated/google/apis/content_v2.rb +1 -1
  136. data/generated/google/apis/content_v2/classes.rb +13 -4
  137. data/generated/google/apis/content_v2_1.rb +1 -1
  138. data/generated/google/apis/content_v2_1/classes.rb +13 -4
  139. data/generated/google/apis/datacatalog_v1beta1.rb +35 -0
  140. data/generated/google/apis/datacatalog_v1beta1/classes.rb +1646 -0
  141. data/generated/google/apis/datacatalog_v1beta1/representations.rb +700 -0
  142. data/generated/google/apis/datacatalog_v1beta1/service.rb +1982 -0
  143. data/generated/google/apis/dataproc_v1.rb +1 -1
  144. data/generated/google/apis/dataproc_v1/classes.rb +75 -4
  145. data/generated/google/apis/dataproc_v1/representations.rb +22 -0
  146. data/generated/google/apis/dataproc_v1/service.rb +14 -7
  147. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  148. data/generated/google/apis/dataproc_v1beta2/classes.rb +2 -4
  149. data/generated/google/apis/dataproc_v1beta2/service.rb +14 -7
  150. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  151. data/generated/google/apis/dfareporting_v3_3/classes.rb +21 -1
  152. data/generated/google/apis/dfareporting_v3_3/service.rb +6 -6
  153. data/generated/google/apis/dfareporting_v3_4.rb +40 -0
  154. data/generated/google/apis/dfareporting_v3_4/classes.rb +12717 -0
  155. data/generated/google/apis/dfareporting_v3_4/representations.rb +4595 -0
  156. data/generated/google/apis/dfareporting_v3_4/service.rb +8685 -0
  157. data/generated/google/apis/dialogflow_v2.rb +1 -1
  158. data/generated/google/apis/dialogflow_v2/classes.rb +484 -1
  159. data/generated/google/apis/dialogflow_v2/representations.rb +220 -0
  160. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  161. data/generated/google/apis/dialogflow_v2beta1/classes.rb +497 -1
  162. data/generated/google/apis/dialogflow_v2beta1/representations.rb +221 -0
  163. data/generated/google/apis/dlp_v2.rb +1 -1
  164. data/generated/google/apis/dlp_v2/classes.rb +68 -25
  165. data/generated/google/apis/dlp_v2/representations.rb +9 -4
  166. data/generated/google/apis/dlp_v2/service.rb +1925 -193
  167. data/generated/google/apis/dns_v1beta2.rb +1 -1
  168. data/generated/google/apis/dns_v1beta2/classes.rb +47 -0
  169. data/generated/google/apis/dns_v1beta2/representations.rb +17 -0
  170. data/generated/google/apis/docs_v1.rb +1 -1
  171. data/generated/google/apis/docs_v1/classes.rb +4 -8
  172. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  173. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +34 -0
  174. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +826 -0
  175. data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +372 -0
  176. data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +371 -0
  177. data/generated/google/apis/drive_v3.rb +1 -1
  178. data/generated/google/apis/drive_v3/classes.rb +12 -3
  179. data/generated/google/apis/fcm_v1.rb +1 -1
  180. data/generated/google/apis/fcm_v1/classes.rb +15 -0
  181. data/generated/google/apis/fcm_v1/representations.rb +2 -0
  182. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  183. data/generated/google/apis/firebase_v1beta1/classes.rb +3 -4
  184. data/generated/google/apis/firebase_v1beta1/service.rb +6 -6
  185. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  186. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +25 -0
  187. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +15 -0
  188. data/generated/google/apis/firebasehosting_v1beta1/service.rb +47 -0
  189. data/generated/google/apis/firebaserules_v1.rb +1 -1
  190. data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
  191. data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
  192. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  193. data/generated/google/apis/genomics_v2alpha1/classes.rb +32 -0
  194. data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
  195. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  196. data/generated/google/apis/healthcare_v1beta1/classes.rb +8 -7
  197. data/generated/google/apis/homegraph_v1.rb +1 -1
  198. data/generated/google/apis/homegraph_v1/classes.rb +15 -1
  199. data/generated/google/apis/homegraph_v1/representations.rb +2 -1
  200. data/generated/google/apis/iam_v1.rb +1 -1
  201. data/generated/google/apis/iam_v1/classes.rb +6 -5
  202. data/generated/google/apis/logging_v2.rb +1 -1
  203. data/generated/google/apis/logging_v2/classes.rb +18 -2
  204. data/generated/google/apis/logging_v2/representations.rb +2 -0
  205. data/generated/google/apis/ml_v1.rb +1 -1
  206. data/generated/google/apis/ml_v1/classes.rb +173 -97
  207. data/generated/google/apis/ml_v1/representations.rb +58 -0
  208. data/generated/google/apis/ml_v1/service.rb +37 -0
  209. data/generated/google/apis/monitoring_v3.rb +1 -1
  210. data/generated/google/apis/monitoring_v3/classes.rb +780 -6
  211. data/generated/google/apis/monitoring_v3/representations.rb +347 -0
  212. data/generated/google/apis/monitoring_v3/service.rb +382 -0
  213. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  214. data/generated/google/apis/pagespeedonline_v5/classes.rb +8 -0
  215. data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
  216. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  217. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -5
  218. data/generated/google/apis/pubsub_v1.rb +1 -1
  219. data/generated/google/apis/pubsub_v1/classes.rb +8 -6
  220. data/generated/google/apis/pubsub_v1/service.rb +6 -7
  221. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  222. data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -5
  223. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  224. data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
  225. data/generated/google/apis/recommender_v1beta1/service.rb +10 -8
  226. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  227. data/generated/google/apis/remotebuildexecution_v1/classes.rb +33 -0
  228. data/generated/google/apis/remotebuildexecution_v1/representations.rb +15 -0
  229. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  230. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +33 -0
  231. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +15 -0
  232. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  233. data/generated/google/apis/remotebuildexecution_v2/classes.rb +33 -0
  234. data/generated/google/apis/remotebuildexecution_v2/representations.rb +15 -0
  235. data/generated/google/apis/run_v1.rb +1 -1
  236. data/generated/google/apis/run_v1/classes.rb +8 -169
  237. data/generated/google/apis/run_v1/representations.rb +0 -71
  238. data/generated/google/apis/run_v1/service.rb +229 -1207
  239. data/generated/google/apis/run_v1alpha1.rb +1 -1
  240. data/generated/google/apis/run_v1alpha1/classes.rb +9 -9
  241. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  242. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -5
  243. data/generated/google/apis/securitycenter_v1.rb +1 -1
  244. data/generated/google/apis/securitycenter_v1/classes.rb +66 -11
  245. data/generated/google/apis/securitycenter_v1/representations.rb +19 -0
  246. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  247. data/generated/google/apis/securitycenter_v1beta1/classes.rb +16 -13
  248. data/generated/google/apis/servicebroker_v1.rb +1 -1
  249. data/generated/google/apis/servicebroker_v1/classes.rb +6 -5
  250. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  251. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +6 -5
  252. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  253. data/generated/google/apis/servicebroker_v1beta1/classes.rb +6 -5
  254. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  255. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +3 -2
  256. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  257. data/generated/google/apis/servicecontrol_v1/classes.rb +8 -1
  258. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  259. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  260. data/generated/google/apis/servicemanagement_v1/classes.rb +12 -9
  261. data/generated/google/apis/servicemanagement_v1/service.rb +1 -9
  262. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  263. data/generated/google/apis/servicenetworking_v1/classes.rb +130 -13
  264. data/generated/google/apis/servicenetworking_v1/representations.rb +58 -0
  265. data/generated/google/apis/servicenetworking_v1/service.rb +42 -3
  266. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  267. data/generated/google/apis/servicenetworking_v1beta/classes.rb +3 -2
  268. data/generated/google/apis/serviceusage_v1.rb +1 -1
  269. data/generated/google/apis/serviceusage_v1/classes.rb +3 -2
  270. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  271. data/generated/google/apis/serviceusage_v1beta1/classes.rb +3 -2
  272. data/generated/google/apis/sheets_v4.rb +1 -1
  273. data/generated/google/apis/spanner_v1.rb +1 -1
  274. data/generated/google/apis/spanner_v1/classes.rb +70 -30
  275. data/generated/google/apis/spanner_v1/service.rb +270 -0
  276. data/generated/google/apis/speech_v1.rb +1 -1
  277. data/generated/google/apis/speech_v1/classes.rb +6 -0
  278. data/generated/google/apis/speech_v1/representations.rb +1 -0
  279. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  280. data/generated/google/apis/speech_v1p1beta1/classes.rb +6 -0
  281. data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
  282. data/generated/google/apis/sql_v1beta4.rb +1 -1
  283. data/generated/google/apis/sql_v1beta4/service.rb +59 -10
  284. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  285. data/generated/google/apis/videointelligence_v1.rb +1 -1
  286. data/generated/google/apis/videointelligence_v1/classes.rb +112 -0
  287. data/generated/google/apis/videointelligence_v1/representations.rb +62 -0
  288. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  289. data/generated/google/apis/videointelligence_v1beta2/classes.rb +112 -0
  290. data/generated/google/apis/videointelligence_v1beta2/representations.rb +62 -0
  291. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  292. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +112 -0
  293. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +62 -0
  294. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  295. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +112 -0
  296. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +62 -0
  297. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  298. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +112 -0
  299. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +62 -0
  300. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  301. data/lib/google/apis/core/api_command.rb +3 -0
  302. data/lib/google/apis/core/http_command.rb +10 -8
  303. data/lib/google/apis/version.rb +1 -1
  304. data/rakelib/devsite/devsite_builder.rb +1 -1
  305. metadata +33 -11
  306. data/generated/google/apis/sqladmin_v1beta4/classes.rb +0 -2633
  307. data/generated/google/apis/sqladmin_v1beta4/representations.rb +0 -1110
  308. data/generated/google/apis/sqladmin_v1beta4/service.rb +0 -1793
  309. data/generated/google/apis/storage_v1beta1.rb +0 -40
  310. data/generated/google/apis/storage_v1beta1/classes.rb +0 -616
  311. data/generated/google/apis/storage_v1beta1/representations.rb +0 -249
  312. data/generated/google/apis/storage_v1beta1/service.rb +0 -1032
@@ -1,40 +0,0 @@
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_v1beta1/service.rb'
16
- require 'google/apis/storage_v1beta1/classes.rb'
17
- require 'google/apis/storage_v1beta1/representations.rb'
18
-
19
- module Google
20
- module Apis
21
- # Cloud Storage JSON API
22
- #
23
- # Lets you store and retrieve potentially-large, immutable data objects.
24
- #
25
- # @see https://developers.google.com/storage/docs/json_api/
26
- module StorageV1beta1
27
- VERSION = 'V1beta1'
28
- REVISION = '20190913'
29
-
30
- # Manage your data and permissions in Google Cloud Storage
31
- AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
32
-
33
- # View your data in Google Cloud Storage
34
- AUTH_DEVSTORAGE_READ_ONLY = 'https://www.googleapis.com/auth/devstorage.read_only'
35
-
36
- # Manage your data in Google Cloud Storage
37
- AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
38
- end
39
- end
40
- end
@@ -1,616 +0,0 @@
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 StorageV1beta1
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::StorageV1beta1::BucketAccessControl>]
32
- attr_accessor :acl
33
-
34
- # Default access controls to apply to new objects when no ACL is provided.
35
- # Corresponds to the JSON property `defaultObjectAcl`
36
- # @return [Array<Google::Apis::StorageV1beta1::ObjectAccessControl>]
37
- attr_accessor :default_object_acl
38
-
39
- # The name of the bucket.
40
- # Corresponds to the JSON property `id`
41
- # @return [String]
42
- attr_accessor :id
43
-
44
- # The kind of item this is. For buckets, this is always storage#bucket.
45
- # Corresponds to the JSON property `kind`
46
- # @return [String]
47
- attr_accessor :kind
48
-
49
- # The location of the bucket. Object data for objects in the bucket resides in
50
- # physical storage in this location. Can be US or EU. Defaults to US.
51
- # Corresponds to the JSON property `location`
52
- # @return [String]
53
- attr_accessor :location
54
-
55
- # The owner of the bucket. This will always be the project team's owner group.
56
- # Corresponds to the JSON property `owner`
57
- # @return [Google::Apis::StorageV1beta1::Bucket::Owner]
58
- attr_accessor :owner
59
-
60
- # The project the bucket belongs to.
61
- # Corresponds to the JSON property `projectId`
62
- # @return [Fixnum]
63
- attr_accessor :project_id
64
-
65
- # The URI of this bucket.
66
- # Corresponds to the JSON property `selfLink`
67
- # @return [String]
68
- attr_accessor :self_link
69
-
70
- # Creation time of the bucket in RFC 3339 format.
71
- # Corresponds to the JSON property `timeCreated`
72
- # @return [DateTime]
73
- attr_accessor :time_created
74
-
75
- # The bucket's website configuration.
76
- # Corresponds to the JSON property `website`
77
- # @return [Google::Apis::StorageV1beta1::Bucket::Website]
78
- attr_accessor :website
79
-
80
- def initialize(**args)
81
- update!(**args)
82
- end
83
-
84
- # Update properties of this object
85
- def update!(**args)
86
- @acl = args[:acl] if args.key?(:acl)
87
- @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl)
88
- @id = args[:id] if args.key?(:id)
89
- @kind = args[:kind] if args.key?(:kind)
90
- @location = args[:location] if args.key?(:location)
91
- @owner = args[:owner] if args.key?(:owner)
92
- @project_id = args[:project_id] if args.key?(:project_id)
93
- @self_link = args[:self_link] if args.key?(:self_link)
94
- @time_created = args[:time_created] if args.key?(:time_created)
95
- @website = args[:website] if args.key?(:website)
96
- end
97
-
98
- # The owner of the bucket. This will always be the project team's owner group.
99
- class Owner
100
- include Google::Apis::Core::Hashable
101
-
102
- # The entity, in the form group-groupId.
103
- # Corresponds to the JSON property `entity`
104
- # @return [String]
105
- attr_accessor :entity
106
-
107
- # The ID for the entity.
108
- # Corresponds to the JSON property `entityId`
109
- # @return [String]
110
- attr_accessor :entity_id
111
-
112
- def initialize(**args)
113
- update!(**args)
114
- end
115
-
116
- # Update properties of this object
117
- def update!(**args)
118
- @entity = args[:entity] if args.key?(:entity)
119
- @entity_id = args[:entity_id] if args.key?(:entity_id)
120
- end
121
- end
122
-
123
- # The bucket's website configuration.
124
- class Website
125
- include Google::Apis::Core::Hashable
126
-
127
- # Behaves as the bucket's directory index where missing objects are treated as
128
- # potential directories.
129
- # Corresponds to the JSON property `mainPageSuffix`
130
- # @return [String]
131
- attr_accessor :main_page_suffix
132
-
133
- # The custom object to return when a requested resource is not found.
134
- # Corresponds to the JSON property `notFoundPage`
135
- # @return [String]
136
- attr_accessor :not_found_page
137
-
138
- def initialize(**args)
139
- update!(**args)
140
- end
141
-
142
- # Update properties of this object
143
- def update!(**args)
144
- @main_page_suffix = args[:main_page_suffix] if args.key?(:main_page_suffix)
145
- @not_found_page = args[:not_found_page] if args.key?(:not_found_page)
146
- end
147
- end
148
- end
149
-
150
- # An access-control entry.
151
- class BucketAccessControl
152
- include Google::Apis::Core::Hashable
153
-
154
- # The name of the bucket.
155
- # Corresponds to the JSON property `bucket`
156
- # @return [String]
157
- attr_accessor :bucket
158
-
159
- # The domain associated with the entity, if any.
160
- # Corresponds to the JSON property `domain`
161
- # @return [String]
162
- attr_accessor :domain
163
-
164
- # The email address associated with the entity, if any.
165
- # Corresponds to the JSON property `email`
166
- # @return [String]
167
- attr_accessor :email
168
-
169
- # The entity holding the permission, in one of the following forms:
170
- # - user-userId
171
- # - user-email
172
- # - group-groupId
173
- # - group-email
174
- # - domain-domain
175
- # - allUsers
176
- # - allAuthenticatedUsers Examples:
177
- # - The user liz@example.com would be user-liz@example.com.
178
- # - The group example@googlegroups.com would be group-example@googlegroups.com.
179
- # - To refer to all members of the Google Apps for Business domain example.com,
180
- # the entity would be domain-example.com.
181
- # Corresponds to the JSON property `entity`
182
- # @return [String]
183
- attr_accessor :entity
184
-
185
- # The ID for the entity, if any.
186
- # Corresponds to the JSON property `entityId`
187
- # @return [String]
188
- attr_accessor :entity_id
189
-
190
- # The ID of the access-control entry.
191
- # Corresponds to the JSON property `id`
192
- # @return [String]
193
- attr_accessor :id
194
-
195
- # The kind of item this is. For bucket access control entries, this is always
196
- # storage#bucketAccessControl.
197
- # Corresponds to the JSON property `kind`
198
- # @return [String]
199
- attr_accessor :kind
200
-
201
- # The access permission for the entity. Can be READER, WRITER, or OWNER.
202
- # Corresponds to the JSON property `role`
203
- # @return [String]
204
- attr_accessor :role
205
-
206
- # The link to this access-control entry.
207
- # Corresponds to the JSON property `selfLink`
208
- # @return [String]
209
- attr_accessor :self_link
210
-
211
- def initialize(**args)
212
- update!(**args)
213
- end
214
-
215
- # Update properties of this object
216
- def update!(**args)
217
- @bucket = args[:bucket] if args.key?(:bucket)
218
- @domain = args[:domain] if args.key?(:domain)
219
- @email = args[:email] if args.key?(:email)
220
- @entity = args[:entity] if args.key?(:entity)
221
- @entity_id = args[:entity_id] if args.key?(:entity_id)
222
- @id = args[:id] if args.key?(:id)
223
- @kind = args[:kind] if args.key?(:kind)
224
- @role = args[:role] if args.key?(:role)
225
- @self_link = args[:self_link] if args.key?(:self_link)
226
- end
227
- end
228
-
229
- # An access-control list.
230
- class BucketAccessControls
231
- include Google::Apis::Core::Hashable
232
-
233
- # The list of items.
234
- # Corresponds to the JSON property `items`
235
- # @return [Array<Google::Apis::StorageV1beta1::BucketAccessControl>]
236
- attr_accessor :items
237
-
238
- # The kind of item this is. For lists of bucket access control entries, this is
239
- # always storage#bucketAccessControls.
240
- # Corresponds to the JSON property `kind`
241
- # @return [String]
242
- attr_accessor :kind
243
-
244
- def initialize(**args)
245
- update!(**args)
246
- end
247
-
248
- # Update properties of this object
249
- def update!(**args)
250
- @items = args[:items] if args.key?(:items)
251
- @kind = args[:kind] if args.key?(:kind)
252
- end
253
- end
254
-
255
- # A list of buckets.
256
- class Buckets
257
- include Google::Apis::Core::Hashable
258
-
259
- # The list of items.
260
- # Corresponds to the JSON property `items`
261
- # @return [Array<Google::Apis::StorageV1beta1::Bucket>]
262
- attr_accessor :items
263
-
264
- # The kind of item this is. For lists of buckets, this is always storage#buckets.
265
- # Corresponds to the JSON property `kind`
266
- # @return [String]
267
- attr_accessor :kind
268
-
269
- # The continuation token, used to page through large result sets. Provide this
270
- # value in a subsequent request to return the next page of results.
271
- # Corresponds to the JSON property `nextPageToken`
272
- # @return [String]
273
- attr_accessor :next_page_token
274
-
275
- def initialize(**args)
276
- update!(**args)
277
- end
278
-
279
- # Update properties of this object
280
- def update!(**args)
281
- @items = args[:items] if args.key?(:items)
282
- @kind = args[:kind] if args.key?(:kind)
283
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
284
- end
285
- end
286
-
287
- # An object.
288
- class Object
289
- include Google::Apis::Core::Hashable
290
-
291
- # Access controls on the object.
292
- # Corresponds to the JSON property `acl`
293
- # @return [Array<Google::Apis::StorageV1beta1::ObjectAccessControl>]
294
- attr_accessor :acl
295
-
296
- # The bucket containing this object.
297
- # Corresponds to the JSON property `bucket`
298
- # @return [String]
299
- attr_accessor :bucket
300
-
301
- # Cache-Control directive for the object data.
302
- # Corresponds to the JSON property `cacheControl`
303
- # @return [String]
304
- attr_accessor :cache_control
305
-
306
- # Content-Disposition of the object data.
307
- # Corresponds to the JSON property `contentDisposition`
308
- # @return [String]
309
- attr_accessor :content_disposition
310
-
311
- # Content-Encoding of the object data.
312
- # Corresponds to the JSON property `contentEncoding`
313
- # @return [String]
314
- attr_accessor :content_encoding
315
-
316
- # Content-Language of the object data.
317
- # Corresponds to the JSON property `contentLanguage`
318
- # @return [String]
319
- attr_accessor :content_language
320
-
321
- # The ID of the object.
322
- # Corresponds to the JSON property `id`
323
- # @return [String]
324
- attr_accessor :id
325
-
326
- # The kind of item this is. For objects, this is always storage#object.
327
- # Corresponds to the JSON property `kind`
328
- # @return [String]
329
- attr_accessor :kind
330
-
331
- # Object media data. Provided on your behalf when uploading raw media or
332
- # multipart/related with an auxiliary media part.
333
- # Corresponds to the JSON property `media`
334
- # @return [Google::Apis::StorageV1beta1::Object::Media]
335
- attr_accessor :media
336
-
337
- # User-provided metadata, in key/value pairs.
338
- # Corresponds to the JSON property `metadata`
339
- # @return [Hash<String,String>]
340
- attr_accessor :metadata
341
-
342
- # The name of this object. Required if not specified by URL parameter.
343
- # Corresponds to the JSON property `name`
344
- # @return [String]
345
- attr_accessor :name
346
-
347
- # The owner of the object. This will always be the uploader of the object.
348
- # Corresponds to the JSON property `owner`
349
- # @return [Google::Apis::StorageV1beta1::Object::Owner]
350
- attr_accessor :owner
351
-
352
- # The link to this object.
353
- # Corresponds to the JSON property `selfLink`
354
- # @return [String]
355
- attr_accessor :self_link
356
-
357
- def initialize(**args)
358
- update!(**args)
359
- end
360
-
361
- # Update properties of this object
362
- def update!(**args)
363
- @acl = args[:acl] if args.key?(:acl)
364
- @bucket = args[:bucket] if args.key?(:bucket)
365
- @cache_control = args[:cache_control] if args.key?(:cache_control)
366
- @content_disposition = args[:content_disposition] if args.key?(:content_disposition)
367
- @content_encoding = args[:content_encoding] if args.key?(:content_encoding)
368
- @content_language = args[:content_language] if args.key?(:content_language)
369
- @id = args[:id] if args.key?(:id)
370
- @kind = args[:kind] if args.key?(:kind)
371
- @media = args[:media] if args.key?(:media)
372
- @metadata = args[:metadata] if args.key?(:metadata)
373
- @name = args[:name] if args.key?(:name)
374
- @owner = args[:owner] if args.key?(:owner)
375
- @self_link = args[:self_link] if args.key?(:self_link)
376
- end
377
-
378
- # Object media data. Provided on your behalf when uploading raw media or
379
- # multipart/related with an auxiliary media part.
380
- class Media
381
- include Google::Apis::Core::Hashable
382
-
383
- # Hash algorithm used. Currently only MD5 is supported. Required if a hash is
384
- # provided.
385
- # Corresponds to the JSON property `algorithm`
386
- # @return [String]
387
- attr_accessor :algorithm
388
-
389
- # Content-Type of the object data.
390
- # Corresponds to the JSON property `contentType`
391
- # @return [String]
392
- attr_accessor :content_type
393
-
394
- # URL-safe Base64-encoded data. This property can be used to insert objects
395
- # under 64KB in size, and will only be returned in response to the get method
396
- # for objects so created. When this resource is returned in response to the list
397
- # method, this property is omitted.
398
- # Corresponds to the JSON property `data`
399
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
400
- # @return [String]
401
- attr_accessor :data
402
-
403
- # Hash of the data. Required if a hash algorithm is provided.
404
- # Corresponds to the JSON property `hash`
405
- # @return [String]
406
- attr_accessor :hash_prop
407
-
408
- # Content-Length of the data in bytes.
409
- # Corresponds to the JSON property `length`
410
- # @return [Fixnum]
411
- attr_accessor :length
412
-
413
- # Media download link.
414
- # Corresponds to the JSON property `link`
415
- # @return [String]
416
- attr_accessor :link
417
-
418
- # Creation time of the data in RFC 3339 format.
419
- # Corresponds to the JSON property `timeCreated`
420
- # @return [DateTime]
421
- attr_accessor :time_created
422
-
423
- def initialize(**args)
424
- update!(**args)
425
- end
426
-
427
- # Update properties of this object
428
- def update!(**args)
429
- @algorithm = args[:algorithm] if args.key?(:algorithm)
430
- @content_type = args[:content_type] if args.key?(:content_type)
431
- @data = args[:data] if args.key?(:data)
432
- @hash_prop = args[:hash_prop] if args.key?(:hash_prop)
433
- @length = args[:length] if args.key?(:length)
434
- @link = args[:link] if args.key?(:link)
435
- @time_created = args[:time_created] if args.key?(:time_created)
436
- end
437
- end
438
-
439
- # The owner of the object. This will always be the uploader of the object.
440
- class Owner
441
- include Google::Apis::Core::Hashable
442
-
443
- # The entity, in the form user-userId.
444
- # Corresponds to the JSON property `entity`
445
- # @return [String]
446
- attr_accessor :entity
447
-
448
- # The ID for the entity.
449
- # Corresponds to the JSON property `entityId`
450
- # @return [String]
451
- attr_accessor :entity_id
452
-
453
- def initialize(**args)
454
- update!(**args)
455
- end
456
-
457
- # Update properties of this object
458
- def update!(**args)
459
- @entity = args[:entity] if args.key?(:entity)
460
- @entity_id = args[:entity_id] if args.key?(:entity_id)
461
- end
462
- end
463
- end
464
-
465
- # An access-control entry.
466
- class ObjectAccessControl
467
- include Google::Apis::Core::Hashable
468
-
469
- # The name of the bucket.
470
- # Corresponds to the JSON property `bucket`
471
- # @return [String]
472
- attr_accessor :bucket
473
-
474
- # The domain associated with the entity, if any.
475
- # Corresponds to the JSON property `domain`
476
- # @return [String]
477
- attr_accessor :domain
478
-
479
- # The email address associated with the entity, if any.
480
- # Corresponds to the JSON property `email`
481
- # @return [String]
482
- attr_accessor :email
483
-
484
- # The entity holding the permission, in one of the following forms:
485
- # - user-userId
486
- # - user-email
487
- # - group-groupId
488
- # - group-email
489
- # - domain-domain
490
- # - allUsers
491
- # - allAuthenticatedUsers Examples:
492
- # - The user liz@example.com would be user-liz@example.com.
493
- # - The group example@googlegroups.com would be group-example@googlegroups.com.
494
- # - To refer to all members of the Google Apps for Business domain example.com,
495
- # the entity would be domain-example.com.
496
- # Corresponds to the JSON property `entity`
497
- # @return [String]
498
- attr_accessor :entity
499
-
500
- # The ID for the entity, if any.
501
- # Corresponds to the JSON property `entityId`
502
- # @return [String]
503
- attr_accessor :entity_id
504
-
505
- # The ID of the access-control entry.
506
- # Corresponds to the JSON property `id`
507
- # @return [String]
508
- attr_accessor :id
509
-
510
- # The kind of item this is. For object access control entries, this is always
511
- # storage#objectAccessControl.
512
- # Corresponds to the JSON property `kind`
513
- # @return [String]
514
- attr_accessor :kind
515
-
516
- # The name of the object.
517
- # Corresponds to the JSON property `object`
518
- # @return [String]
519
- attr_accessor :object
520
-
521
- # The access permission for the entity. Can be READER or OWNER.
522
- # Corresponds to the JSON property `role`
523
- # @return [String]
524
- attr_accessor :role
525
-
526
- # The link to this access-control entry.
527
- # Corresponds to the JSON property `selfLink`
528
- # @return [String]
529
- attr_accessor :self_link
530
-
531
- def initialize(**args)
532
- update!(**args)
533
- end
534
-
535
- # Update properties of this object
536
- def update!(**args)
537
- @bucket = args[:bucket] if args.key?(:bucket)
538
- @domain = args[:domain] if args.key?(:domain)
539
- @email = args[:email] if args.key?(:email)
540
- @entity = args[:entity] if args.key?(:entity)
541
- @entity_id = args[:entity_id] if args.key?(:entity_id)
542
- @id = args[:id] if args.key?(:id)
543
- @kind = args[:kind] if args.key?(:kind)
544
- @object = args[:object] if args.key?(:object)
545
- @role = args[:role] if args.key?(:role)
546
- @self_link = args[:self_link] if args.key?(:self_link)
547
- end
548
- end
549
-
550
- # An access-control list.
551
- class ObjectAccessControls
552
- include Google::Apis::Core::Hashable
553
-
554
- # The list of items.
555
- # Corresponds to the JSON property `items`
556
- # @return [Array<Google::Apis::StorageV1beta1::ObjectAccessControl>]
557
- attr_accessor :items
558
-
559
- # The kind of item this is. For lists of object access control entries, this is
560
- # always storage#objectAccessControls.
561
- # Corresponds to the JSON property `kind`
562
- # @return [String]
563
- attr_accessor :kind
564
-
565
- def initialize(**args)
566
- update!(**args)
567
- end
568
-
569
- # Update properties of this object
570
- def update!(**args)
571
- @items = args[:items] if args.key?(:items)
572
- @kind = args[:kind] if args.key?(:kind)
573
- end
574
- end
575
-
576
- # A list of objects.
577
- class Objects
578
- include Google::Apis::Core::Hashable
579
-
580
- # The list of items.
581
- # Corresponds to the JSON property `items`
582
- # @return [Array<Google::Apis::StorageV1beta1::Object>]
583
- attr_accessor :items
584
-
585
- # The kind of item this is. For lists of objects, this is always storage#objects.
586
- # Corresponds to the JSON property `kind`
587
- # @return [String]
588
- attr_accessor :kind
589
-
590
- # The continuation token, used to page through large result sets. Provide this
591
- # value in a subsequent request to return the next page of results.
592
- # Corresponds to the JSON property `nextPageToken`
593
- # @return [String]
594
- attr_accessor :next_page_token
595
-
596
- # The list of prefixes of objects matching-but-not-listed up to and including
597
- # the requested delimiter.
598
- # Corresponds to the JSON property `prefixes`
599
- # @return [Array<String>]
600
- attr_accessor :prefixes
601
-
602
- def initialize(**args)
603
- update!(**args)
604
- end
605
-
606
- # Update properties of this object
607
- def update!(**args)
608
- @items = args[:items] if args.key?(:items)
609
- @kind = args[:kind] if args.key?(:kind)
610
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
611
- @prefixes = args[:prefixes] if args.key?(:prefixes)
612
- end
613
- end
614
- end
615
- end
616
- end