google-api-client 0.9.8 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -22,43 +22,61 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1
24
24
 
25
- class Status
25
+ class Operation
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class BuildOperationMetadata
31
+ class ListBuildTriggersResponse
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class Source
37
+ class BuiltImage
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Operation
43
+ class RepoSource
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class BuiltImage
49
+ class HashProp
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class StorageSource
55
+ class BuildStep
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class Results
61
+ class FileHashes
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Status
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Empty
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class BuildTrigger
62
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
81
 
64
82
  include Google::Apis::Core::JsonObjectSupport
@@ -76,105 +94,185 @@ module Google
76
94
  include Google::Apis::Core::JsonObjectSupport
77
95
  end
78
96
 
97
+ class ListBuildsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
79
103
  class ListOperationsResponse
80
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
105
 
82
106
  include Google::Apis::Core::JsonObjectSupport
83
107
  end
84
108
 
85
- class BuildStep
109
+ class Source
86
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
111
 
88
112
  include Google::Apis::Core::JsonObjectSupport
89
113
  end
90
114
 
91
- class ListBuildsResponse
115
+ class BuildOptions
92
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
117
 
94
118
  include Google::Apis::Core::JsonObjectSupport
95
119
  end
96
120
 
97
- class Status
121
+ class StorageSource
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Results
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class BuildOperationMetadata
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class SourceProvenance
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class CancelOperationRequest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Operation
98
152
  # @private
99
153
  class Representation < Google::Apis::Core::JsonRepresentation
100
- property :code, as: 'code'
101
- collection :details, as: 'details'
102
- property :message, as: 'message'
154
+ hash :response, as: 'response'
155
+ property :name, as: 'name'
156
+ property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
157
+
158
+ hash :metadata, as: 'metadata'
159
+ property :done, as: 'done'
103
160
  end
104
161
  end
105
162
 
106
- class BuildOperationMetadata
163
+ class ListBuildTriggersResponse
107
164
  # @private
108
165
  class Representation < Google::Apis::Core::JsonRepresentation
109
- property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
166
+ collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
110
167
 
111
168
  end
112
169
  end
113
170
 
114
- class Source
171
+ class BuiltImage
115
172
  # @private
116
173
  class Representation < Google::Apis::Core::JsonRepresentation
117
- property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
174
+ property :name, as: 'name'
175
+ property :digest, as: 'digest'
176
+ end
177
+ end
118
178
 
179
+ class RepoSource
180
+ # @private
181
+ class Representation < Google::Apis::Core::JsonRepresentation
182
+ property :tag_name, as: 'tagName'
183
+ property :commit_sha, as: 'commitSha'
184
+ property :project_id, as: 'projectId'
185
+ property :repo_name, as: 'repoName'
186
+ property :branch_name, as: 'branchName'
119
187
  end
120
188
  end
121
189
 
122
- class Operation
190
+ class HashProp
123
191
  # @private
124
192
  class Representation < Google::Apis::Core::JsonRepresentation
125
- property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
193
+ property :type, as: 'type'
194
+ property :value, :base64 => true, as: 'value'
195
+ end
196
+ end
126
197
 
127
- property :done, as: 'done'
128
- hash :metadata, as: 'metadata'
129
- hash :response, as: 'response'
198
+ class BuildStep
199
+ # @private
200
+ class Representation < Google::Apis::Core::JsonRepresentation
201
+ property :entrypoint, as: 'entrypoint'
202
+ property :id, as: 'id'
203
+ property :dir, as: 'dir'
204
+ collection :env, as: 'env'
205
+ collection :wait_for, as: 'waitFor'
206
+ collection :args, as: 'args'
130
207
  property :name, as: 'name'
131
208
  end
132
209
  end
133
210
 
134
- class BuiltImage
211
+ class FileHashes
135
212
  # @private
136
213
  class Representation < Google::Apis::Core::JsonRepresentation
137
- property :digest, as: 'digest'
138
- property :name, as: 'name'
214
+ collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
215
+
139
216
  end
140
217
  end
141
218
 
142
- class StorageSource
219
+ class Status
143
220
  # @private
