google-api-client 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -51,6 +51,7 @@ module Google
51
51
 
52
52
  def initialize
53
53
  super('https://www.googleapis.com/', 'civicinfo/v2/')
54
+ @batch_path = 'batch'
54
55
  end
55
56
 
56
57
  # Searches for political divisions by their natural name or OCD ID.
@@ -134,7 +135,7 @@ module Google
134
135
  # @param [String] address
135
136
  # The registered address of the voter to look up.
136
137
  # @param [Google::Apis::CivicinfoV2::VoterInfoRequest] voter_info_request_object
137
- # @param [String] election_id
138
+ # @param [Fixnum] election_id
138
139
  # The unique ID of the election to look up. A list of election IDs can be
139
140
  # obtained at https://www.googleapis.com/civicinfo/`version`/elections
140
141
  # @param [Boolean] official_only
@@ -44,6 +44,7 @@ module Google
44
44
 
45
45
  def initialize
46
46
  super('https://classroom.googleapis.com/', '')
47
+ @batch_path = 'batch'
47
48
  end
48
49
 
49
50
  # Creates an invitation. Only one invitation for a user and course may exist
@@ -45,6 +45,7 @@ module Google
45
45
 
46
46
  def initialize
47
47
  super('https://cloudbilling.googleapis.com/', '')
48
+ @batch_path = 'batch'
48
49
  end
49
50
 
50
51
  # Sets or updates the billing account associated with a project. You specify
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/container-builder/docs/
26
26
  module CloudbuildV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170330'
28
+ REVISION = '20170403'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,59 +22,125 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1
24
24
 
25
- # A generic empty message that you can re-use to avoid defining duplicated
26
- # empty messages in your APIs. A typical example is to use it as the request
27
- # or the response type of an API method. For instance:
28
- # service Foo `
29
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
30
- # `
31
- # The JSON representation for `Empty` is empty JSON object ````.
32
- class Empty
25
+ # Source describes the location of the source in a supported storage
26
+ # service.
27
+ class Source
33
28
  include Google::Apis::Core::Hashable
34
29
 
30
+ # StorageSource describes the location of the source in an archive file in
31
+ # Google Cloud Storage.
32
+ # Corresponds to the JSON property `storageSource`
33
+ # @return [Google::Apis::CloudbuildV1::StorageSource]
34
+ attr_accessor :storage_source
35
+
36
+ # RepoSource describes the location of the source in a Google Cloud Source
37
+ # Repository.
38
+ # Corresponds to the JSON property `repoSource`
39
+ # @return [Google::Apis::CloudbuildV1::RepoSource]
40
+ attr_accessor :repo_source
41
+
35
42
  def initialize(**args)
36
43
  update!(**args)
37
44
  end
38
45
 
39
46
  # Update properties of this object
40
47
  def update!(**args)
48
+ @storage_source = args[:storage_source] if args.key?(:storage_source)
49
+ @repo_source = args[:repo_source] if args.key?(:repo_source)
41
50
  end
42
51
  end
43
52
 
44
- # Configuration for an automated build in response to source repository
45
- # changes.
46
- class BuildTrigger
53
+ # Optional arguments to enable specific features of builds.
54
+ class BuildOptions
47
55
  include Google::Apis::Core::Hashable
48
56
 
49
- # If true, the trigger will never result in a build.
50
- # Corresponds to the JSON property `disabled`
51
- # @return [Boolean]
52
- attr_accessor :disabled
53
- alias_method :disabled?, :disabled
54
-
55
- # Time when the trigger was created.
56
- # @OutputOnly
57
- # Corresponds to the JSON property `createTime`
57
+ # Requested verifiability options.
58
+ # Corresponds to the JSON property `requestedVerifyOption`
58
59
  # @return [String]
59
- attr_accessor :create_time
60
+ attr_accessor :requested_verify_option
60
61
 
61
- # RepoSource describes the location of the source in a Google Cloud Source
62
- # Repository.
63
- # Corresponds to the JSON property `triggerTemplate`
64
- # @return [Google::Apis::CloudbuildV1::RepoSource]
65
- attr_accessor :trigger_template
62
+ # Requested hash for SourceProvenance.
63
+ # Corresponds to the JSON property `sourceProvenanceHash`
64
+ # @return [Array<String>]
65
+ attr_accessor :source_provenance_hash
66
66
 
67
- # Path, from the source root, to a file whose contents is used for the
68
- # template.
69
- # Corresponds to the JSON property `filename`
67
+ def initialize(**args)
68
+ update!(**args)
69
+ end
70
+
71
+ # Update properties of this object
72
+ def update!(**args)
73
+ @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
74
+ @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
75
+ end
76
+ end
77
+
78
+ # StorageSource describes the location of the source in an archive file in
79
+ # Google Cloud Storage.
80
+ class StorageSource
81
+ include Google::Apis::Core::Hashable
82
+
83
+ # Google Cloud Storage generation for the object. If the generation is
84
+ # omitted, the latest generation will be used.
85
+ # Corresponds to the JSON property `generation`
86
+ # @return [Fixnum]
87
+ attr_accessor :generation
88
+
89
+ # Google Cloud Storage bucket containing source (see
90
+ # [Bucket Name
91
+ # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
92
+ # ).
93
+ # Corresponds to the JSON property `bucket`
70
94
  # @return [String]
71
- attr_accessor :filename
95
+ attr_accessor :bucket
72
96
 
73
- # Unique identifier of the trigger.
74
- # @OutputOnly
75
- # Corresponds to the JSON property `id`
97
+ # Google Cloud Storage object containing source.
98
+ # This object must be a gzipped archive file (.tar.gz) containing source to
99
+ # build.
100
+ # Corresponds to the JSON property `object`
76
101
  # @return [String]
77
- attr_accessor :id
102
+ attr_accessor :object
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ @generation = args[:generation] if args.key?(:generation)
111
+ @bucket = args[:bucket] if args.key?(:bucket)
112
+ @object = args[:object] if args.key?(:object)
113
+ end
114
+ end
115
+
116
+ # Results describes the artifacts created by the build pipeline.
117
+ class Results
118
+ include Google::Apis::Core::Hashable
119
+
120
+ # Images that were built as a part of the build.
121
+ # Corresponds to the JSON property `images`
122
+ # @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
123
+ attr_accessor :images
124
+
125
+ # List of build step digests, in order corresponding to build step indices.
126
+ # Corresponds to the JSON property `buildStepImages`
127
+ # @return [Array<String>]
128
+ attr_accessor :build_step_images
129
+
130
+ def initialize(**args)
131
+ update!(**args)
132
+ end
133
+
134
+ # Update properties of this object
135
+ def update!(**args)
136
+ @images = args[:images] if args.key?(:images)
137
+ @build_step_images = args[:build_step_images] if args.key?(:build_step_images)
138
+ end
139
+ end
140
+
141
+ # Metadata for build operations.
142
+ class BuildOperationMetadata
143
+ include Google::Apis::Core::Hashable
78
144
 
79
145
  # A build resource in the Container Builder API.
80
146
  # At a high level, a Build describes where to find source code, how to build
@@ -93,164 +159,78 @@ module Google
93
159
  # @return [Google::Apis::CloudbuildV1::Build]
94
160
  attr_accessor :build
95
161
 
96
- # Substitutions data for Build resource.
97
- # Corresponds to the JSON property `substitutions`
98
- # @return [Hash<String,String>]
99
- attr_accessor :substitutions
100
-
101
- # Human-readable description of this trigger.
102
- # Corresponds to the JSON property `description`
103
- # @return [String]
104
- attr_accessor :description
105
-
106
162
  def initialize(**args)
107
163
  update!(**args)
108
164
  end
109
165
 
110
166
  # Update properties of this object
111
167
  def update!(**args)
112
- @disabled = args[:disabled] if args.key?(:disabled)
113
- @create_time = args[:create_time] if args.key?(:create_time)
114
- @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
115
- @filename = args[:filename] if args.key?(:filename)
116
- @id = args[:id] if args.key?(:id)
117
168
  @build = args[:build] if args.key?(:build)
