google-api-client 0.13.2 → 0.13.3

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