144
221
  class Representation < Google::Apis::Core::JsonRepresentation
145
- property :bucket, as: 'bucket'
146
- property :generation, as: 'generation'
147
- property :object, as: 'object'
222
+ collection :details, as: 'details'
223
+ property :code, as: 'code'
224
+ property :message, as: 'message'
148
225
  end
149
226
  end
150
227
 
151
- class Results
228
+ class Empty
152
229
  # @private
153
230
  class Representation < Google::Apis::Core::JsonRepresentation
154
- collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
231
+ end
232
+ end
233
+
234
+ class BuildTrigger
235
+ # @private
236
+ class Representation < Google::Apis::Core::JsonRepresentation
237
+ property :disabled, as: 'disabled'
238
+ property :create_time, as: 'createTime'
239
+ property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
155
240
 
241
+ property :filename, as: 'filename'
242
+ property :id, as: 'id'
243
+ property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
244
+
245
+ hash :substitutions, as: 'substitutions'
246
+ property :description, as: 'description'
156
247
  end
157
248
  end
158
249
 
159
250
  class Build
160
251
  # @private
161
252
  class Representation < Google::Apis::Core::JsonRepresentation
162
- property :id, as: 'id'
163
- property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
253
+ property :create_time, as: 'createTime'
254
+ property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
164
255
 
165
- property :status, as: 'status'
256
+ collection :images, as: 'images'
257
+ property :project_id, as: 'projectId'
258
+ property :log_url, as: 'logUrl'
166
259
  property :finish_time, as: 'finishTime'
167
- property :timeout, as: 'timeout'
168
- collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
260
+ property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
169
261
 
170
262
  property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
171
263
 
172
- property :create_time, as: 'createTime'
264
+ property :timeout, as: 'timeout'
265
+ property :status, as: 'status'
173
266
  property :status_detail, as: 'statusDetail'
174
- collection :images, as: 'images'
175
- property :start_time, as: 'startTime'
267
+ property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
268
+
176
269
  property :logs_bucket, as: 'logsBucket'
177
- property :project_id, as: 'projectId'
270
+ collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
271
+
272
+ property :build_trigger_id, as: 'buildTriggerId'
273
+ property :id, as: 'id'
274
+ property :start_time, as: 'startTime'
275
+ hash :substitutions, as: 'substitutions'
178
276
  end
179
277
  end
180
278
 
@@ -184,6 +282,15 @@ module Google
184
282
  end
185
283
  end
186
284
 
285
+ class ListBuildsResponse
286
+ # @private
287
+ class Representation < Google::Apis::Core::JsonRepresentation
288
+ property :next_page_token, as: 'nextPageToken'
289
+ collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
290
+
291
+ end
292
+ end
293
+
187
294
  class ListOperationsResponse
188
295
  # @private
189
296
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -193,22 +300,65 @@ module Google
193
300
  end
194
301
  end
195
302
 
196
- class BuildStep
303
+ class Source
197
304
  # @private
198
305
  class Representation < Google::Apis::Core::JsonRepresentation
199
- collection :args, as: 'args'
200
- property :dir, as: 'dir'
201
- property :name, as: 'name'
202
- collection :env, as: 'env'
306
+ property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
307
+
308
+ property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
309
+
203
310
  end
204
311
  end
205
312
 
206
- class ListBuildsResponse
313
+ class BuildOptions
207
314
  # @private
208
315
  class Representation < Google::Apis::Core::JsonRepresentation
209
- property :next_page_token, as: 'nextPageToken'
210
- collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
316
+ collection :source_provenance_hash, as: 'sourceProvenanceHash'
317
+ property :requested_verify_option, as: 'requestedVerifyOption'
318
+ end
319
+ end
320
+
321
+ class StorageSource
322
+ # @private
323
+ class Representation < Google::Apis::Core::JsonRepresentation
324
+ property :generation, as: 'generation'
325
+ property :bucket, as: 'bucket'
326
+ property :object, as: 'object'
327
+ end
328
+ end
329
+
330
+ class Results
331
+ # @private
332
+ class Representation < Google::Apis::Core::JsonRepresentation
333
+ collection :build_step_images, as: 'buildStepImages'
334
+ collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
335
+
336
+ end
337
+ end
211
338
 