118
- @substitutions = args[:substitutions] if args.key?(:substitutions)
119
- @description = args[:description] if args.key?(:description)
120
169
  end
121
170
  end
122
171
 
123
- # A build resource in the Container Builder API.
124
- # At a high level, a Build describes where to find source code, how to build
125
- # it (for example, the builder image to run on the source), and what tag to
126
- # apply to the built image when it is pushed to Google Container Registry.
127
- # Fields can include the following variables which will be expanded when the
128
- # build is created:
129
- # - $PROJECT_ID: the project ID of the build.
130
- # - $BUILD_ID: the autogenerated ID of the build.
131
- # - $REPO_NAME: the source repository name specified by RepoSource.
132
- # - $BRANCH_NAME: the branch name specified by RepoSource.
133
- # - $TAG_NAME: the tag name specified by RepoSource.
134
- # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
135
- # resolved from the specified branch or tag.
136
- class Build
172
+ # Provenance of the source. Ways to find the original source, or verify that
173
+ # some source was used for this build.
174
+ class SourceProvenance
137
175
  include Google::Apis::Core::Hashable
138
176
 
139
- # Optional arguments to enable specific features of builds.
140
- # Corresponds to the JSON property `options`
141
- # @return [Google::Apis::CloudbuildV1::BuildOptions]
142
- attr_accessor :options
143
-
144
- # Source describes the location of the source in a supported storage
145
- # service.
146
- # Corresponds to the JSON property `source`
147
- # @return [Google::Apis::CloudbuildV1::Source]
148
- attr_accessor :source
177
+ # StorageSource describes the location of the source in an archive file in
178
+ # Google Cloud Storage.
179
+ # Corresponds to the JSON property `resolvedStorageSource`
180
+ # @return [Google::Apis::CloudbuildV1::StorageSource]
181
+ attr_accessor :resolved_storage_source
149
182
 
150
- # Customer-readable message about the current status.
183
+ # Hash(es) of the build source, which can be used to verify that the original
184
+ # source integrity was maintained in the build. Note that FileHashes will
185
+ # only be populated if BuildOptions has requested a SourceProvenanceHash.
186
+ # The keys to this map are file paths used as build source and the values
187
+ # contain the hash values for those files.
188
+ # If the build source came in a single package such as a gzipped tarfile
189
+ # (.tar.gz), the FileHash will be for the single path to that file.
151
190
  # @OutputOnly
152
- # Corresponds to the JSON property `statusDetail`
153
- # @return [String]
154
- attr_accessor :status_detail
191
+ # Corresponds to the JSON property `fileHashes`
192
+ # @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
193
+ attr_accessor :file_hashes
155
194
 
156
- # Status of the build.
157
- # @OutputOnly
158
- # Corresponds to the JSON property `status`
159
- # @return [String]
160
- attr_accessor :status
195
+ # RepoSource describes the location of the source in a Google Cloud Source
196
+ # Repository.
197
+ # Corresponds to the JSON property `resolvedRepoSource`
198
+ # @return [Google::Apis::CloudbuildV1::RepoSource]
199
+ attr_accessor :resolved_repo_source
161
200
 
162
- # Amount of time that this build should be allowed to run, to second
163
- # granularity. If this amount of time elapses, work on the build will cease
164
- # and the build status will be TIMEOUT.
165
- # Default time is ten minutes.
166
- # Corresponds to the JSON property `timeout`
167
- # @return [String]
168
- attr_accessor :timeout
201
+ def initialize(**args)
202
+ update!(**args)
203
+ end
169
204
 
170
- # Google Cloud Storage bucket where logs should be written (see
171
- # [Bucket Name
172
- # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
173
- # ).
174
- # Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
175
- # Corresponds to the JSON property `logsBucket`
176
- # @return [String]
177
- attr_accessor :logs_bucket
205
+ # Update properties of this object
206
+ def update!(**args)
207
+ @resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
208
+ @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
209
+ @resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
210
+ end
211
+ end
178
212
 
179
- # Results describes the artifacts created by the build pipeline.
180
- # Corresponds to the JSON property `results`
181
- # @return [Google::Apis::CloudbuildV1::Results]
182
- attr_accessor :results
213
+ # The request message for Operations.CancelOperation.
214
+ class CancelOperationRequest
215
+ include Google::Apis::Core::Hashable
183
216
 
184
- # Describes the operations to be performed on the workspace.
185
- # Corresponds to the JSON property `steps`
186
- # @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
187
- attr_accessor :steps
217
+ def initialize(**args)
218
+ update!(**args)
219
+ end
188
220
 
189
- # The ID of the BuildTrigger that triggered this build, if it was
190
- # triggered automatically.
191
- # @OutputOnly
192
- # Corresponds to the JSON property `buildTriggerId`
193
- # @return [String]
194
- attr_accessor :build_trigger_id
221
+ # Update properties of this object
222
+ def update!(**args)
223
+ end
224
+ end
195
225
 
196
- # Unique identifier of the build.
197
- # @OutputOnly
198
- # Corresponds to the JSON property `id`
199
- # @return [String]
200
- attr_accessor :id
201
-
202
- # Time at which execution of the build was started.
203
- # @OutputOnly
204
- # Corresponds to the JSON property `startTime`
205
- # @return [String]
206
- attr_accessor :start_time
207
-
208
- # Substitutions data for Build resource.
209
- # Corresponds to the JSON property `substitutions`
210
- # @return [Hash<String,String>]
211
- attr_accessor :substitutions
212
-
213
- # Time at which the request to create the build was received.
214
- # @OutputOnly
215
- # Corresponds to the JSON property `createTime`
216
- # @return [String]
217
- attr_accessor :create_time
218
-
219
- # Provenance of the source. Ways to find the original source, or verify that
220
- # some source was used for this build.
221
- # Corresponds to the JSON property `sourceProvenance`
222
- # @return [Google::Apis::CloudbuildV1::SourceProvenance]
223
- attr_accessor :source_provenance
224
-
225
- # A list of images to be pushed upon the successful completion of all build
226
- # steps.
227
- # The images will be pushed using the builder service account's credentials.
228
- # The digests of the pushed images will be stored in the Build resource's
229
- # results field.
230
- # If any of the images fail to be pushed, the build is marked FAILURE.
231
- # Corresponds to the JSON property `images`
232
- # @return [Array<String>]
233
- attr_accessor :images
234
-
235
- # ID of the project.
236
- # @OutputOnly.
237
- # Corresponds to the JSON property `projectId`
238
- # @return [String]
239
- attr_accessor :project_id
240
-
241
- # Time at which execution of the build was finished.
242
- # The difference between finish_time and start_time is the duration of the
243
- # build's execution.
244
- # @OutputOnly
245
- # Corresponds to the JSON property `finishTime`
246
- # @return [String]
247
- attr_accessor :finish_time
226
+ # Response containing existing BuildTriggers.
227
+ class ListBuildTriggersResponse
228
+ include Google::Apis::Core::Hashable
248
229
 
249
- # URL to logs for this build in Google Cloud Logging.
250
- # @OutputOnly
251
- # Corresponds to the JSON property `logUrl`
252
- # @return [String]
253
- attr_accessor :log_url
230
+ # BuildTriggers for the project, sorted by create_time descending.
231
+ # Corresponds to the JSON property `triggers`
232
+ # @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
233
+ attr_accessor :triggers
254
234
 
255
235
  def initialize(**args)
256
236
  update!(**args)
@@ -258,53 +238,92 @@ module Google
258
238
 
259
239
  # Update properties of this object
260
240
  def update!(**args)
261
- @options = args[:options] if args.key?(:options)
262
- @source = args[:source] if args.key?(:source)
263
- @status_detail = args[:status_detail] if args.key?(:status_detail)
264
- @status = args[:status] if args.key?(:status)
265
- @timeout = args[:timeout] if args.key?(:timeout)
266
- @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
267
- @results = args[:results] if args.key?(:results)
268
- @steps = args[:steps] if args.key?(:steps)
269
- @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
270
- @id = args[:id] if args.key?(:id)
271
- @start_time = args[:start_time] if args.key?(:start_time)
272
- @substitutions = args[:substitutions] if args.key?(:substitutions)
273
- @create_time = args[:create_time] if args.key?(:create_time)
274
- @source_provenance = args[:source_provenance] if args.key?(:source_provenance)
275
- @images = args[:images] if args.key?(:images)
276
- @project_id = args[:project_id] if args.key?(:project_id)
277
- @finish_time = args[:finish_time] if args.key?(:finish_time)
278
- @log_url = args[:log_url] if args.key?(:log_url)
241
+ @triggers = args[:triggers] if args.key?(:triggers)
279
242
  end
280
243
  end
281
244
 
282
- # Request to cancel an ongoing build.
283
- class CancelBuildRequest
245
+ # This resource represents a long-running operation that is the result of a
246
+ # network API call.
247
+ class Operation
284
248
  include Google::Apis::Core::Hashable
285
249
 
286
- def initialize(**args)
287
- update!(**args)
288
- end
289
-
290
- # Update properties of this object
291
- def update!(**args)
292
- end
293
- end
250
+ # If the value is `false`, it means the operation is still in progress.
251
+ # If true, the operation is completed, and either `error` or `response` is
252
+ # available.
253
+ # Corresponds to the JSON property `done`
254
+ # @return [Boolean]
255
+ attr_accessor :done
256
+ alias_method :done?, :done
294
257
 
295
- # Response including listed builds.
296
- class ListBuildsResponse
297
- include Google::Apis::Core::Hashable
258
+ # The normal response of the operation in case of success. If the original
259
+ # method returns no data on success, such as `Delete`, the response is
260
+ # `google.protobuf.Empty`. If the original method is standard
261
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
262
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
263
+ # is the original method name. For example, if the original method name
264
+ # is `TakeSnapshot()`, the inferred response type is
265
+ # `TakeSnapshotResponse`.
266
+ # Corresponds to the JSON property `response`
267
+ # @return [Hash<String,Object>]
268
+ attr_accessor :response
298
269
 
299
- # Token to receive the next page of results.
300
- # Corresponds to the JSON property `nextPageToken`
270
+ # The server-assigned name, which is only unique within the same service that
271
+ # originally returns it. If you use the default HTTP mapping, the
272
+ # `name` should have the format of `operations/some/unique/name`.
273
+ # Corresponds to the JSON property `name`
301
274
  # @return [String]
302
- attr_accessor :next_page_token
275
+ attr_accessor :name
303
276
 
304
- # Builds will be sorted by create_time, descending.
305
- # Corresponds to the JSON property `builds`
306
- # @return [Array<Google::Apis::CloudbuildV1::Build>]
307
- attr_accessor :builds
277
+ # The `Status` type defines a logical error model that is suitable for different
278
+ # programming environments, including REST APIs and RPC APIs. It is used by
279
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
280
+ # - Simple to use and understand for most users
281
+ # - Flexible enough to meet unexpected needs
282
+ # # Overview
283
+ # The `Status` message contains three pieces of data: error code, error message,
284
+ # and error details. The error code should be an enum value of
285
+ # google.rpc.Code, but it may accept additional error codes if needed. The
286
+ # error message should be a developer-facing English message that helps
287
+ # developers *understand* and *resolve* the error. If a localized user-facing
288
+ # error message is needed, put the localized message in the error details or
289
+ # localize it in the client. The optional error details may contain arbitrary
290
+ # information about the error. There is a predefined set of error detail types
291
+ # in the package `google.rpc` which can be used for common error conditions.
292
+ # # Language mapping
293
+ # The `Status` message is the logical representation of the error model, but it
294
+ # is not necessarily the actual wire format. When the `Status` message is
295
+ # exposed in different client libraries and different wire protocols, it can be
296
+ # mapped differently. For example, it will likely be mapped to some exceptions
297
+ # in Java, but more likely mapped to some error codes in C.
298
+ # # Other uses
299
+ # The error model and the `Status` message can be used in a variety of
300
+ # environments, either with or without APIs, to provide a
301
+ # consistent developer experience across different environments.
302
+ # Example uses of this error model include:
303
+ # - Partial errors. If a service needs to return partial errors to the client,
304
+ # it may embed the `Status` in the normal response to indicate the partial
305
+ # errors.
306
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
307
+ # have a `Status` message for error reporting purpose.
308
+ # - Batch operations. If a client uses batch request and batch response, the
309
+ # `Status` message should be used directly inside batch response, one for
310
+ # each error sub-response.
311
+ # - Asynchronous operations. If an API call embeds asynchronous operation
312
+ # results in its response, the status of those operations should be
313
+ # represented directly using the `Status` message.
314
+ # - Logging. If some API errors are stored in logs, the message `Status` could
315
+ # be used directly after any stripping needed for security/privacy reasons.
316
+ # Corresponds to the JSON property `error`
317
+ # @return [Google::Apis::CloudbuildV1::Status]
318
+ attr_accessor :error
319
+
320
+ # Service-specific metadata associated with the operation. It typically
321
+ # contains progress information and common metadata such as create time.
322
+ # Some services might not provide such metadata. Any method that returns a
323
+ # long-running operation should document the metadata type, if any.
324
+ # Corresponds to the JSON property `metadata`
325
+ # @return [Hash<String,Object>]
326
+ attr_accessor :metadata
308
327
 
309
328
  def initialize(**args)
310
329
  update!(**args)
@@ -312,24 +331,28 @@ module Google
312
331
 
313
332
  # Update properties of this object
314
333
  def update!(**args)
315
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
316
- @builds = args[:builds] if args.key?(:builds)
334
+ @done = args[:done] if args.key?(:done)
335
+ @response = args[:response] if args.key?(:response)
336
+ @name = args[:name] if args.key?(:name)
337
+ @error = args[:error] if args.key?(:error)
338
+ @metadata = args[:metadata] if args.key?(:metadata)
317
339
  end
318
340
  end
319
341
 
320
- # The response message for Operations.ListOperations.
321
- class ListOperationsResponse
342
+ # BuiltImage describes an image built by the pipeline.
343
+ class BuiltImage
322
344
  include Google::Apis::Core::Hashable
323
345
 
324
- # The standard List next-page token.
325
- # Corresponds to the JSON property `nextPageToken`
346
+ # Name used to push the container image to Google Container Registry, as
347
+ # presented to `docker push`.
348
+ # Corresponds to the JSON property `name`
326
349
  # @return [String]
327
- attr_accessor :next_page_token
350
+ attr_accessor :name
328
351
 
329
- # A list of operations that matches the specified filter in the request.
330
- # Corresponds to the JSON property `operations`
331
- # @return [Array<Google::Apis::CloudbuildV1::Operation>]
332
- attr_accessor :operations
352
+ # Docker Registry 2.0 digest.
353
+ # Corresponds to the JSON property `digest`
354
+ # @return [String]
355
+ attr_accessor :digest
333
356
 
334
357
  def initialize(**args)
335
358
  update!(**args)
@@ -337,52 +360,75 @@ module Google
337
360
 
338
361
  # Update properties of this object
339
362
  def update!(**args)
340
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
341
- @operations = args[:operations] if args.key?(:operations)
363
+ @name = args[:name] if args.key?(:name)
364
+ @digest = args[:digest] if args.key?(:digest)
342
365
  end
343
366
  end
344
367
 
345
- # Source describes the location of the source in a supported storage
346
- # service.
347
- class Source
368
+ # BuildStep describes a step to perform in the build pipeline.
369
+ class BuildStep
348
370
  include Google::Apis::Core::Hashable
349
371
 
350
- # StorageSource describes the location of the source in an archive file in
351
- # Google Cloud Storage.
352
- # Corresponds to the JSON property `storageSource`
353
- # @return [Google::Apis::CloudbuildV1::StorageSource]
354
- attr_accessor :storage_source
355
-
356
- # RepoSource describes the location of the source in a Google Cloud Source
357
- # Repository.
358
- # Corresponds to the JSON property `repoSource`
359
- # @return [Google::Apis::CloudbuildV1::RepoSource]
360
- attr_accessor :repo_source
372
+ # Optional entrypoint to be used instead of the build step image's default
373
+ # If unset, the image's default will be used.
374
+ # Corresponds to the JSON property `entrypoint`
375
+ # @return [String]
376
+ attr_accessor :entrypoint
361
377
 