339
+ class BuildOperationMetadata
340
+ # @private
341
+ class Representation < Google::Apis::Core::JsonRepresentation
342
+ property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
343
+
344
+ end
345
+ end
346
+
347
+ class SourceProvenance
348
+ # @private
349
+ class Representation < Google::Apis::Core::JsonRepresentation
350
+ hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
351
+
352
+ property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
353
+
354
+ property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
355
+
356
+ end
357
+ end
358
+
359
+ class CancelOperationRequest
360
+ # @private
361
+ class Representation < Google::Apis::Core::JsonRepresentation
212
362
  end
213
363
  end
214
364
  end
@@ -46,13 +46,12 @@ module Google
46
46
  super('https://cloudbuild.googleapis.com/', '')
47
47
  end
48
48
 
49
- # Starts a build with the specified configuration.
50
- # The long-running Operation returned by this method will include the ID of
51
- # the build, which can be passed to GetBuild to determine its status (e.g.,
52
- # success or failure).
49
+ # Cancels a requested build in progress.
53
50
  # @param [String] project_id
54
51
  # ID of the project.
55
- # @param [Google::Apis::CloudbuildV1::Build] build_object
52
+ # @param [String] id
53
+ # ID of the build.
54
+ # @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
56
55
  # @param [String] quota_user
57
56
  # Available to use for quota purposes for server-side applications. Can be any
58
57
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -62,21 +61,22 @@ module Google
62
61
  # Request-specific options
63
62
  #
64
63
  # @yield [result, err] Result & error if block supplied
65
- # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
64
+ # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
66
65
  # @yieldparam err [StandardError] error object if request failed
67
66
  #
68
- # @return [Google::Apis::CloudbuildV1::Operation]
67
+ # @return [Google::Apis::CloudbuildV1::Build]
69
68
  #
70
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
73
- def create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
74
- command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
75
- command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
76
- command.request_object = build_object
77
- command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
78
- command.response_class = Google::Apis::CloudbuildV1::Operation
72
+ def cancel_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
74
+ command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
75
+ command.request_object = cancel_build_request_object
76
+ command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
77
+ command.response_class = Google::Apis::CloudbuildV1::Build
79
78
  command.params['projectId'] = project_id unless project_id.nil?
79
+ command.params['id'] = id unless id.nil?
80
80
  command.query['quotaUser'] = quota_user unless quota_user.nil?
81
81
  command.query['fields'] = fields unless fields.nil?
82
82
  execute_or_queue_command(command, &block)
@@ -122,10 +122,12 @@ module Google
122
122
  # successfully or unsuccessfully.
123
123
  # @param [String] project_id
124
124
  # ID of the project.
125
- # @param [Fixnum] page_size
126
- # Number of results to return in the list.
125
+ # @param [String] filter
126
+ # The raw filter text to constrain the results.
127
127
  # @param [String] page_token
128
128
  # Token to provide to skip to a particular spot in the list.
129
+ # @param [Fixnum] page_size
130
+ # Number of results to return in the list.
129
131
  # @param [String] quota_user
130
132
  # Available to use for quota purposes for server-side applications. Can be any