362
- def initialize(**args)
363
- update!(**args)
364
- end
378
+ # Optional unique identifier for this build step, used in wait_for to
379
+ # reference this build step as a dependency.
380
+ # Corresponds to the JSON property `id`
381
+ # @return [String]
382
+ attr_accessor :id
365
383
 
366
- # Update properties of this object
367
- def update!(**args)
368
- @storage_source = args[:storage_source] if args.key?(:storage_source)
369
- @repo_source = args[:repo_source] if args.key?(:repo_source)
370
- end
371
- end
384
+ # Working directory (relative to project source root) to use when running
385
+ # this operation's container.
386
+ # Corresponds to the JSON property `dir`
387
+ # @return [String]
388
+ attr_accessor :dir
372
389
 
373
- # Optional arguments to enable specific features of builds.
374
- class BuildOptions
375
- include Google::Apis::Core::Hashable
390
+ # A list of environment variable definitions to be used when running a step.
391
+ # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
392
+ # being given the value "VALUE".
393
+ # Corresponds to the JSON property `env`
394
+ # @return [Array<String>]
395
+ attr_accessor :env
376
396
 
377
- # Requested verifiability options.
378
- # Corresponds to the JSON property `requestedVerifyOption`
379
- # @return [String]
380
- attr_accessor :requested_verify_option
397
+ # The ID(s) of the step(s) that this build step depends on.
398
+ # This build step will not start until all the build steps in wait_for
399
+ # have completed successfully. If wait_for is empty, this build step will
400
+ # start when all previous build steps in the Build.Steps list have completed
401
+ # successfully.
402
+ # Corresponds to the JSON property `waitFor`
403
+ # @return [Array<String>]
404
+ attr_accessor :wait_for
381
405
 
382
- # Requested hash for SourceProvenance.
383
- # Corresponds to the JSON property `sourceProvenanceHash`
406
+ # A list of arguments that will be presented to the step when it is started.
407
+ # If the image used to run the step's container has an entrypoint, these args
408
+ # will be used as arguments to that entrypoint. If the image does not define
409
+ # an entrypoint, the first element in args will be used as the entrypoint,
410
+ # and the remainder will be used as arguments.
411
+ # Corresponds to the JSON property `args`
384
412
  # @return [Array<String>]
385
- attr_accessor :source_provenance_hash
413
+ attr_accessor :args
414
+
415
+ # The name of the container image that will run this particular build step.
416
+ # If the image is already available in the host's Docker daemon's cache, it
417
+ # will be run directly. If not, the host will attempt to pull the image
418
+ # first, using the builder service account's credentials if necessary.
419
+ # The Docker daemon's cache will already have the latest versions of all of
420
+ # the officially supported build steps
421
+ # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/
422
+ # GoogleCloudPlatform/cloud-builders)).
423
+ # The Docker daemon will also have cached many of the layers for some popular
424
+ # images, like "ubuntu", "debian", but they will be refreshed at the time you
425
+ # attempt to use them.
426
+ # If you built an image in a previous build step, it will be stored in the
427
+ # host's Docker daemon's cache and is available to use as the name for a
428
+ # later build step.
429
+ # Corresponds to the JSON property `name`
430
+ # @return [String]
431
+ attr_accessor :name
386
432
 
387
433
  def initialize(**args)
388
434
  update!(**args)
@@ -390,36 +436,46 @@ module Google
390
436
 
391
437
  # Update properties of this object
392
438
  def update!(**args)
393
- @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
394
- @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
439
+ @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
440
+ @id = args[:id] if args.key?(:id)
441
+ @dir = args[:dir] if args.key?(:dir)
442
+ @env = args[:env] if args.key?(:env)
443
+ @wait_for = args[:wait_for] if args.key?(:wait_for)
444
+ @args = args[:args] if args.key?(:args)
445
+ @name = args[:name] if args.key?(:name)
395
446
  end
396
447
  end
397
448
 
398
- # StorageSource describes the location of the source in an archive file in
399
- # Google Cloud Storage.
400
- class StorageSource
449
+ # RepoSource describes the location of the source in a Google Cloud Source
450
+ # Repository.
451
+ class RepoSource
401
452
  include Google::Apis::Core::Hashable
402
453
 
403
- # Google Cloud Storage bucket containing source (see
404
- # [Bucket Name
405
- # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
406
- # ).
407
- # Corresponds to the JSON property `bucket`
454
+ # Name of the tag to build.
455
+ # Corresponds to the JSON property `tagName`
408
456
  # @return [String]
409
- attr_accessor :bucket
457
+ attr_accessor :tag_name
410
458
 
411
- # Google Cloud Storage object containing source.
412
- # This object must be a gzipped archive file (.tar.gz) containing source to
413
- # build.
414
- # Corresponds to the JSON property `object`
459
+ # Explicit commit SHA to build.
460
+ # Corresponds to the JSON property `commitSha`
415
461
  # @return [String]
416
- attr_accessor :object
462
+ attr_accessor :commit_sha
417
463
 
418
- # Google Cloud Storage generation for the object. If the generation is
419
- # omitted, the latest generation will be used.
420
- # Corresponds to the JSON property `generation`
464
+ # ID of the project that owns the repo. If omitted, the project ID requesting
465
+ # the build is assumed.
466
+ # Corresponds to the JSON property `projectId`
421
467
  # @return [String]
422
- attr_accessor :generation
468
+ attr_accessor :project_id
469
+
470
+ # Name of the repo. If omitted, the name "default" is assumed.
471
+ # Corresponds to the JSON property `repoName`
472
+ # @return [String]
473
+ attr_accessor :repo_name
474
+
475
+ # Name of the branch to build.
476
+ # Corresponds to the JSON property `branchName`
477
+ # @return [String]
478
+ attr_accessor :branch_name
423
479
 
424
480
  def initialize(**args)
425
481
  update!(**args)
@@ -427,25 +483,28 @@ module Google
427
483
 
428
484
  # Update properties of this object
429
485
  def update!(**args)
430
- @bucket = args[:bucket] if args.key?(:bucket)
431
- @object = args[:object] if args.key?(:object)
432
- @generation = args[:generation] if args.key?(:generation)
486
+ @tag_name = args[:tag_name] if args.key?(:tag_name)
487
+ @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
488
+ @project_id = args[:project_id] if args.key?(:project_id)
489
+ @repo_name = args[:repo_name] if args.key?(:repo_name)
490
+ @branch_name = args[:branch_name] if args.key?(:branch_name)
433
491
  end
434
492
  end
435
493
 
436
- # Results describes the artifacts created by the build pipeline.
437
- class Results
494
+ # Container message for hash values.
495
+ class HashProp
438
496
  include Google::Apis::Core::Hashable
439
497
 
440
- # List of build step digests, in order corresponding to build step indices.
441
- # Corresponds to the JSON property `buildStepImages`
442
- # @return [Array<String>]
443
- attr_accessor :build_step_images
498
+ # The type of hash that was performed.
499
+ # Corresponds to the JSON property `type`
500
+ # @return [String]
501
+ attr_accessor :type
444
502
 
445
- # Images that were built as a part of the build.
446
- # Corresponds to the JSON property `images`
447
- # @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
448
- attr_accessor :images
503
+ # The hash value.
504
+ # Corresponds to the JSON property `value`
505
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
506
+ # @return [String]
507
+ attr_accessor :value
449
508
 
450
509
  def initialize(**args)
451
510
  update!(**args)
@@ -453,31 +512,20 @@ module Google
453
512
 
454
513
  # Update properties of this object
455
514
  def update!(**args)
456
- @build_step_images = args[:build_step_images] if args.key?(:build_step_images)
457
- @images = args[:images] if args.key?(:images)
515
+ @type = args[:type] if args.key?(:type)
516
+ @value = args[:value] if args.key?(:value)
458
517
  end
459
518
  end
460
519
 