131
133
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -143,24 +145,26 @@ module Google
143
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
146
- def list_project_builds(project_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
148
+ def list_project_builds(project_id, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
147
149
  command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
148
150
  command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
149
151
  command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
150
152
  command.params['projectId'] = project_id unless project_id.nil?
151
- command.query['pageSize'] = page_size unless page_size.nil?
153
+ command.query['filter'] = filter unless filter.nil?
152
154
  command.query['pageToken'] = page_token unless page_token.nil?
155
+ command.query['pageSize'] = page_size unless page_size.nil?
153
156
  command.query['quotaUser'] = quota_user unless quota_user.nil?
154
157
  command.query['fields'] = fields unless fields.nil?
155
158
  execute_or_queue_command(command, &block)
156
159
  end
157
160
 
158
- # Cancels a requested build in progress.
161
+ # Starts a build with the specified configuration.
162
+ # The long-running Operation returned by this method will include the ID of
163
+ # the build, which can be passed to GetBuild to determine its status (e.g.,
164
+ # success or failure).
159
165
  # @param [String] project_id
160
166
  # ID of the project.
161
- # @param [String] id
162
- # ID of the build.
163
- # @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
167
+ # @param [Google::Apis::CloudbuildV1::Build] build_object
164
168
  # @param [String] quota_user
165
169
  # Available to use for quota purposes for server-side applications. Can be any
166
170
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -170,32 +174,209 @@ module Google
170
174
  # Request-specific options
171
175
  #
172
176
  # @yield [result, err] Result & error if block supplied
173
- # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
177
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
174
178
  # @yieldparam err [StandardError] error object if request failed
175
179
  #
176
- # @return [Google::Apis::CloudbuildV1::Build]
180
+ # @return [Google::Apis::CloudbuildV1::Operation]
177
181
  #
178
182
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
183
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
184
  # @raise [Google::Apis::AuthorizationError] Authorization is required
181
- def cancel_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
182
- command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
183
- command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
184
- command.request_object = cancel_build_request_object
185
- command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
186
- command.response_class = Google::Apis::CloudbuildV1::Build
185
+ def create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
186
+ command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
187
+ command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
188
+ command.request_object = build_object
189
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
190
+ command.response_class = Google::Apis::CloudbuildV1::Operation
187
191
  command.params['projectId'] = project_id unless project_id.nil?
188
- command.params['id'] = id unless id.nil?
189
192
  command.query['quotaUser'] = quota_user unless quota_user.nil?
190
193
  command.query['fields'] = fields unless fields.nil?
191
194
  execute_or_queue_command(command, &block)
192
195
  end
193
196
 
194
- # Gets the latest state of a long-running operation. Clients can use this
195
- # method to poll the operation result at intervals as recommended by the API
196
- # service.
197
+ # Creates a new BuildTrigger.
198
+ # This API is experimental.
199
+ # @param [String] project_id
200
+ # ID of the project for which to configure automatic builds.
201
+ # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
202
+ # @param [String] quota_user
203
+ # Available to use for quota purposes for server-side applications. Can be any
204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
207
+ # @param [Google::Apis::RequestOptions] options
208
+ # Request-specific options
209
+ #
210
+ # @yield [result, err] Result & error if block supplied
211
+ # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
212
+ # @yieldparam err [StandardError] error object if request failed
213
+ #
214
+ # @return [Google::Apis::CloudbuildV1::BuildTrigger]
215
+ #
216
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
217
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
218
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
219
+ def create_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
220
+ command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
221
+ command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
222
+ command.request_object = build_trigger_object
223
+ command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
224
+ command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
225
+ command.params['projectId'] = project_id unless project_id.nil?
226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
227
+ command.query['fields'] = fields unless fields.nil?
228
+ execute_or_queue_command(command, &block)
229
+ end
230
+
231
+ # Deletes an BuildTrigger by its project ID and trigger ID.
232
+ # This API is experimental.
233
+ # @param [String] project_id
234
+ # ID of the project that owns the trigger.
235
+ # @param [String] trigger_id
236
+ # ID of the BuildTrigger to delete.
237
+ # @param [String] quota_user
238
+ # Available to use for quota purposes for server-side applications. Can be any
239
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
240
+ # @param [String] fields
241
+ # Selector specifying which fields to include in a partial response.
242
+ # @param [Google::Apis::RequestOptions] options
243
+ # Request-specific options
244
+ #
245
+ # @yield [result, err] Result & error if block supplied
246
+ # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
247
+ # @yieldparam err [StandardError] error object if request failed
248
+ #
249
+ # @return [Google::Apis::CloudbuildV1::Empty]
250
+ #
251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
254
+ def delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
255
+ command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
256
+ command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
257
+ command.response_class = Google::Apis::CloudbuildV1::Empty
258
+ command.params['projectId'] = project_id unless project_id.nil?
259
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
260
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
261
+ command.query['fields'] = fields unless fields.nil?
262
+ execute_or_queue_command(command, &block)
263
+ end
264
+
265
+ # Gets information about a BuildTrigger.
266
+ # This API is experimental.
267
+ # @param [String] project_id
268
+ # ID of the project that owns the trigger.
269
+ # @param [String] trigger_id
270
+ # ID of the BuildTrigger to get.
271
+ # @param [String] quota_user
272
+ # Available to use for quota purposes for server-side applications. Can be any
273
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
274
+ # @param [String] fields
275
+ # Selector specifying which fields to include in a partial response.
276
+ # @param [Google::Apis::RequestOptions] options
277
+ # Request-specific options
278
+ #
279
+ # @yield [result, err] Result & error if block supplied
280
+ # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
281
+ # @yieldparam err [StandardError] error object if request failed
282
+ #
283
+ # @return [Google::Apis::CloudbuildV1::BuildTrigger]
284
+ #
285
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
286
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
287
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
288
+ def get_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
289
+ command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
290
+ command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
291
+ command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
292
+ command.params['projectId'] = project_id unless project_id.nil?
293
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
294
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
295
+ command.query['fields'] = fields unless fields.nil?
296
+ execute_or_queue_command(command, &block)
297
+ end
298
+
299
+ # Lists existing BuildTrigger.
300
+ # This API is experimental.
301
+ # @param [String] project_id
302
+ # ID of the project for which to list BuildTriggers.
303
+ # @param [String] quota_user
304
+ # Available to use for quota purposes for server-side applications. Can be any
305
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
306
+ # @param [String] fields
307
+ # Selector specifying which fields to include in a partial response.
308
+ # @param [Google::Apis::RequestOptions] options
309
+ # Request-specific options
310
+ #
311
+ # @yield [result, err] Result & error if block supplied
312
+ # @yieldparam result [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] parsed result object
313
+ # @yieldparam err [StandardError] error object if request failed
314
+ #
315
+ # @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
316
+ #
317
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
318
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
319
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
320
+ def list_project_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
321
+ command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
322
+ command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
323
+ command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
324
+ command.params['projectId'] = project_id unless project_id.nil?
325
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
326
+ command.query['fields'] = fields unless fields.nil?
327
+ execute_or_queue_command(command, &block)
328
+ end
329
+
330
+ # Updates an BuildTrigger by its project ID and trigger ID.
331
+ # This API is experimental.
332
+ # @param [String] project_id
333
+ # ID of the project that owns the trigger.
334
+ # @param [String] trigger_id
335
+ # ID of the BuildTrigger to update.
336
+ # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
337
+ # @param [String] quota_user
338
+ # Available to use for quota purposes for server-side applications. Can be any
339
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
340
+ # @param [String] fields
341
+ # Selector specifying which fields to include in a partial response.
342
+ # @param [Google::Apis::RequestOptions] options
343
+ # Request-specific options
344
+ #
345
+ # @yield [result, err] Result & error if block supplied
346
+ # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
347
+ # @yieldparam err [StandardError] error object if request failed
348
+ #
349
+ # @return [Google::Apis::CloudbuildV1::BuildTrigger]
350
+ #
351
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
352
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
353
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
354
+ def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
355
+ command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
356
+ command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
357
+ command.request_object = build_trigger_object
358
+ command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
359
+ command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
360
+ command.params['projectId'] = project_id unless project_id.nil?
361
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
362
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
363
+ command.query['fields'] = fields unless fields.nil?
364
+ execute_or_queue_command(command, &block)
365
+ end
366
+
367
+ # Starts asynchronous cancellation on a long-running operation. The server
368
+ # makes a best effort to cancel the operation, but success is not
369
+ # guaranteed. If the server doesn't support this method, it returns
370
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
371
+ # Operations.GetOperation or
372
+ # other methods to check whether the cancellation succeeded or whether the
373
+ # operation completed despite cancellation. On successful cancellation,
374
+ # the operation is not deleted; instead, it becomes an operation with
375
+ # an Operation.error value with a google.rpc.Status.code of 1,
376
+ # corresponding to `Code.CANCELLED`.
197
377
  # @param [String] name
198
- # The name of the operation resource.
378
+ # The name of the operation resource to be cancelled.
379
+ # @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
199
380
  # @param [String] quota_user
200
381
  # Available to use for quota purposes for server-side applications. Can be any
201
382
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -205,18 +386,20 @@ module Google
205
386
  # Request-specific options
206
387
  #
207
388
  # @yield [result, err] Result & error if block supplied
208
- # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
389
+ # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
209
390
  # @yieldparam err [StandardError] error object if request failed
210
391
  #
211
- # @return [Google::Apis::CloudbuildV1::Operation]
392
+ # @return [Google::Apis::CloudbuildV1::Empty]
212
393
  #
213
394
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
214
395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
215
396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
216
- def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
217
- command = make_simple_command(:get, 'v1/{+name}', options)
218
- command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
219
- command.response_class = Google::Apis::CloudbuildV1::Operation
397
+ def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
398
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
399
+ command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
400
+ command.request_object = cancel_operation_request_object
401
+ command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
402
+ command.response_class = Google::Apis::CloudbuildV1::Empty
220
403
  command.params['name'] = name unless name.nil?
221
404
  command.query['quotaUser'] = quota_user unless quota_user.nil?
222
405
  command.query['fields'] = fields unless fields.nil?
@@ -229,12 +412,12 @@ module Google
229
412
  # to use different resource name schemes, such as `users/*/operations`.
230
413
  # @param [String] name
231
414
  # The name of the operation collection.
232
- # @param [Fixnum] page_size
233
- # The standard list page size.
234
415
  # @param [String] filter
235
416
  # The standard list filter.
236
417
  # @param [String] page_token
237
418
  # The standard list page token.
419
+ # @param [Fixnum] page_size
420
+ # The standard list page size.
238
421
  # @param [String] quota_user
239
422
  # Available to use for quota purposes for server-side applications. Can be any
240
423
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -252,14 +435,46 @@ module Google
252
435
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
253
436
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
254
437
  # @raise [Google::Apis::AuthorizationError] Authorization is required
255
- def list_operations(name, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
438
+ def list_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
256
439
  command = make_simple_command(:get, 'v1/{+name}', options)
257
440
  command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
258
441
  command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
259
442
  command.params['name'] = name unless name.nil?
260
- command.query['pageSize'] = page_size unless page_size.nil?
261
443
  command.query['filter'] = filter unless filter.nil?
262
444
  command.query['pageToken'] = page_token unless page_token.nil?
445
+ command.query['pageSize'] = page_size unless page_size.nil?
446
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
447
+ command.query['fields'] = fields unless fields.nil?
448
+ execute_or_queue_command(command, &block)
449
+ end
450
+
451
+ # Gets the latest state of a long-running operation. Clients can use this
452
+ # method to poll the operation result at intervals as recommended by the API
453
+ # service.
454
+ # @param [String] name
455
+ # The name of the operation resource.
456
+ # @param [String] quota_user
457
+ # Available to use for quota purposes for server-side applications. Can be any
458
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
459
+ # @param [String] fields
460
+ # Selector specifying which fields to include in a partial response.
461
+ # @param [Google::Apis::RequestOptions] options
462
+ # Request-specific options
463
+ #
464
+ # @yield [result, err] Result & error if block supplied
465
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
466
+ # @yieldparam err [StandardError] error object if request failed
467
+ #
468
+ # @return [Google::Apis::CloudbuildV1::Operation]
469
+ #
470
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
471
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
472
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
473
+ def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
474
+ command = make_simple_command(:get, 'v1/{+name}', options)
475
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
476
+ command.response_class = Google::Apis::CloudbuildV1::Operation
477
+ command.params['name'] = name unless name.nil?
263
478
  command.query['quotaUser'] = quota_user unless quota_user.nil?
264
479
  command.query['fields'] = fields unless fields.nil?
265
480
  execute_or_queue_command(command, &block)