461
- # Metadata for build operations.
462
- class BuildOperationMetadata
520
+ # Container message for hashes of byte content of files, used in
521
+ # SourceProvenance messages to verify integrity of source input to the build.
522
+ class FileHashes
463
523
  include Google::Apis::Core::Hashable
464
524
 
465
- # A build resource in the Container Builder API.
466
- # At a high level, a Build describes where to find source code, how to build
467
- # it (for example, the builder image to run on the source), and what tag to
468
- # apply to the built image when it is pushed to Google Container Registry.
469
- # Fields can include the following variables which will be expanded when the
470
- # build is created:
471
- # - $PROJECT_ID: the project ID of the build.
472
- # - $BUILD_ID: the autogenerated ID of the build.
473
- # - $REPO_NAME: the source repository name specified by RepoSource.
474
- # - $BRANCH_NAME: the branch name specified by RepoSource.
475
- # - $TAG_NAME: the tag name specified by RepoSource.
476
- # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
477
- # resolved from the specified branch or tag.
478
- # Corresponds to the JSON property `build`
479
- # @return [Google::Apis::CloudbuildV1::Build]
480
- attr_accessor :build
525
+ # Collection of file hashes.
526
+ # Corresponds to the JSON property `fileHash`
527
+ # @return [Array<Google::Apis::CloudbuildV1::HashProp>]
528
+ attr_accessor :file_hash
481
529
 
482
530
  def initialize(**args)
483
531
  update!(**args)
@@ -485,38 +533,69 @@ module Google
485
533
 
486
534
  # Update properties of this object
487
535
  def update!(**args)
488
- @build = args[:build] if args.key?(:build)
536
+ @file_hash = args[:file_hash] if args.key?(:file_hash)
489
537
  end
490
538
  end
491
539
 
492
- # Provenance of the source. Ways to find the original source, or verify that
493
- # some source was used for this build.
494
- class SourceProvenance
540
+ # The `Status` type defines a logical error model that is suitable for different
541
+ # programming environments, including REST APIs and RPC APIs. It is used by
542
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
543
+ # - Simple to use and understand for most users
544
+ # - Flexible enough to meet unexpected needs
545
+ # # Overview
546
+ # The `Status` message contains three pieces of data: error code, error message,
547
+ # and error details. The error code should be an enum value of
548
+ # google.rpc.Code, but it may accept additional error codes if needed. The
549
+ # error message should be a developer-facing English message that helps
550
+ # developers *understand* and *resolve* the error. If a localized user-facing
551
+ # error message is needed, put the localized message in the error details or
552
+ # localize it in the client. The optional error details may contain arbitrary
553
+ # information about the error. There is a predefined set of error detail types
554
+ # in the package `google.rpc` which can be used for common error conditions.
555
+ # # Language mapping
556
+ # The `Status` message is the logical representation of the error model, but it
557
+ # is not necessarily the actual wire format. When the `Status` message is
558
+ # exposed in different client libraries and different wire protocols, it can be
559
+ # mapped differently. For example, it will likely be mapped to some exceptions
560
+ # in Java, but more likely mapped to some error codes in C.
561
+ # # Other uses
562
+ # The error model and the `Status` message can be used in a variety of
563
+ # environments, either with or without APIs, to provide a
564
+ # consistent developer experience across different environments.
565
+ # Example uses of this error model include:
566
+ # - Partial errors. If a service needs to return partial errors to the client,
567
+ # it may embed the `Status` in the normal response to indicate the partial
568
+ # errors.
569
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
570
+ # have a `Status` message for error reporting purpose.
571
+ # - Batch operations. If a client uses batch request and batch response, the
572
+ # `Status` message should be used directly inside batch response, one for
573
+ # each error sub-response.
574
+ # - Asynchronous operations. If an API call embeds asynchronous operation
575
+ # results in its response, the status of those operations should be
576
+ # represented directly using the `Status` message.
577
+ # - Logging. If some API errors are stored in logs, the message `Status` could
578
+ # be used directly after any stripping needed for security/privacy reasons.
579
+ class Status
495
580
  include Google::Apis::Core::Hashable
496
581
 
497
- # Hash(es) of the build source, which can be used to verify that the original
498
- # source integrity was maintained in the build. Note that FileHashes will
499
- # only be populated if BuildOptions has requested a SourceProvenanceHash.
500
- # The keys to this map are file paths used as build source and the values
501
- # contain the hash values for those files.
502
- # If the build source came in a single package such as a gzipped tarfile
503
- # (.tar.gz), the FileHash will be for the single path to that file.
504
- # @OutputOnly
505
- # Corresponds to the JSON property `fileHashes`
506
- # @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
507
- attr_accessor :file_hashes
582
+ # A developer-facing error message, which should be in English. Any
583
+ # user-facing error message should be localized and sent in the
584
+ # google.rpc.Status.details field, or localized by the client.
585
+ # Corresponds to the JSON property `message`
586
+ # @return [String]
587
+ attr_accessor :message
508
588
 
509
- # RepoSource describes the location of the source in a Google Cloud Source
510
- # Repository.
511
- # Corresponds to the JSON property `resolvedRepoSource`
512
- # @return [Google::Apis::CloudbuildV1::RepoSource]
513
- attr_accessor :resolved_repo_source
589
+ # A list of messages that carry the error details. There will be a
590
+ # common set of message types for APIs to use.
591
+ # Corresponds to the JSON property `details`
592
+ # @return [Array<Hash<String,Object>>]
593
+ attr_accessor :details
514
594
 
515
- # StorageSource describes the location of the source in an archive file in
516
- # Google Cloud Storage.
517
- # Corresponds to the JSON property `resolvedStorageSource`
518
- # @return [Google::Apis::CloudbuildV1::StorageSource]
519
- attr_accessor :resolved_storage_source
595
+ # The status code, which should be an enum value of google.rpc.Code.
596
+ # Corresponds to the JSON property `code`
597
+ # @return [Fixnum]
598
+ attr_accessor :code
520
599
 
521
600
  def initialize(**args)
522
601
  update!(**args)
@@ -524,14 +603,20 @@ module Google
524
603
 
525
604
  # Update properties of this object
526
605
  def update!(**args)
527
- @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
528
- @resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
529
- @resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
606
+ @message = args[:message] if args.key?(:message)
607
+ @details = args[:details] if args.key?(:details)
608
+ @code = args[:code] if args.key?(:code)
530
609
  end
531
610
  end
532
611
 
533
- # The request message for Operations.CancelOperation.
534
- class CancelOperationRequest
612
+ # A generic empty message that you can re-use to avoid defining duplicated
613
+ # empty messages in your APIs. A typical example is to use it as the request
614
+ # or the response type of an API method. For instance:
615
+ # service Foo `
616
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
617
+ # `
618
+ # The JSON representation for `Empty` is empty JSON object ````.
619
+ class Empty
535
620
  include Google::Apis::Core::Hashable
536
621
 
537
622
  def initialize(**args)
@@ -543,107 +628,67 @@ module Google
543
628
  end
544
629
  end
545
630
 
546
- # Response containing existing BuildTriggers.
547
- class ListBuildTriggersResponse
631
+ # Configuration for an automated build in response to source repository
632
+ # changes.
633
+ class BuildTrigger
548
634
  include Google::Apis::Core::Hashable
549
635
 
550
- # BuildTriggers for the project, sorted by create_time descending.
551
- # Corresponds to the JSON property `triggers`
552
- # @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
553
- attr_accessor :triggers
636
+ # Unique identifier of the trigger.
637
+ # @OutputOnly
638
+ # Corresponds to the JSON property `id`
639
+ # @return [String]
640
+ attr_accessor :id
554
641
 
555
- def initialize(**args)
556
- update!(**args)
557
- end
642
+ # A build resource in the Container Builder API.
643
+ # At a high level, a Build describes where to find source code, how to build
644
+ # it (for example, the builder image to run on the source), and what tag to
645
+ # apply to the built image when it is pushed to Google Container Registry.
646
+ # Fields can include the following variables which will be expanded when the
647
+ # build is created:
648
+ # - $PROJECT_ID: the project ID of the build.
649
+ # - $BUILD_ID: the autogenerated ID of the build.
650
+ # - $REPO_NAME: the source repository name specified by RepoSource.
651
+ # - $BRANCH_NAME: the branch name specified by RepoSource.
652
+ # - $TAG_NAME: the tag name specified by RepoSource.
653
+ # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
654
+ # resolved from the specified branch or tag.
655
+ # Corresponds to the JSON property `build`
656
+ # @return [Google::Apis::CloudbuildV1::Build]
657
+ attr_accessor :build
558
658
 
559
- # Update properties of this object
560
- def update!(**args)
561
- @triggers = args[:triggers] if args.key?(:triggers)
562
- end
563
- end
659
+ # Substitutions data for Build resource.
660
+ # Corresponds to the JSON property `substitutions`
661
+ # @return [Hash<String,String>]
662
+ attr_accessor :substitutions
564
663
 
565
- # This resource represents a long-running operation that is the result of a
566
- # network API call.
567
- class Operation
568
- include Google::Apis::Core::Hashable
664
+ # Human-readable description of this trigger.
665
+ # Corresponds to the JSON property `description`
666
+ # @return [String]
667
+ attr_accessor :description
569
668
 
570
- # If the value is `false`, it means the operation is still in progress.
571
- # If true, the operation is completed, and either `error` or `response` is
572
- # available.
573
- # Corresponds to the JSON property `done`
669
+ # If true, the trigger will never result in a build.
670
+ # Corresponds to the JSON property `disabled`
574
671
  # @return [Boolean]
575
- attr_accessor :done
576
- alias_method :done?, :done
577
-
578
- # The normal response of the operation in case of success. If the original
579
- # method returns no data on success, such as `Delete`, the response is
580
- # `google.protobuf.Empty`. If the original method is standard
581
- # `Get`/`Create`/`Update`, the response should be the resource. For other
582
- # methods, the response should have the type `XxxResponse`, where `Xxx`
583
- # is the original method name. For example, if the original method name
584
- # is `TakeSnapshot()`, the inferred response type is
585
- # `TakeSnapshotResponse`.
586
- # Corresponds to the JSON property `response`
587
- # @return [Hash<String,Object>]
588
- attr_accessor :response
672
+ attr_accessor :disabled
673
+ alias_method :disabled?, :disabled
589
674
 
590
- # The server-assigned name, which is only unique within the same service that
591
- # originally returns it. If you use the default HTTP mapping, the
592
- # `name` should have the format of `operations/some/unique/name`.
593
- # Corresponds to the JSON property `name`
675
+ # Time when the trigger was created.
676
+ # @OutputOnly
677
+ # Corresponds to the JSON property `createTime`
594
678
  # @return [String]
595
- attr_accessor :name
679
+ attr_accessor :create_time
596
680
 
597
- # The `Status` type defines a logical error model that is suitable for different
598
- # programming environments, including REST APIs and RPC APIs. It is used by
599
- # [gRPC](https://github.com/grpc). The error model is designed to be:
600
- # - Simple to use and understand for most users
601
- # - Flexible enough to meet unexpected needs
602
- # # Overview
603
- # The `Status` message contains three pieces of data: error code, error message,
604
- # and error details. The error code should be an enum value of
605
- # google.rpc.Code, but it may accept additional error codes if needed. The
606
- # error message should be a developer-facing English message that helps
607
- # developers *understand* and *resolve* the error. If a localized user-facing
608
- # error message is needed, put the localized message in the error details or
609
- # localize it in the client. The optional error details may contain arbitrary
610
- # information about the error. There is a predefined set of error detail types
611
- # in the package `google.rpc` which can be used for common error conditions.
612
- # # Language mapping
613
- # The `Status` message is the logical representation of the error model, but it
614
- # is not necessarily the actual wire format. When the `Status` message is
615
- # exposed in different client libraries and different wire protocols, it can be
616
- # mapped differently. For example, it will likely be mapped to some exceptions
617
- # in Java, but more likely mapped to some error codes in C.
618
- # # Other uses
619
- # The error model and the `Status` message can be used in a variety of
620
- # environments, either with or without APIs, to provide a
621
- # consistent developer experience across different environments.
622
- # Example uses of this error model include:
623
- # - Partial errors. If a service needs to return partial errors to the client,
624
- # it may embed the `Status` in the normal response to indicate the partial
625
- # errors.
626
- # - Workflow errors. A typical workflow has multiple steps. Each step may
627
- # have a `Status` message for error reporting purpose.
628
- # - Batch operations. If a client uses batch request and batch response, the
629
- # `Status` message should be used directly inside batch response, one for
630
- # each error sub-response.
631
- # - Asynchronous operations. If an API call embeds asynchronous operation
632
- # results in its response, the status of those operations should be
633
- # represented directly using the `Status` message.
634
- # - Logging. If some API errors are stored in logs, the message `Status` could
635
- # be used directly after any stripping needed for security/privacy reasons.
636
- # Corresponds to the JSON property `error`
637
- # @return [Google::Apis::CloudbuildV1::Status]
638
- attr_accessor :error
681
+ # RepoSource describes the location of the source in a Google Cloud Source
682
+ # Repository.
683
+ # Corresponds to the JSON property `triggerTemplate`
684
+ # @return [Google::Apis::CloudbuildV1::RepoSource]
685
+ attr_accessor :trigger_template
639
686
 
640
- # Service-specific metadata associated with the operation. It typically
641
- # contains progress information and common metadata such as create time.
642
- # Some services might not provide such metadata. Any method that returns a
643
- # long-running operation should document the metadata type, if any.
644
- # Corresponds to the JSON property `metadata`
645
- # @return [Hash<String,Object>]
646
- attr_accessor :metadata
687
+ # Path, from the source root, to a file whose contents is used for the
688
+ # template.
689
+ # Corresponds to the JSON property `filename`
690
+ # @return [String]
691
+ attr_accessor :filename
647
692
 
648
693
  def initialize(**args)
649
694
  update!(**args)
@@ -651,149 +696,148 @@ module Google
651
696
 
652
697
  # Update properties of this object
653
698
  def update!(**args)
654
- @done = args[:done] if args.key?(:done)
655
- @response = args[:response] if args.key?(:response)
656
- @name = args[:name] if args.key?(:name)
657
- @error = args[:error] if args.key?(:error)
658
- @metadata = args[:metadata] if args.key?(:metadata)
699
+ @id = args[:id] if args.key?(:id)
700
+ @build = args[:build] if args.key?(:build)
701
+ @substitutions = args[:substitutions] if args.key?(:substitutions)
702
+ @description = args[:description] if args.key?(:description)
703
+ @disabled = args[:disabled] if args.key?(:disabled)
704
+ @create_time = args[:create_time] if args.key?(:create_time)
705
+ @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
706
+ @filename = args[:filename] if args.key?(:filename)
659
707
  end
660
708
  end
661
709
 
662
- # BuiltImage describes an image built by the pipeline.
663
- class BuiltImage
710
+ # A build resource in the Container Builder API.
711
+ # At a high level, a Build describes where to find source code, how to build
712
+ # it (for example, the builder image to run on the source), and what tag to
713
+ # apply to the built image when it is pushed to Google Container Registry.
714
+ # Fields can include the following variables which will be expanded when the
715
+ # build is created:
716
+ # - $PROJECT_ID: the project ID of the build.
717
+ # - $BUILD_ID: the autogenerated ID of the build.
718
+ # - $REPO_NAME: the source repository name specified by RepoSource.
719
+ # - $BRANCH_NAME: the branch name specified by RepoSource.
720
+ # - $TAG_NAME: the tag name specified by RepoSource.
721
+ # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
722
+ # resolved from the specified branch or tag.
723
+ class Build
664
724
  include Google::Apis::Core::Hashable
665
725
 
666
- # Name used to push the container image to Google Container Registry, as
667
- # presented to `docker push`.
668
- # Corresponds to the JSON property `name`
669
- # @return [String]
670
- attr_accessor :name
671
-
672
- # Docker Registry 2.0 digest.
673
- # Corresponds to the JSON property `digest`
726
+ # Google Cloud Storage bucket where logs should be written (see
727
+ # [Bucket Name
728
+ # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
729
+ # ).
730
+ # Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
731
+ # Corresponds to the JSON property `logsBucket`
674
732
  # @return [String]
675
- attr_accessor :digest
676
-
677
- def initialize(**args)
678
- update!(**args)
679
- end
733
+ attr_accessor :logs_bucket
680
734
 
681
- # Update properties of this object
682
- def update!(**args)
683
- @name = args[:name] if args.key?(:name)
684
- @digest = args[:digest] if args.key?(:digest)
685
- end
686
- end
735
+ # Results describes the artifacts created by the build pipeline.
736
+ # Corresponds to the JSON property `results`
737
+ # @return [Google::Apis::CloudbuildV1::Results]
738
+ attr_accessor :results
687
739
 
688
- # RepoSource describes the location of the source in a Google Cloud Source
689
- # Repository.
690
- class RepoSource
691
- include Google::Apis::Core::Hashable
740
+ # Describes the operations to be performed on the workspace.
741
+ # Corresponds to the JSON property `steps`
742
+ # @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
743
+ attr_accessor :steps
692
744
 
693
- # ID of the project that owns the repo. If omitted, the project ID requesting
694
- # the build is assumed.
695
- # Corresponds to the JSON property `projectId`
745
+ # The ID of the BuildTrigger that triggered this build, if it was
746
+ # triggered automatically.
747
+ # @OutputOnly
748
+ # Corresponds to the JSON property `buildTriggerId`
696
749
  # @return [String]
697
- attr_accessor :project_id
750
+ attr_accessor :build_trigger_id
698
751
 
699
- # Name of the repo. If omitted, the name "default" is assumed.
700
- # Corresponds to the JSON property `repoName`
752
+ # Unique identifier of the build.
753
+ # @OutputOnly
754
+ # Corresponds to the JSON property `id`
701
755
  # @return [String]
702
- attr_accessor :repo_name
756
+ attr_accessor :id
703
757
 
704
- # Name of the branch to build.
705
- # Corresponds to the JSON property `branchName`
758
+ # Time at which execution of the build was started.
759
+ # @OutputOnly
760
+ # Corresponds to the JSON property `startTime`
706
761
  # @return [String]
707
- attr_accessor :branch_name
762
+ attr_accessor :start_time
708
763
 
709
- # Name of the tag to build.
710
- # Corresponds to the JSON property `tagName`
711
- # @return [String]
712
- attr_accessor :tag_name
764
+ # Substitutions data for Build resource.
765
+ # Corresponds to the JSON property `substitutions`
766
+ # @return [Hash<String,String>]
767
+ attr_accessor :substitutions
713
768
 
714
- # Explicit commit SHA to build.
715
- # Corresponds to the JSON property `commitSha`
769
+ # Time at which the request to create the build was received.
770
+ # @OutputOnly
771
+ # Corresponds to the JSON property `createTime`
716
772
  # @return [String]
717
- attr_accessor :commit_sha
773
+ attr_accessor :create_time
718
774
 
719
- def initialize(**args)
720
- update!(**args)
721
- end
775
+ # Provenance of the source. Ways to find the original source, or verify that
776
+ # some source was used for this build.
777
+ # Corresponds to the JSON property `sourceProvenance`
778
+ # @return [Google::Apis::CloudbuildV1::SourceProvenance]
779
+ attr_accessor :source_provenance
722
780
 
723
- # Update properties of this object
724
- def update!(**args)
725
- @project_id = args[:project_id] if args.key?(:project_id)
726
- @repo_name = args[:repo_name] if args.key?(:repo_name)
727
- @branch_name = args[:branch_name] if args.key?(:branch_name)
728
- @tag_name = args[:tag_name] if args.key?(:tag_name)
729
- @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
730
- end
731
- end
781
+ # A list of images to be pushed upon the successful completion of all build
782
+ # steps.
783
+ # The images will be pushed using the builder service account's credentials.
784
+ # The digests of the pushed images will be stored in the Build resource's
785
+ # results field.
786
+ # If any of the images fail to be pushed, the build is marked FAILURE.
787
+ # Corresponds to the JSON property `images`
788
+ # @return [Array<String>]
789
+ attr_accessor :images
732
790
 
733
- # BuildStep describes a step to perform in the build pipeline.
734
- class BuildStep
735
- include Google::Apis::Core::Hashable
791
+ # ID of the project.
792
+ # @OutputOnly.
793
+ # Corresponds to the JSON property `projectId`
794
+ # @return [String]
795
+ attr_accessor :project_id
736
796
 
737
- # Working directory (relative to project source root) to use when running
738
- # this operation's container.
739
- # Corresponds to the JSON property `dir`
797
+ # Time at which execution of the build was finished.
798
+ # The difference between finish_time and start_time is the duration of the
799
+ # build's execution.
800
+ # @OutputOnly
801
+ # Corresponds to the JSON property `finishTime`
740
802
  # @return [String]
741
- attr_accessor :dir
803
+ attr_accessor :finish_time
742
804
 
743
- # A list of environment variable definitions to be used when running a step.
744
- # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
745
- # being given the value "VALUE".
746
- # Corresponds to the JSON property `env`
747
- # @return [Array<String>]
748
- attr_accessor :env
805
+ # URL to logs for this build in Google Cloud Logging.
806
+ # @OutputOnly
807
+ # Corresponds to the JSON property `logUrl`
808
+ # @return [String]
809
+ attr_accessor :log_url
749
810
 
750
- # The ID(s) of the step(s) that this build step depends on.
751
- # This build step will not start until all the build steps in wait_for
752
- # have completed successfully. If wait_for is empty, this build step will
753
- # start when all previous build steps in the Build.Steps list have completed
754
- # successfully.
755
- # Corresponds to the JSON property `waitFor`
756
- # @return [Array<String>]
757
- attr_accessor :wait_for
811
+ # Optional arguments to enable specific features of builds.
812
+ # Corresponds to the JSON property `options`
813
+ # @return [Google::Apis::CloudbuildV1::BuildOptions]
814
+ attr_accessor :options
758
815
 
759
- # A list of arguments that will be presented to the step when it is started.
760
- # If the image used to run the step's container has an entrypoint, these args
761
- # will be used as arguments to that entrypoint. If the image does not define
762
- # an entrypoint, the first element in args will be used as the entrypoint,
763
- # and the remainder will be used as arguments.
764
- # Corresponds to the JSON property `args`
765
- # @return [Array<String>]
766
- attr_accessor :args
816
+ # Source describes the location of the source in a supported storage
817
+ # service.
818
+ # Corresponds to the JSON property `source`
819
+ # @return [Google::Apis::CloudbuildV1::Source]
820
+ attr_accessor :source
767
821
 
768
- # The name of the container image that will run this particular build step.
769
- # If the image is already available in the host's Docker daemon's cache, it
770
- # will be run directly. If not, the host will attempt to pull the image
771
- # first, using the builder service account's credentials if necessary.
772
- # The Docker daemon's cache will already have the latest versions of all of
773
- # the officially supported build steps
774
- # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/
775
- # GoogleCloudPlatform/cloud-builders)).
776
- # The Docker daemon will also have cached many of the layers for some popular
777
- # images, like "ubuntu", "debian", but they will be refreshed at the time you
778
- # attempt to use them.
779
- # If you built an image in a previous build step, it will be stored in the
780
- # host's Docker daemon's cache and is available to use as the name for a
781
- # later build step.
782
- # Corresponds to the JSON property `name`
822
+ # Customer-readable message about the current status.
823
+ # @OutputOnly
824
+ # Corresponds to the JSON property `statusDetail`
783
825
  # @return [String]
784
- attr_accessor :name
826
+ attr_accessor :status_detail
785
827
 
786
- # Optional entrypoint to be used instead of the build step image's default
787
- # If unset, the image's default will be used.
788
- # Corresponds to the JSON property `entrypoint`
828
+ # Status of the build.
829
+ # @OutputOnly
830
+ # Corresponds to the JSON property `status`
789
831
  # @return [String]
790
- attr_accessor :entrypoint
832
+ attr_accessor :status
791
833
 
792
- # Optional unique identifier for this build step, used in wait_for to
793
- # reference this build step as a dependency.
794
- # Corresponds to the JSON property `id`
834
+ # Amount of time that this build should be allowed to run, to second
835
+ # granularity. If this amount of time elapses, work on the build will cease
836
+ # and the build status will be TIMEOUT.
837
+ # Default time is ten minutes.
838
+ # Corresponds to the JSON property `timeout`
795
839
  # @return [String]
796
- attr_accessor :id
840
+ attr_accessor :timeout
797
841
 
798
842
  def initialize(**args)
799
843
  update!(**args)
@@ -801,51 +845,53 @@ module Google
801
845
 
802
846
  # Update properties of this object
803
847
  def update!(**args)
804
- @dir = args[:dir] if args.key?(:dir)
805
- @env = args[:env] if args.key?(:env)
806
- @wait_for = args[:wait_for] if args.key?(:wait_for)
807
- @args = args[:args] if args.key?(:args)
808
- @name = args[:name] if args.key?(:name)
809
- @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
848
+ @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
849
+ @results = args[:results] if args.key?(:results)
850
+ @steps = args[:steps] if args.key?(:steps)
851
+ @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
810
852
  @id = args[:id] if args.key?(:id)
853
+ @start_time = args[:start_time] if args.key?(:start_time)
854
+ @substitutions = args[:substitutions] if args.key?(:substitutions)
855
+ @create_time = args[:create_time] if args.key?(:create_time)
856
+ @source_provenance = args[:source_provenance] if args.key?(:source_provenance)
857
+ @images = args[:images] if args.key?(:images)
858
+ @project_id = args[:project_id] if args.key?(:project_id)
859
+ @finish_time = args[:finish_time] if args.key?(:finish_time)
860
+ @log_url = args[:log_url] if args.key?(:log_url)
861
+ @options = args[:options] if args.key?(:options)
862
+ @source = args[:source] if args.key?(:source)
863
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
864
+ @status = args[:status] if args.key?(:status)
865
+ @timeout = args[:timeout] if args.key?(:timeout)
811
866
  end
812
867
  end
813
868
 
814
- # Container message for hash values.
815
- class HashProp
869
+ # Request to cancel an ongoing build.
870
+ class CancelBuildRequest
816
871
  include Google::Apis::Core::Hashable
817
872
 
818
- # The type of hash that was performed.
819
- # Corresponds to the JSON property `type`
820
- # @return [String]
821
- attr_accessor :type
822
-
823
- # The hash value.
824
- # Corresponds to the JSON property `value`
825
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
826
- # @return [String]
827
- attr_accessor :value
828
-
829
873
  def initialize(**args)
830
874
  update!(**args)
831
875
  end
832
876
 
833
877
  # Update properties of this object
834
878
  def update!(**args)
835
- @type = args[:type] if args.key?(:type)
836
- @value = args[:value] if args.key?(:value)
837
879
  end
838
880
  end
839
881
 
840
- # Container message for hashes of byte content of files, used in
841
- # SourceProvenance messages to verify integrity of source input to the build.
842
- class FileHashes
882
+ # Response including listed builds.
883
+ class ListBuildsResponse
843
884
  include Google::Apis::Core::Hashable
844
885
 
845
- # Collection of file hashes.
846
- # Corresponds to the JSON property `fileHash`
847
- # @return [Array<Google::Apis::CloudbuildV1::HashProp>]
848
- attr_accessor :file_hash
886
+ # Token to receive the next page of results.
887
+ # Corresponds to the JSON property `nextPageToken`
888
+ # @return [String]
889
+ attr_accessor :next_page_token
890
+
891
+ # Builds will be sorted by create_time, descending.
892
+ # Corresponds to the JSON property `builds`
893
+ # @return [Array<Google::Apis::CloudbuildV1::Build>]
894
+ attr_accessor :builds
849
895
 
850
896
  def initialize(**args)
851
897
  update!(**args)
@@ -853,69 +899,24 @@ module Google
853
899
 
854
900
  # Update properties of this object
855
901
  def update!(**args)
856
- @file_hash = args[:file_hash] if args.key?(:file_hash)
902
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
903
+ @builds = args[:builds] if args.key?(:builds)
857
904
  end
858
905
  end
859
906
 
860
- # The `Status` type defines a logical error model that is suitable for different
861
- # programming environments, including REST APIs and RPC APIs. It is used by
862
- # [gRPC](https://github.com/grpc). The error model is designed to be:
863
- # - Simple to use and understand for most users
864
- # - Flexible enough to meet unexpected needs
865
- # # Overview
866
- # The `Status` message contains three pieces of data: error code, error message,
867
- # and error details. The error code should be an enum value of
868
- # google.rpc.Code, but it may accept additional error codes if needed. The
869
- # error message should be a developer-facing English message that helps
870
- # developers *understand* and *resolve* the error. If a localized user-facing
871
- # error message is needed, put the localized message in the error details or
872
- # localize it in the client. The optional error details may contain arbitrary
873
- # information about the error. There is a predefined set of error detail types
874
- # in the package `google.rpc` which can be used for common error conditions.
875
- # # Language mapping
876
- # The `Status` message is the logical representation of the error model, but it
877
- # is not necessarily the actual wire format. When the `Status` message is
878
- # exposed in different client libraries and different wire protocols, it can be
879
- # mapped differently. For example, it will likely be mapped to some exceptions
880
- # in Java, but more likely mapped to some error codes in C.
881
- # # Other uses
882
- # The error model and the `Status` message can be used in a variety of
883
- # environments, either with or without APIs, to provide a
884
- # consistent developer experience across different environments.
885
- # Example uses of this error model include:
886
- # - Partial errors. If a service needs to return partial errors to the client,
887
- # it may embed the `Status` in the normal response to indicate the partial
888
- # errors.
889
- # - Workflow errors. A typical workflow has multiple steps. Each step may
890
- # have a `Status` message for error reporting purpose.
891
- # - Batch operations. If a client uses batch request and batch response, the
892
- # `Status` message should be used directly inside batch response, one for
893
- # each error sub-response.
894
- # - Asynchronous operations. If an API call embeds asynchronous operation
895
- # results in its response, the status of those operations should be
896
- # represented directly using the `Status` message.
897
- # - Logging. If some API errors are stored in logs, the message `Status` could
898
- # be used directly after any stripping needed for security/privacy reasons.
899
- class Status
907
+ # The response message for Operations.ListOperations.
908
+ class ListOperationsResponse
900
909
  include Google::Apis::Core::Hashable
901
910
 
902
- # The status code, which should be an enum value of google.rpc.Code.
903
- # Corresponds to the JSON property `code`
904
- # @return [Fixnum]
905
- attr_accessor :code
906
-
907
- # A developer-facing error message, which should be in English. Any
908
- # user-facing error message should be localized and sent in the
909
- # google.rpc.Status.details field, or localized by the client.
910
- # Corresponds to the JSON property `message`
911
+ # The standard List next-page token.
912
+ # Corresponds to the JSON property `nextPageToken`
911
913
  # @return [String]
912
- attr_accessor :message
914
+ attr_accessor :next_page_token
913
915
 
914
- # A list of messages that carry the error details. There will be a
915
- # common set of message types for APIs to use.
916
- # Corresponds to the JSON property `details`
917
- # @return [Array<Hash<String,Object>>]
918
- attr_accessor :details
916
+ # A list of operations that matches the specified filter in the request.
917
+ # Corresponds to the JSON property `operations`
918
+ # @return [Array<Google::Apis::CloudbuildV1::Operation>]
919
+ attr_accessor :operations
919
920
 
920
921
  def initialize(**args)
921
922
  update!(**args)
@@ -923,9 +924,8 @@ module Google
923
924
 
924
925
  # Update properties of this object
925
926
  def update!(**args)
926
- @code = args[:code] if args.key?(:code)
927
- @message = args[:message] if args.key?(:message)
928
- @details = args[:details] if args.key?(:details)
927
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
928
+ @operations = args[:operations] if args.key?(:operations)
929
929
  end
930
930
  end
931
931
  end