google-api-client 0.32.1 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (491) hide show
  1. checksums.yaml +5 -5
  2. data/.kokoro/continuous/linux.cfg +2 -2
  3. data/.kokoro/continuous/post.cfg +30 -0
  4. data/.kokoro/presubmit/linux.cfg +1 -1
  5. data/.kokoro/release.cfg +94 -0
  6. data/.repo-metadata.json +5 -0
  7. data/.rubocop.yml +5 -0
  8. data/.yardopts +16 -3
  9. data/CHANGELOG.md +327 -0
  10. data/Gemfile +1 -0
  11. data/OVERVIEW.md +36 -0
  12. data/README.md +50 -2
  13. data/Rakefile +71 -2
  14. data/docs/api-keys.md +20 -0
  15. data/docs/auth.md +53 -0
  16. data/docs/client-secrets.md +69 -0
  17. data/docs/getting-started.md +340 -0
  18. data/docs/installation.md +0 -0
  19. data/docs/logging.md +34 -0
  20. data/docs/media-upload.md +25 -0
  21. data/docs/oauth-installed.md +191 -0
  22. data/docs/oauth-server.md +135 -0
  23. data/docs/oauth-web.md +280 -0
  24. data/docs/oauth.md +268 -0
  25. data/docs/pagination.md +29 -0
  26. data/docs/performance.md +25 -0
  27. data/generated/google/apis/accessapproval_v1beta1/classes.rb +35 -2
  28. data/generated/google/apis/accessapproval_v1beta1/representations.rb +13 -0
  29. data/generated/google/apis/accessapproval_v1beta1/service.rb +108 -6
  30. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  31. data/generated/google/apis/accesscontextmanager_v1/classes.rb +1 -1
  32. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  33. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +1 -73
  34. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -32
  35. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  36. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  37. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +24 -2
  38. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +1 -0
  39. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  40. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -3
  41. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  42. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  43. data/generated/google/apis/admin_datatransfer_v1/classes.rb +5 -5
  44. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -2
  45. data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
  46. data/generated/google/apis/admin_directory_v1/classes.rb +4 -3
  47. data/generated/google/apis/admin_directory_v1.rb +4 -1
  48. data/generated/google/apis/admin_reports_v1/classes.rb +87 -44
  49. data/generated/google/apis/admin_reports_v1/service.rb +310 -64
  50. data/generated/google/apis/admin_reports_v1.rb +2 -2
  51. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  52. data/generated/google/apis/androidpublisher_v3/classes.rb +105 -0
  53. data/generated/google/apis/androidpublisher_v3/representations.rb +51 -0
  54. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  55. data/generated/google/apis/appengine_v1/service.rb +10 -6
  56. data/generated/google/apis/appengine_v1.rb +1 -1
  57. data/generated/google/apis/appengine_v1beta/service.rb +10 -6
  58. data/generated/google/apis/appengine_v1beta.rb +1 -1
  59. data/generated/google/apis/appsmarket_v2.rb +1 -1
  60. data/generated/google/apis/bigquery_v2/classes.rb +104 -23
  61. data/generated/google/apis/bigquery_v2/representations.rb +37 -0
  62. data/generated/google/apis/bigquery_v2/service.rb +1 -5
  63. data/generated/google/apis/bigquery_v2.rb +1 -1
  64. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -5
  65. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +3 -2
  66. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  67. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -4
  68. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  69. data/generated/google/apis/bigqueryreservation_v1/classes.rb +0 -21
  70. data/generated/google/apis/bigqueryreservation_v1/representations.rb +0 -13
  71. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  72. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +116 -1
  73. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +35 -0
  74. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +71 -0
  75. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  76. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +61 -77
  77. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +16 -17
  78. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +116 -78
  79. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  80. data/generated/google/apis/bigtableadmin_v1/classes.rb +1 -1
  81. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  82. data/generated/google/apis/bigtableadmin_v2/classes.rb +63 -30
  83. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
  84. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  85. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +392 -0
  86. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +191 -0
  87. data/generated/google/apis/billingbudgets_v1beta1/service.rb +233 -0
  88. data/generated/google/apis/billingbudgets_v1beta1.rb +35 -0
  89. data/generated/google/apis/binaryauthorization_v1/classes.rb +6 -5
  90. data/generated/google/apis/binaryauthorization_v1/service.rb +2 -0
  91. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  92. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -5
  93. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +2 -0
  94. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  95. data/generated/google/apis/books_v1/classes.rb +20 -0
  96. data/generated/google/apis/books_v1/representations.rb +3 -0
  97. data/generated/google/apis/books_v1.rb +1 -1
  98. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  99. data/generated/google/apis/calendar_v3/service.rb +18 -30
  100. data/generated/google/apis/calendar_v3.rb +1 -1
  101. data/generated/google/apis/civicinfo_v2/classes.rb +0 -156
  102. data/generated/google/apis/civicinfo_v2/representations.rb +2 -60
  103. data/generated/google/apis/civicinfo_v2.rb +1 -1
  104. data/generated/google/apis/cloudasset_v1/classes.rb +89 -55
  105. data/generated/google/apis/cloudasset_v1/service.rb +1 -2
  106. data/generated/google/apis/cloudasset_v1.rb +1 -1
  107. data/generated/google/apis/cloudasset_v1beta1/classes.rb +75 -40
  108. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  109. data/generated/google/apis/cloudbilling_v1/classes.rb +82 -36
  110. data/generated/google/apis/cloudbilling_v1/representations.rb +0 -1
  111. data/generated/google/apis/cloudbilling_v1/service.rb +5 -3
  112. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  113. data/generated/google/apis/cloudbuild_v1/classes.rb +8 -2
  114. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  115. data/generated/google/apis/cloudbuild_v1/service.rb +18 -18
  116. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  117. data/generated/google/apis/clouddebugger_v2/service.rb +14 -14
  118. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  119. data/generated/google/apis/cloudfunctions_v1/classes.rb +13 -5
  120. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  121. data/generated/google/apis/cloudfunctions_v1/service.rb +10 -4
  122. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  123. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
  124. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  125. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +10 -4
  126. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  127. data/generated/google/apis/cloudidentity_v1/classes.rb +11 -8
  128. data/generated/google/apis/cloudidentity_v1/service.rb +2 -1
  129. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  130. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +13 -10
  131. data/generated/google/apis/cloudidentity_v1beta1/service.rb +2 -1
  132. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  133. data/generated/google/apis/cloudiot_v1/classes.rb +6 -5
  134. data/generated/google/apis/cloudiot_v1.rb +1 -1
  135. data/generated/google/apis/cloudkms_v1/classes.rb +6 -5
  136. data/generated/google/apis/cloudkms_v1/service.rb +3 -0
  137. data/generated/google/apis/cloudkms_v1.rb +1 -1
  138. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +75 -40
  139. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  140. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +18 -17
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  142. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -5
  143. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +10 -13
  145. data/generated/google/apis/cloudresourcemanager_v2/service.rb +11 -13
  146. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  147. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +10 -13
  148. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +11 -13
  149. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  150. data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
  151. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  152. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
  153. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  154. data/generated/google/apis/cloudsearch_v1/classes.rb +10 -132
  155. data/generated/google/apis/cloudsearch_v1/representations.rb +0 -75
  156. data/generated/google/apis/cloudsearch_v1/service.rb +47 -9
  157. data/generated/google/apis/cloudsearch_v1.rb +8 -8
  158. data/generated/google/apis/cloudshell_v1/classes.rb +24 -1
  159. data/generated/google/apis/cloudshell_v1/representations.rb +3 -0
  160. data/generated/google/apis/cloudshell_v1.rb +1 -1
  161. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +24 -1
  162. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +3 -0
  163. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  164. data/generated/google/apis/cloudtasks_v2/classes.rb +212 -5
  165. data/generated/google/apis/cloudtasks_v2/representations.rb +50 -0
  166. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  167. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +6 -5
  168. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  169. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +6 -5
  170. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  171. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +14 -19
  172. data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
  173. data/generated/google/apis/compute_alpha/classes.rb +594 -164
  174. data/generated/google/apis/compute_alpha/representations.rb +110 -2
  175. data/generated/google/apis/compute_alpha/service.rb +1035 -640
  176. data/generated/google/apis/compute_alpha.rb +1 -1
  177. data/generated/google/apis/compute_beta/classes.rb +1070 -276
  178. data/generated/google/apis/compute_beta/representations.rb +284 -0
  179. data/generated/google/apis/compute_beta/service.rb +1242 -532
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_v1/classes.rb +335 -133
  182. data/generated/google/apis/compute_v1/representations.rb +24 -0
  183. data/generated/google/apis/compute_v1/service.rb +759 -473
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/container_v1/classes.rb +410 -83
  186. data/generated/google/apis/container_v1/representations.rb +134 -0
  187. data/generated/google/apis/container_v1/service.rb +119 -119
  188. data/generated/google/apis/container_v1.rb +1 -1
  189. data/generated/google/apis/container_v1beta1/classes.rb +157 -3
  190. data/generated/google/apis/container_v1beta1/representations.rb +38 -0
  191. data/generated/google/apis/container_v1beta1.rb +1 -1
  192. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +6 -5
  193. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  194. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +6 -5
  195. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  196. data/generated/google/apis/content_v2/classes.rb +35 -223
  197. data/generated/google/apis/content_v2/representations.rb +0 -115
  198. data/generated/google/apis/content_v2/service.rb +0 -160
  199. data/generated/google/apis/content_v2.rb +1 -1
  200. data/generated/google/apis/content_v2_1/classes.rb +69 -21
  201. data/generated/google/apis/content_v2_1/representations.rb +3 -0
  202. data/generated/google/apis/content_v2_1.rb +1 -1
  203. data/generated/google/apis/datacatalog_v1beta1/classes.rb +1646 -0
  204. data/generated/google/apis/datacatalog_v1beta1/representations.rb +700 -0
  205. data/generated/google/apis/datacatalog_v1beta1/service.rb +1982 -0
  206. data/generated/google/apis/{cloudbuild_v1alpha1.rb → datacatalog_v1beta1.rb} +10 -9
  207. data/generated/google/apis/dataflow_v1b3/classes.rb +6 -9
  208. data/generated/google/apis/dataflow_v1b3/representations.rb +1 -1
  209. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  210. data/generated/google/apis/datafusion_v1beta1/classes.rb +156 -46
  211. data/generated/google/apis/datafusion_v1beta1/representations.rb +33 -0
  212. data/generated/google/apis/datafusion_v1beta1/service.rb +10 -1
  213. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  214. data/generated/google/apis/dataproc_v1/classes.rb +119 -11
  215. data/generated/google/apis/dataproc_v1/representations.rb +39 -0
  216. data/generated/google/apis/dataproc_v1/service.rb +14 -7
  217. data/generated/google/apis/dataproc_v1.rb +1 -1
  218. data/generated/google/apis/dataproc_v1beta2/classes.rb +9 -11
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +26 -19
  220. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  221. data/generated/google/apis/datastore_v1/service.rb +85 -1
  222. data/generated/google/apis/datastore_v1.rb +1 -1
  223. data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
  224. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  225. data/generated/google/apis/dfareporting_v3_3/classes.rb +21 -1
  226. data/generated/google/apis/dfareporting_v3_3/service.rb +6 -6
  227. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  228. data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/classes.rb +1215 -797
  229. data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/representations.rb +593 -395
  230. data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/service.rb +966 -1074
  231. data/generated/google/apis/{dfareporting_v3_2.rb → dfareporting_v3_4.rb} +6 -6
  232. data/generated/google/apis/dialogflow_v2/classes.rb +509 -8
  233. data/generated/google/apis/dialogflow_v2/representations.rb +222 -0
  234. data/generated/google/apis/dialogflow_v2.rb +1 -1
  235. data/generated/google/apis/dialogflow_v2beta1/classes.rb +530 -8
  236. data/generated/google/apis/dialogflow_v2beta1/representations.rb +224 -0
  237. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  238. data/generated/google/apis/dlp_v2/classes.rb +109 -33
  239. data/generated/google/apis/dlp_v2/representations.rb +23 -3
  240. data/generated/google/apis/dlp_v2/service.rb +1996 -209
  241. data/generated/google/apis/dlp_v2.rb +1 -1
  242. data/generated/google/apis/dns_v1beta2/classes.rb +47 -0
  243. data/generated/google/apis/dns_v1beta2/representations.rb +17 -0
  244. data/generated/google/apis/dns_v1beta2.rb +1 -1
  245. data/generated/google/apis/docs_v1/classes.rb +175 -0
  246. data/generated/google/apis/docs_v1/representations.rb +77 -0
  247. data/generated/google/apis/docs_v1.rb +1 -1
  248. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  249. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +826 -0
  250. data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +372 -0
  251. data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +371 -0
  252. data/generated/google/apis/{urlshortener_v1.rb → doubleclickbidmanager_v1_1.rb} +11 -11
  253. data/generated/google/apis/drive_v2/classes.rb +2 -1
  254. data/generated/google/apis/drive_v2/service.rb +3 -3
  255. data/generated/google/apis/drive_v2.rb +1 -1
  256. data/generated/google/apis/drive_v3/classes.rb +12 -3
  257. data/generated/google/apis/drive_v3.rb +1 -1
  258. data/generated/google/apis/fcm_v1/classes.rb +15 -0
  259. data/generated/google/apis/fcm_v1/representations.rb +2 -0
  260. data/generated/google/apis/fcm_v1.rb +1 -1
  261. data/generated/google/apis/firebase_v1beta1/classes.rb +18 -4
  262. data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
  263. data/generated/google/apis/firebase_v1beta1/service.rb +6 -6
  264. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  265. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +62 -0
  266. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +31 -0
  267. data/generated/google/apis/firebasehosting_v1beta1/service.rb +47 -0
  268. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  269. data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
  270. data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
  271. data/generated/google/apis/firebaserules_v1.rb +1 -1
  272. data/generated/google/apis/firestore_v1.rb +1 -1
  273. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  274. data/generated/google/apis/fitness_v1/service.rb +1 -1
  275. data/generated/google/apis/fitness_v1.rb +1 -1
  276. data/generated/google/apis/games_management_v1management/classes.rb +6 -26
  277. data/generated/google/apis/games_management_v1management/representations.rb +1 -14
  278. data/generated/google/apis/games_management_v1management/service.rb +0 -158
  279. data/generated/google/apis/games_management_v1management.rb +1 -1
  280. data/generated/google/apis/games_v1/classes.rb +6 -292
  281. data/generated/google/apis/games_v1/representations.rb +1 -98
  282. data/generated/google/apis/games_v1/service.rb +0 -123
  283. data/generated/google/apis/games_v1.rb +1 -1
  284. data/generated/google/apis/genomics_v2alpha1/classes.rb +32 -0
  285. data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
  286. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  287. data/generated/google/apis/healthcare_v1beta1/classes.rb +213 -16
  288. data/generated/google/apis/healthcare_v1beta1/representations.rb +101 -0
  289. data/generated/google/apis/healthcare_v1beta1/service.rb +207 -116
  290. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  291. data/generated/google/apis/homegraph_v1/classes.rb +15 -1
  292. data/generated/google/apis/homegraph_v1/representations.rb +2 -1
  293. data/generated/google/apis/homegraph_v1.rb +1 -1
  294. data/generated/google/apis/iam_v1/classes.rb +15 -7
  295. data/generated/google/apis/iam_v1/representations.rb +1 -0
  296. data/generated/google/apis/iam_v1.rb +1 -1
  297. data/generated/google/apis/iap_v1/classes.rb +187 -2
  298. data/generated/google/apis/iap_v1/representations.rb +102 -0
  299. data/generated/google/apis/iap_v1/service.rb +72 -0
  300. data/generated/google/apis/iap_v1.rb +1 -1
  301. data/generated/google/apis/iap_v1beta1/classes.rb +2 -2
  302. data/generated/google/apis/iap_v1beta1.rb +1 -1
  303. data/generated/google/apis/jobs_v2/classes.rb +167 -0
  304. data/generated/google/apis/jobs_v2/representations.rb +40 -0
  305. data/generated/google/apis/jobs_v2.rb +1 -1
  306. data/generated/google/apis/jobs_v3/classes.rb +179 -0
  307. data/generated/google/apis/jobs_v3/representations.rb +41 -0
  308. data/generated/google/apis/jobs_v3.rb +1 -1
  309. data/generated/google/apis/jobs_v3p1beta1/classes.rb +179 -0
  310. data/generated/google/apis/jobs_v3p1beta1/representations.rb +41 -0
  311. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  312. data/generated/google/apis/licensing_v1/classes.rb +15 -7
  313. data/generated/google/apis/licensing_v1/service.rb +81 -37
  314. data/generated/google/apis/licensing_v1.rb +4 -4
  315. data/generated/google/apis/lifesciences_v2beta/classes.rb +1329 -0
  316. data/generated/google/apis/lifesciences_v2beta/representations.rb +533 -0
  317. data/generated/google/apis/lifesciences_v2beta/service.rb +303 -0
  318. data/generated/google/apis/lifesciences_v2beta.rb +35 -0
  319. data/generated/google/apis/logging_v2/classes.rb +30 -2
  320. data/generated/google/apis/logging_v2/representations.rb +4 -0
  321. data/generated/google/apis/logging_v2/service.rb +10 -5
  322. data/generated/google/apis/logging_v2.rb +1 -1
  323. data/generated/google/apis/ml_v1/classes.rb +308 -155
  324. data/generated/google/apis/ml_v1/representations.rb +59 -0
  325. data/generated/google/apis/ml_v1/service.rb +44 -3
  326. data/generated/google/apis/ml_v1.rb +2 -2
  327. data/generated/google/apis/monitoring_v1/classes.rb +1153 -0
  328. data/generated/google/apis/monitoring_v1/representations.rb +528 -0
  329. data/generated/google/apis/{cloudbuild_v1alpha1 → monitoring_v1}/service.rb +86 -63
  330. data/generated/google/apis/monitoring_v1.rb +48 -0
  331. data/generated/google/apis/monitoring_v3/classes.rb +836 -60
  332. data/generated/google/apis/monitoring_v3/representations.rb +348 -0
  333. data/generated/google/apis/monitoring_v3/service.rb +384 -2
  334. data/generated/google/apis/monitoring_v3.rb +1 -1
  335. data/generated/google/apis/oslogin_v1/classes.rb +1 -1
  336. data/generated/google/apis/oslogin_v1/service.rb +10 -6
  337. data/generated/google/apis/oslogin_v1.rb +1 -1
  338. data/generated/google/apis/oslogin_v1beta/classes.rb +1 -1
  339. data/generated/google/apis/oslogin_v1beta/service.rb +9 -5
  340. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  341. data/generated/google/apis/pagespeedonline_v5/classes.rb +8 -0
  342. data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
  343. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  344. data/generated/google/apis/people_v1/classes.rb +67 -63
  345. data/generated/google/apis/people_v1/service.rb +53 -44
  346. data/generated/google/apis/people_v1.rb +1 -1
  347. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +168 -90
  348. data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -3
  349. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  350. data/generated/google/apis/pubsub_v1/classes.rb +8 -6
  351. data/generated/google/apis/pubsub_v1/service.rb +9 -7
  352. data/generated/google/apis/pubsub_v1.rb +1 -1
  353. data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -5
  354. data/generated/google/apis/pubsub_v1beta2/service.rb +2 -0
  355. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  356. data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
  357. data/generated/google/apis/recommender_v1beta1/service.rb +10 -8
  358. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  359. data/generated/google/apis/redis_v1/classes.rb +11 -11
  360. data/generated/google/apis/redis_v1/service.rb +5 -5
  361. data/generated/google/apis/redis_v1.rb +1 -1
  362. data/generated/google/apis/redis_v1beta1/classes.rb +11 -11
  363. data/generated/google/apis/redis_v1beta1/service.rb +5 -5
  364. data/generated/google/apis/redis_v1beta1.rb +1 -1
  365. data/generated/google/apis/remotebuildexecution_v1/classes.rb +113 -0
  366. data/generated/google/apis/remotebuildexecution_v1/representations.rb +50 -0
  367. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  368. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +113 -0
  369. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +50 -0
  370. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  371. data/generated/google/apis/remotebuildexecution_v2/classes.rb +113 -0
  372. data/generated/google/apis/remotebuildexecution_v2/representations.rb +50 -0
  373. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  374. data/generated/google/apis/reseller_v1/service.rb +1 -1
  375. data/generated/google/apis/reseller_v1.rb +1 -1
  376. data/generated/google/apis/run_v1/classes.rb +8 -176
  377. data/generated/google/apis/run_v1/representations.rb +0 -71
  378. data/generated/google/apis/run_v1/service.rb +209 -1125
  379. data/generated/google/apis/run_v1.rb +1 -1
  380. data/generated/google/apis/run_v1alpha1/classes.rb +328 -9
  381. data/generated/google/apis/run_v1alpha1/representations.rb +126 -0
  382. data/generated/google/apis/run_v1alpha1/service.rb +408 -0
  383. data/generated/google/apis/run_v1alpha1.rb +1 -1
  384. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +75 -40
  385. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  386. data/generated/google/apis/securitycenter_v1/classes.rb +159 -66
  387. data/generated/google/apis/securitycenter_v1/representations.rb +19 -0
  388. data/generated/google/apis/securitycenter_v1/service.rb +14 -12
  389. data/generated/google/apis/securitycenter_v1.rb +1 -1
  390. data/generated/google/apis/securitycenter_v1beta1/classes.rb +95 -57
  391. data/generated/google/apis/securitycenter_v1beta1/service.rb +14 -12
  392. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  393. data/generated/google/apis/servicebroker_v1/classes.rb +75 -40
  394. data/generated/google/apis/servicebroker_v1.rb +1 -1
  395. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +75 -40
  396. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  397. data/generated/google/apis/servicebroker_v1beta1/classes.rb +75 -40
  398. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  399. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +95 -43
  400. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
  401. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  402. data/generated/google/apis/servicecontrol_v1/classes.rb +8 -12
  403. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -1
  404. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  405. data/generated/google/apis/servicemanagement_v1/classes.rb +142 -91
  406. data/generated/google/apis/servicemanagement_v1/representations.rb +24 -0
  407. data/generated/google/apis/servicemanagement_v1/service.rb +32 -26
  408. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  409. data/generated/google/apis/servicenetworking_v1/classes.rb +181 -54
  410. data/generated/google/apis/servicenetworking_v1/representations.rb +71 -0
  411. data/generated/google/apis/servicenetworking_v1/service.rb +77 -3
  412. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  413. data/generated/google/apis/servicenetworking_v1beta/classes.rb +32 -43
  414. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  415. data/generated/google/apis/serviceusage_v1/classes.rb +87 -43
  416. data/generated/google/apis/serviceusage_v1/representations.rb +29 -0
  417. data/generated/google/apis/serviceusage_v1.rb +1 -1
  418. data/generated/google/apis/serviceusage_v1beta1/classes.rb +87 -43
  419. data/generated/google/apis/serviceusage_v1beta1/representations.rb +29 -0
  420. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  421. data/generated/google/apis/sheets_v4/classes.rb +1371 -232
  422. data/generated/google/apis/sheets_v4/representations.rb +180 -0
  423. data/generated/google/apis/sheets_v4.rb +1 -1
  424. data/generated/google/apis/spanner_v1/classes.rb +70 -30
  425. data/generated/google/apis/spanner_v1/service.rb +270 -0
  426. data/generated/google/apis/spanner_v1.rb +1 -1
  427. data/generated/google/apis/speech_v1/classes.rb +6 -0
  428. data/generated/google/apis/speech_v1/representations.rb +1 -0
  429. data/generated/google/apis/speech_v1.rb +1 -1
  430. data/generated/google/apis/speech_v1p1beta1/classes.rb +6 -0
  431. data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
  432. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  433. data/generated/google/apis/{speech_v2beta → speech_v2beta1}/classes.rb +9 -8
  434. data/generated/google/apis/{speech_v2beta → speech_v2beta1}/representations.rb +6 -6
  435. data/generated/google/apis/{speech_v2beta → speech_v2beta1}/service.rb +13 -13
  436. data/generated/google/apis/{speech_v2beta.rb → speech_v2beta1.rb} +6 -6
  437. data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/classes.rb +499 -380
  438. data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/representations.rb +125 -104
  439. data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/service.rb +637 -590
  440. data/generated/google/apis/{sqladmin_v1beta4.rb → sql_v1beta4.rb} +7 -8
  441. data/generated/google/apis/storage_v1.rb +1 -1
  442. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  443. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
  444. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  445. data/generated/google/apis/testing_v1/classes.rb +142 -1
  446. data/generated/google/apis/testing_v1/representations.rb +76 -0
  447. data/generated/google/apis/testing_v1.rb +1 -1
  448. data/generated/google/apis/videointelligence_v1/classes.rb +147 -36
  449. data/generated/google/apis/videointelligence_v1/representations.rb +62 -0
  450. data/generated/google/apis/videointelligence_v1.rb +1 -1
  451. data/generated/google/apis/videointelligence_v1beta2/classes.rb +147 -36
  452. data/generated/google/apis/videointelligence_v1beta2/representations.rb +62 -0
  453. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  454. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +147 -36
  455. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +62 -0
  456. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  457. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +147 -36
  458. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +62 -0
  459. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  460. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +147 -36
  461. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +62 -0
  462. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  463. data/generated/google/apis/vision_v1/classes.rb +66 -0
  464. data/generated/google/apis/vision_v1/representations.rb +32 -0
  465. data/generated/google/apis/vision_v1.rb +1 -1
  466. data/generated/google/apis/vision_v1p1beta1/classes.rb +66 -0
  467. data/generated/google/apis/vision_v1p1beta1/representations.rb +32 -0
  468. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  469. data/generated/google/apis/vision_v1p2beta1/classes.rb +66 -0
  470. data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
  471. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  472. data/generated/google/apis/youtube_partner_v1/service.rb +2 -2
  473. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  474. data/google-api-client.gemspec +6 -3
  475. data/lib/google/apis/core/api_command.rb +3 -0
  476. data/lib/google/apis/core/http_command.rb +10 -8
  477. data/lib/google/apis/core/upload.rb +4 -0
  478. data/lib/google/apis/version.rb +1 -1
  479. data/rakelib/devsite/devsite_builder.rb +126 -0
  480. data/rakelib/devsite/link_checker.rb +64 -0
  481. data/rakelib/devsite/repo_metadata.rb +56 -0
  482. metadata +64 -42
  483. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +0 -1168
  484. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +0 -434
  485. data/generated/google/apis/storage_v1beta1/classes.rb +0 -616
  486. data/generated/google/apis/storage_v1beta1/representations.rb +0 -249
  487. data/generated/google/apis/storage_v1beta1/service.rb +0 -1032
  488. data/generated/google/apis/storage_v1beta1.rb +0 -40
  489. data/generated/google/apis/urlshortener_v1/classes.rb +0 -246
  490. data/generated/google/apis/urlshortener_v1/representations.rb +0 -121
  491. data/generated/google/apis/urlshortener_v1/service.rb +0 -169
@@ -1,1168 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module CloudbuildV1alpha1
24
-
25
- # Files in the workspace to upload to Cloud Storage upon successful
26
- # completion of all build steps.
27
- class ArtifactObjects
28
- include Google::Apis::Core::Hashable
29
-
30
- # Cloud Storage bucket and optional object path, in the form
31
- # "gs://bucket/path/to/somewhere/". (see [Bucket Name
32
- # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
33
- # ).
34
- # Files in the workspace matching any path pattern will be uploaded to
35
- # Cloud Storage with this location as a prefix.
36
- # Corresponds to the JSON property `location`
37
- # @return [String]
38
- attr_accessor :location
39
-
40
- # Path globs used to match files in the build's workspace.
41
- # Corresponds to the JSON property `paths`
42
- # @return [Array<String>]
43
- attr_accessor :paths
44
-
45
- # Start and end times for a build execution phase.
46
- # Corresponds to the JSON property `timing`
47
- # @return [Google::Apis::CloudbuildV1alpha1::TimeSpan]
48
- attr_accessor :timing
49
-
50
- def initialize(**args)
51
- update!(**args)
52
- end
53
-
54
- # Update properties of this object
55
- def update!(**args)
56
- @location = args[:location] if args.key?(:location)
57
- @paths = args[:paths] if args.key?(:paths)
58
- @timing = args[:timing] if args.key?(:timing)
59
- end
60
- end
61
-
62
- # An artifact that was uploaded during a build. This
63
- # is a single record in the artifact manifest JSON file.
64
- class ArtifactResult
65
- include Google::Apis::Core::Hashable
66
-
67
- # The file hash of the artifact.
68
- # Corresponds to the JSON property `fileHash`
69
- # @return [Array<Google::Apis::CloudbuildV1alpha1::FileHashes>]
70
- attr_accessor :file_hash
71
-
72
- # The path of an artifact in a Google Cloud Storage bucket, with the
73
- # generation number. For example,
74
- # `gs://mybucket/path/to/output.jar#generation`.
75
- # Corresponds to the JSON property `location`
76
- # @return [String]
77
- attr_accessor :location
78
-
79
- def initialize(**args)
80
- update!(**args)
81
- end
82
-
83
- # Update properties of this object
84
- def update!(**args)
85
- @file_hash = args[:file_hash] if args.key?(:file_hash)
86
- @location = args[:location] if args.key?(:location)
87
- end
88
- end
89
-
90
- # Artifacts produced by a build that should be uploaded upon
91
- # successful completion of all build steps.
92
- class Artifacts
93
- include Google::Apis::Core::Hashable
94
-
95
- # A list of images to be pushed upon the successful completion of all build
96
- # steps.
97
- # The images will be pushed using the builder service account's credentials.
98
- # The digests of the pushed images will be stored in the Build resource's
99
- # results field.
100
- # If any of the images fail to be pushed, the build is marked FAILURE.
101
- # Corresponds to the JSON property `images`
102
- # @return [Array<String>]
103
- attr_accessor :images
104
-
105
- # Files in the workspace to upload to Cloud Storage upon successful
106
- # completion of all build steps.
107
- # Corresponds to the JSON property `objects`
108
- # @return [Google::Apis::CloudbuildV1alpha1::ArtifactObjects]
109
- attr_accessor :objects
110
-
111
- def initialize(**args)
112
- update!(**args)
113
- end
114
-
115
- # Update properties of this object
116
- def update!(**args)
117
- @images = args[:images] if args.key?(:images)
118
- @objects = args[:objects] if args.key?(:objects)
119
- end
120
- end
121
-
122
- # A build resource in the Cloud Build API.
123
- # At a high level, a `Build` describes where to find source code, how to build
124
- # it (for example, the builder image to run on the source), and where to store
125
- # the built artifacts.
126
- # Fields can include the following variables, which will be expanded when the
127
- # build is created:
128
- # - $PROJECT_ID: the project ID of the build.
129
- # - $BUILD_ID: the autogenerated ID of the build.
130
- # - $REPO_NAME: the source repository name specified by RepoSource.
131
- # - $BRANCH_NAME: the branch name specified by RepoSource.
132
- # - $TAG_NAME: the tag name specified by RepoSource.
133
- # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
134
- # resolved from the specified branch or tag.
135
- # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
136
- class Build
137
- include Google::Apis::Core::Hashable
138
-
139
- # Artifacts produced by a build that should be uploaded upon
140
- # successful completion of all build steps.
141
- # Corresponds to the JSON property `artifacts`
142
- # @return [Google::Apis::CloudbuildV1alpha1::Artifacts]
143
- attr_accessor :artifacts
144
-
145
- # Output only. The ID of the `BuildTrigger` that triggered this build, if it
146
- # was triggered automatically.
147
- # Corresponds to the JSON property `buildTriggerId`
148
- # @return [String]
149
- attr_accessor :build_trigger_id
150
-
151
- # Output only. Time at which the request to create the build was received.
152
- # Corresponds to the JSON property `createTime`
153
- # @return [String]
154
- attr_accessor :create_time
155
-
156
- # Output only. Time at which execution of the build was finished.
157
- # The difference between finish_time and start_time is the duration of the
158
- # build's execution.
159
- # Corresponds to the JSON property `finishTime`
160
- # @return [String]
161
- attr_accessor :finish_time
162
-
163
- # Output only. Unique identifier of the build.
164
- # Corresponds to the JSON property `id`
165
- # @return [String]
166
- attr_accessor :id
167
-
168
- # A list of images to be pushed upon the successful completion of all build
169
- # steps.
170
- # The images are pushed using the builder service account's credentials.
171
- # The digests of the pushed images will be stored in the `Build` resource's
172
- # results field.
173
- # If any of the images fail to be pushed, the build status is marked
174
- # `FAILURE`.
175
- # Corresponds to the JSON property `images`
176
- # @return [Array<String>]
177
- attr_accessor :images
178
-
179
- # Output only. URL to logs for this build in Google Cloud Console.
180
- # Corresponds to the JSON property `logUrl`
181
- # @return [String]
182
- attr_accessor :log_url
183
-
184
- # Google Cloud Storage bucket where logs should be written (see
185
- # [Bucket Name
186
- # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
187
- # ).
188
- # Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
189
- # Corresponds to the JSON property `logsBucket`
190
- # @return [String]
191
- attr_accessor :logs_bucket
192
-
193
- # Optional arguments to enable specific features of builds.
194
- # Corresponds to the JSON property `options`
195
- # @return [Google::Apis::CloudbuildV1alpha1::BuildOptions]
196
- attr_accessor :options
197
-
198
- # Output only. ID of the project.
199
- # Corresponds to the JSON property `projectId`
200
- # @return [String]
201
- attr_accessor :project_id
202
-
203
- # Artifacts created by the build pipeline.
204
- # Corresponds to the JSON property `results`
205
- # @return [Google::Apis::CloudbuildV1alpha1::Results]
206
- attr_accessor :results
207
-
208
- # Secrets to decrypt using Cloud Key Management Service.
209
- # Corresponds to the JSON property `secrets`
210
- # @return [Array<Google::Apis::CloudbuildV1alpha1::Secret>]
211
- attr_accessor :secrets
212
-
213
- # Location of the source in a supported storage service.
214
- # Corresponds to the JSON property `source`
215
- # @return [Google::Apis::CloudbuildV1alpha1::Source]
216
- attr_accessor :source
217
-
218
- # Provenance of the source. Ways to find the original source, or verify that
219
- # some source was used for this build.
220
- # Corresponds to the JSON property `sourceProvenance`
221
- # @return [Google::Apis::CloudbuildV1alpha1::SourceProvenance]
222
- attr_accessor :source_provenance
223
-
224
- # Output only. Time at which execution of the build was started.
225
- # Corresponds to the JSON property `startTime`
226
- # @return [String]
227
- attr_accessor :start_time
228
-
229
- # Output only. Status of the build.
230
- # Corresponds to the JSON property `status`
231
- # @return [String]
232
- attr_accessor :status
233
-
234
- # Output only. Customer-readable message about the current status.
235
- # Corresponds to the JSON property `statusDetail`
236
- # @return [String]
237
- attr_accessor :status_detail
238
-
239
- # Required. The operations to be performed on the workspace.
240
- # Corresponds to the JSON property `steps`
241
- # @return [Array<Google::Apis::CloudbuildV1alpha1::BuildStep>]
242
- attr_accessor :steps
243
-
244
- # Substitutions data for `Build` resource.
245
- # Corresponds to the JSON property `substitutions`
246
- # @return [Hash<String,String>]
247
- attr_accessor :substitutions
248
-
249
- # Tags for annotation of a `Build`. These are not docker tags.
250
- # Corresponds to the JSON property `tags`
251
- # @return [Array<String>]
252
- attr_accessor :tags
253
-
254
- # Amount of time that this build should be allowed to run, to second
255
- # granularity. If this amount of time elapses, work on the build will cease
256
- # and the build status will be `TIMEOUT`.
257
- # Default time is ten minutes.
258
- # Corresponds to the JSON property `timeout`
259
- # @return [String]
260
- attr_accessor :timeout
261
-
262
- # Output only. Stores timing information for phases of the build. Valid keys
263
- # are:
264
- # * BUILD: time to execute all build steps
265
- # * PUSH: time to push all specified images.
266
- # * FETCHSOURCE: time to fetch source.
267
- # If the build does not specify source or images,
268
- # these keys will not be included.
269
- # Corresponds to the JSON property `timing`
270
- # @return [Hash<String,Google::Apis::CloudbuildV1alpha1::TimeSpan>]
271
- attr_accessor :timing
272
-
273
- def initialize(**args)
274
- update!(**args)
275
- end
276
-
277
- # Update properties of this object
278
- def update!(**args)
279
- @artifacts = args[:artifacts] if args.key?(:artifacts)
280
- @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
281
- @create_time = args[:create_time] if args.key?(:create_time)
282
- @finish_time = args[:finish_time] if args.key?(:finish_time)
283
- @id = args[:id] if args.key?(:id)
284
- @images = args[:images] if args.key?(:images)
285
- @log_url = args[:log_url] if args.key?(:log_url)
286
- @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
287
- @options = args[:options] if args.key?(:options)
288
- @project_id = args[:project_id] if args.key?(:project_id)
289
- @results = args[:results] if args.key?(:results)
290
- @secrets = args[:secrets] if args.key?(:secrets)
291
- @source = args[:source] if args.key?(:source)
292
- @source_provenance = args[:source_provenance] if args.key?(:source_provenance)
293
- @start_time = args[:start_time] if args.key?(:start_time)
294
- @status = args[:status] if args.key?(:status)
295
- @status_detail = args[:status_detail] if args.key?(:status_detail)
296
- @steps = args[:steps] if args.key?(:steps)
297
- @substitutions = args[:substitutions] if args.key?(:substitutions)
298
- @tags = args[:tags] if args.key?(:tags)
299
- @timeout = args[:timeout] if args.key?(:timeout)
300
- @timing = args[:timing] if args.key?(:timing)
301
- end
302
- end
303
-
304
- # Metadata for build operations.
305
- class BuildOperationMetadata
306
- include Google::Apis::Core::Hashable
307
-
308
- # A build resource in the Cloud Build API.
309
- # At a high level, a `Build` describes where to find source code, how to build
310
- # it (for example, the builder image to run on the source), and where to store
311
- # the built artifacts.
312
- # Fields can include the following variables, which will be expanded when the
313
- # build is created:
314
- # - $PROJECT_ID: the project ID of the build.
315
- # - $BUILD_ID: the autogenerated ID of the build.
316
- # - $REPO_NAME: the source repository name specified by RepoSource.
317
- # - $BRANCH_NAME: the branch name specified by RepoSource.
318
- # - $TAG_NAME: the tag name specified by RepoSource.
319
- # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
320
- # resolved from the specified branch or tag.
321
- # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
322
- # Corresponds to the JSON property `build`
323
- # @return [Google::Apis::CloudbuildV1alpha1::Build]
324
- attr_accessor :build
325
-
326
- def initialize(**args)
327
- update!(**args)
328
- end
329
-
330
- # Update properties of this object
331
- def update!(**args)
332
- @build = args[:build] if args.key?(:build)
333
- end
334
- end
335
-
336
- # Optional arguments to enable specific features of builds.
337
- class BuildOptions
338
- include Google::Apis::Core::Hashable
339
-
340
- # Requested disk size for the VM that runs the build. Note that this is *NOT*
341
- # "disk free"; some of the space will be used by the operating system and
342
- # build utilities. Also note that this is the minimum disk size that will be
343
- # allocated for the build -- the build may run with a larger disk than
344
- # requested. At present, the maximum disk size is 1000GB; builds that request
345
- # more than the maximum are rejected with an error.
346
- # Corresponds to the JSON property `diskSizeGb`
347
- # @return [Fixnum]
348
- attr_accessor :disk_size_gb
349
-
350
- # A list of global environment variable definitions that will exist for all
351
- # build steps in this build. If a variable is defined in both globally and in
352
- # a build step, the variable will use the build step value.
353
- # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
354
- # being given the value "VALUE".
355
- # Corresponds to the JSON property `env`
356
- # @return [Array<String>]
357
- attr_accessor :env
358
-
359
- # Option to define build log streaming behavior to Google Cloud
360
- # Storage.
361
- # Corresponds to the JSON property `logStreamingOption`
362
- # @return [String]
363
- attr_accessor :log_streaming_option
364
-
365
- # Option to specify the logging mode, which determines where the logs are
366
- # stored.
367
- # Corresponds to the JSON property `logging`
368
- # @return [String]
369
- attr_accessor :logging
370
-
371
- # Compute Engine machine type on which to run the build.
372
- # Corresponds to the JSON property `machineType`
373
- # @return [String]
374
- attr_accessor :machine_type
375
-
376
- # Requested verifiability options.
377
- # Corresponds to the JSON property `requestedVerifyOption`
378
- # @return [String]
379
- attr_accessor :requested_verify_option
380
-
381
- # A list of global environment variables, which are encrypted using a Cloud
382
- # Key Management Service crypto key. These values must be specified in the
383
- # build's `Secret`. These variables will be available to all build steps
384
- # in this build.
385
- # Corresponds to the JSON property `secretEnv`
386
- # @return [Array<String>]
387
- attr_accessor :secret_env
388
-
389
- # Requested hash for SourceProvenance.
390
- # Corresponds to the JSON property `sourceProvenanceHash`
391
- # @return [Array<String>]
392
- attr_accessor :source_provenance_hash
393
-
394
- # Option to specify behavior when there is an error in the substitution
395
- # checks.
396
- # Corresponds to the JSON property `substitutionOption`
397
- # @return [String]
398
- attr_accessor :substitution_option
399
-
400
- # Global list of volumes to mount for ALL build steps
401
- # Each volume is created as an empty volume prior to starting the build
402
- # process. Upon completion of the build, volumes and their contents are
403
- # discarded. Global volume names and paths cannot conflict with the volumes
404
- # defined a build step.
405
- # Using a global volume in a build with only one step is not valid as
406
- # it is indicative of a build request with an incorrect configuration.
407
- # Corresponds to the JSON property `volumes`
408
- # @return [Array<Google::Apis::CloudbuildV1alpha1::Volume>]
409
- attr_accessor :volumes
410
-
411
- # Option to specify a `WorkerPool` for the build. User specifies the pool
412
- # with the format "[WORKERPOOL_PROJECT_ID]/[WORKERPOOL_NAME]".
413
- # This is an experimental field.
414
- # Corresponds to the JSON property `workerPool`
415
- # @return [String]
416
- attr_accessor :worker_pool
417
-
418
- def initialize(**args)
419
- update!(**args)
420
- end
421
-
422
- # Update properties of this object
423
- def update!(**args)
424
- @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
425
- @env = args[:env] if args.key?(:env)
426
- @log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
427
- @logging = args[:logging] if args.key?(:logging)
428
- @machine_type = args[:machine_type] if args.key?(:machine_type)
429
- @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
430
- @secret_env = args[:secret_env] if args.key?(:secret_env)
431
- @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
432
- @substitution_option = args[:substitution_option] if args.key?(:substitution_option)
433
- @volumes = args[:volumes] if args.key?(:volumes)
434
- @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
435
- end
436
- end
437
-
438
- # A step in the build pipeline.
439
- class BuildStep
440
- include Google::Apis::Core::Hashable
441
-
442
- # A list of arguments that will be presented to the step when it is started.
443
- # If the image used to run the step's container has an entrypoint, the `args`
444
- # are used as arguments to that entrypoint. If the image does not define
445
- # an entrypoint, the first element in args is used as the entrypoint,
446
- # and the remainder will be used as arguments.
447
- # Corresponds to the JSON property `args`
448
- # @return [Array<String>]
449
- attr_accessor :args
450
-
451
- # Working directory to use when running this step's container.
452
- # If this value is a relative path, it is relative to the build's working
453
- # directory. If this value is absolute, it may be outside the build's working
454
- # directory, in which case the contents of the path may not be persisted
455
- # across build step executions, unless a `volume` for that path is specified.
456
- # If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
457
- # which specifies an absolute path, the `RepoSource` `dir` is ignored for
458
- # the step's execution.
459
- # Corresponds to the JSON property `dir`
460
- # @return [String]
461
- attr_accessor :dir
462
-
463
- # Entrypoint to be used instead of the build step image's default entrypoint.
464
- # If unset, the image's default entrypoint is used.
465
- # Corresponds to the JSON property `entrypoint`
466
- # @return [String]
467
- attr_accessor :entrypoint
468
-
469
- # A list of environment variable definitions to be used when running a step.
470
- # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
471
- # being given the value "VALUE".
472
- # Corresponds to the JSON property `env`
473
- # @return [Array<String>]
474
- attr_accessor :env
475
-
476
- # Unique identifier for this build step, used in `wait_for` to
477
- # reference this build step as a dependency.
478
- # Corresponds to the JSON property `id`
479
- # @return [String]
480
- attr_accessor :id
481
-
482
- # Required. The name of the container image that will run this particular
483
- # build step.
484
- # If the image is available in the host's Docker daemon's cache, it
485
- # will be run directly. If not, the host will attempt to pull the image
486
- # first, using the builder service account's credentials if necessary.
487
- # The Docker daemon's cache will already have the latest versions of all of
488
- # the officially supported build steps
489
- # ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/
490
- # GoogleCloudPlatform/cloud-builders)).
491
- # The Docker daemon will also have cached many of the layers for some popular
492
- # images, like "ubuntu", "debian", but they will be refreshed at the time you
493
- # attempt to use them.
494
- # If you built an image in a previous build step, it will be stored in the
495
- # host's Docker daemon's cache and is available to use as the name for a
496
- # later build step.
497
- # Corresponds to the JSON property `name`
498
- # @return [String]
499
- attr_accessor :name
500
-
501
- # Start and end times for a build execution phase.
502
- # Corresponds to the JSON property `pullTiming`
503
- # @return [Google::Apis::CloudbuildV1alpha1::TimeSpan]
504
- attr_accessor :pull_timing
505
-
506
- # A list of environment variables which are encrypted using a Cloud Key
507
- # Management Service crypto key. These values must be specified in the
508
- # build's `Secret`.
509
- # Corresponds to the JSON property `secretEnv`
510
- # @return [Array<String>]
511
- attr_accessor :secret_env
512
-
513
- # Output only. Status of the build step. At this time, build step status is
514
- # only updated on build completion; step status is not updated in real-time
515
- # as the build progresses.
516
- # Corresponds to the JSON property `status`
517
- # @return [String]
518
- attr_accessor :status
519
-
520
- # Time limit for executing this build step. If not defined, the step has no
521
- # time limit and will be allowed to continue to run until either it completes
522
- # or the build itself times out.
523
- # Corresponds to the JSON property `timeout`
524
- # @return [String]
525
- attr_accessor :timeout
526
-
527
- # Start and end times for a build execution phase.
528
- # Corresponds to the JSON property `timing`
529
- # @return [Google::Apis::CloudbuildV1alpha1::TimeSpan]
530
- attr_accessor :timing
531
-
532
- # List of volumes to mount into the build step.
533
- # Each volume is created as an empty volume prior to execution of the
534
- # build step. Upon completion of the build, volumes and their contents are
535
- # discarded.
536
- # Using a named volume in only one step is not valid as it is indicative
537
- # of a build request with an incorrect configuration.
538
- # Corresponds to the JSON property `volumes`
539
- # @return [Array<Google::Apis::CloudbuildV1alpha1::Volume>]
540
- attr_accessor :volumes
541
-
542
- # The ID(s) of the step(s) that this build step depends on.
543
- # This build step will not start until all the build steps in `wait_for`
544
- # have completed successfully. If `wait_for` is empty, this build step will
545
- # start when all previous build steps in the `Build.Steps` list have
546
- # completed successfully.
547
- # Corresponds to the JSON property `waitFor`
548
- # @return [Array<String>]
549
- attr_accessor :wait_for
550
-
551
- def initialize(**args)
552
- update!(**args)
553
- end
554
-
555
- # Update properties of this object
556
- def update!(**args)
557
- @args = args[:args] if args.key?(:args)
558
- @dir = args[:dir] if args.key?(:dir)
559
- @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
560
- @env = args[:env] if args.key?(:env)
561
- @id = args[:id] if args.key?(:id)
562
- @name = args[:name] if args.key?(:name)
563
- @pull_timing = args[:pull_timing] if args.key?(:pull_timing)
564
- @secret_env = args[:secret_env] if args.key?(:secret_env)
565
- @status = args[:status] if args.key?(:status)
566
- @timeout = args[:timeout] if args.key?(:timeout)
567
- @timing = args[:timing] if args.key?(:timing)
568
- @volumes = args[:volumes] if args.key?(:volumes)
569
- @wait_for = args[:wait_for] if args.key?(:wait_for)
570
- end
571
- end
572
-
573
- # An image built by the pipeline.
574
- class BuiltImage
575
- include Google::Apis::Core::Hashable
576
-
577
- # Docker Registry 2.0 digest.
578
- # Corresponds to the JSON property `digest`
579
- # @return [String]
580
- attr_accessor :digest
581
-
582
- # Name used to push the container image to Google Container Registry, as
583
- # presented to `docker push`.
584
- # Corresponds to the JSON property `name`
585
- # @return [String]
586
- attr_accessor :name
587
-
588
- # Start and end times for a build execution phase.
589
- # Corresponds to the JSON property `pushTiming`
590
- # @return [Google::Apis::CloudbuildV1alpha1::TimeSpan]
591
- attr_accessor :push_timing
592
-
593
- def initialize(**args)
594
- update!(**args)
595
- end
596
-
597
- # Update properties of this object
598
- def update!(**args)
599
- @digest = args[:digest] if args.key?(:digest)
600
- @name = args[:name] if args.key?(:name)
601
- @push_timing = args[:push_timing] if args.key?(:push_timing)
602
- end
603
- end
604
-
605
- # A generic empty message that you can re-use to avoid defining duplicated
606
- # empty messages in your APIs. A typical example is to use it as the request
607
- # or the response type of an API method. For instance:
608
- # service Foo `
609
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
610
- # `
611
- # The JSON representation for `Empty` is empty JSON object ````.
612
- class Empty
613
- include Google::Apis::Core::Hashable
614
-
615
- def initialize(**args)
616
- update!(**args)
617
- end
618
-
619
- # Update properties of this object
620
- def update!(**args)
621
- end
622
- end
623
-
624
- # Container message for hashes of byte content of files, used in
625
- # SourceProvenance messages to verify integrity of source input to the build.
626
- class FileHashes
627
- include Google::Apis::Core::Hashable
628
-
629
- # Collection of file hashes.
630
- # Corresponds to the JSON property `fileHash`
631
- # @return [Array<Google::Apis::CloudbuildV1alpha1::HashProp>]
632
- attr_accessor :file_hash
633
-
634
- def initialize(**args)
635
- update!(**args)
636
- end
637
-
638
- # Update properties of this object
639
- def update!(**args)
640
- @file_hash = args[:file_hash] if args.key?(:file_hash)
641
- end
642
- end
643
-
644
- # Container message for hash values.
645
- class HashProp
646
- include Google::Apis::Core::Hashable
647
-
648
- # The type of hash that was performed.
649
- # Corresponds to the JSON property `type`
650
- # @return [String]
651
- attr_accessor :type
652
-
653
- # The hash value.
654
- # Corresponds to the JSON property `value`
655
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
656
- # @return [String]
657
- attr_accessor :value
658
-
659
- def initialize(**args)
660
- update!(**args)
661
- end
662
-
663
- # Update properties of this object
664
- def update!(**args)
665
- @type = args[:type] if args.key?(:type)
666
- @value = args[:value] if args.key?(:value)
667
- end
668
- end
669
-
670
- # Response containing existing `WorkerPools`.
671
- class ListWorkerPoolsResponse
672
- include Google::Apis::Core::Hashable
673
-
674
- # `WorkerPools` for the project.
675
- # Corresponds to the JSON property `workerPools`
676
- # @return [Array<Google::Apis::CloudbuildV1alpha1::WorkerPool>]
677
- attr_accessor :worker_pools
678
-
679
- def initialize(**args)
680
- update!(**args)
681
- end
682
-
683
- # Update properties of this object
684
- def update!(**args)
685
- @worker_pools = args[:worker_pools] if args.key?(:worker_pools)
686
- end
687
- end
688
-
689
- # Network describes the GCP network used to create workers in.
690
- class Network
691
- include Google::Apis::Core::Hashable
692
-
693
- # Network on which the workers are created.
694
- # "default" network is used if empty.
695
- # Corresponds to the JSON property `network`
696
- # @return [String]
697
- attr_accessor :network
698
-
699
- # Project id containing the defined network and subnetwork. For a peered VPC,
700
- # this will be the same as the project_id in which the workers are created.
701
- # For a shared VPC, this will be the project sharing the network with the
702
- # project_id project in which workers will be created. For custom workers
703
- # with no VPC, this will be the same as project_id.
704
- # Corresponds to the JSON property `projectId`
705
- # @return [String]
706
- attr_accessor :project_id
707
-
708
- # Subnetwork on which the workers are created.
709
- # "default" subnetwork is used if empty.
710
- # Corresponds to the JSON property `subnetwork`
711
- # @return [String]
712
- attr_accessor :subnetwork
713
-
714
- def initialize(**args)
715
- update!(**args)
716
- end
717
-
718
- # Update properties of this object
719
- def update!(**args)
720
- @network = args[:network] if args.key?(:network)
721
- @project_id = args[:project_id] if args.key?(:project_id)
722
- @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
723
- end
724
- end
725
-
726
- # Location of the source in a Google Cloud Source Repository.
727
- class RepoSource
728
- include Google::Apis::Core::Hashable
729
-
730
- # Regex matching branches to build.
731
- # The syntax of the regular expressions accepted is the syntax accepted by
732
- # RE2 and described at https://github.com/google/re2/wiki/Syntax
733
- # Corresponds to the JSON property `branchName`
734
- # @return [String]
735
- attr_accessor :branch_name
736
-
737
- # Explicit commit SHA to build.
738
- # Corresponds to the JSON property `commitSha`
739
- # @return [String]
740
- attr_accessor :commit_sha
741
-
742
- # Directory, relative to the source root, in which to run the build.
743
- # This must be a relative path. If a step's `dir` is specified and is an
744
- # absolute path, this value is ignored for that step's execution.
745
- # Corresponds to the JSON property `dir`
746
- # @return [String]
747
- attr_accessor :dir
748
-
749
- # ID of the project that owns the Cloud Source Repository. If omitted, the
750
- # project ID requesting the build is assumed.
751
- # Corresponds to the JSON property `projectId`
752
- # @return [String]
753
- attr_accessor :project_id
754
-
755
- # Name of the Cloud Source Repository. If omitted, the name "default" is
756
- # assumed.
757
- # Corresponds to the JSON property `repoName`
758
- # @return [String]
759
- attr_accessor :repo_name
760
-
761
- # Regex matching tags to build.
762
- # The syntax of the regular expressions accepted is the syntax accepted by
763
- # RE2 and described at https://github.com/google/re2/wiki/Syntax
764
- # Corresponds to the JSON property `tagName`
765
- # @return [String]
766
- attr_accessor :tag_name
767
-
768
- def initialize(**args)
769
- update!(**args)
770
- end
771
-
772
- # Update properties of this object
773
- def update!(**args)
774
- @branch_name = args[:branch_name] if args.key?(:branch_name)
775
- @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
776
- @dir = args[:dir] if args.key?(:dir)
777
- @project_id = args[:project_id] if args.key?(:project_id)
778
- @repo_name = args[:repo_name] if args.key?(:repo_name)
779
- @tag_name = args[:tag_name] if args.key?(:tag_name)
780
- end
781
- end
782
-
783
- # Artifacts created by the build pipeline.
784
- class Results
785
- include Google::Apis::Core::Hashable
786
-
787
- # Path to the artifact manifest. Only populated when artifacts are uploaded.
788
- # Corresponds to the JSON property `artifactManifest`
789
- # @return [String]
790
- attr_accessor :artifact_manifest
791
-
792
- # Start and end times for a build execution phase.
793
- # Corresponds to the JSON property `artifactTiming`
794
- # @return [Google::Apis::CloudbuildV1alpha1::TimeSpan]
795
- attr_accessor :artifact_timing
796
-
797
- # List of build step digests, in the order corresponding to build step
798
- # indices.
799
- # Corresponds to the JSON property `buildStepImages`
800
- # @return [Array<String>]
801
- attr_accessor :build_step_images
802
-
803
- # List of build step outputs, produced by builder images, in the order
804
- # corresponding to build step indices.
805
- # [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
806
- # can produce this output by writing to `$BUILDER_OUTPUT/output`.
807
- # Only the first 4KB of data is stored.
808
- # Corresponds to the JSON property `buildStepOutputs`
809
- # @return [Array<String>]
810
- attr_accessor :build_step_outputs
811
-
812
- # Container images that were built as a part of the build.
813
- # Corresponds to the JSON property `images`
814
- # @return [Array<Google::Apis::CloudbuildV1alpha1::BuiltImage>]
815
- attr_accessor :images
816
-
817
- # Number of artifacts uploaded. Only populated when artifacts are uploaded.
818
- # Corresponds to the JSON property `numArtifacts`
819
- # @return [Fixnum]
820
- attr_accessor :num_artifacts
821
-
822
- def initialize(**args)
823
- update!(**args)
824
- end
825
-
826
- # Update properties of this object
827
- def update!(**args)
828
- @artifact_manifest = args[:artifact_manifest] if args.key?(:artifact_manifest)
829
- @artifact_timing = args[:artifact_timing] if args.key?(:artifact_timing)
830
- @build_step_images = args[:build_step_images] if args.key?(:build_step_images)
831
- @build_step_outputs = args[:build_step_outputs] if args.key?(:build_step_outputs)
832
- @images = args[:images] if args.key?(:images)
833
- @num_artifacts = args[:num_artifacts] if args.key?(:num_artifacts)
834
- end
835
- end
836
-
837
- # Pairs a set of secret environment variables containing encrypted
838
- # values with the Cloud KMS key to use to decrypt the value.
839
- class Secret
840
- include Google::Apis::Core::Hashable
841
-
842
- # Cloud KMS key name to use to decrypt these envs.
843
- # Corresponds to the JSON property `kmsKeyName`
844
- # @return [String]
845
- attr_accessor :kms_key_name
846
-
847
- # Map of environment variable name to its encrypted value.
848
- # Secret environment variables must be unique across all of a build's
849
- # secrets, and must be used by at least one build step. Values can be at most
850
- # 64 KB in size. There can be at most 100 secret values across all of a
851
- # build's secrets.
852
- # Corresponds to the JSON property `secretEnv`
853
- # @return [Hash<String,String>]
854
- attr_accessor :secret_env
855
-
856
- def initialize(**args)
857
- update!(**args)
858
- end
859
-
860
- # Update properties of this object
861
- def update!(**args)
862
- @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
863
- @secret_env = args[:secret_env] if args.key?(:secret_env)
864
- end
865
- end
866
-
867
- # Location of the source in a supported storage service.
868
- class Source
869
- include Google::Apis::Core::Hashable
870
-
871
- # Location of the source in a Google Cloud Source Repository.
872
- # Corresponds to the JSON property `repoSource`
873
- # @return [Google::Apis::CloudbuildV1alpha1::RepoSource]
874
- attr_accessor :repo_source
875
-
876
- # Location of the source in an archive file in Google Cloud Storage.
877
- # Corresponds to the JSON property `storageSource`
878
- # @return [Google::Apis::CloudbuildV1alpha1::StorageSource]
879
- attr_accessor :storage_source
880
-
881
- def initialize(**args)
882
- update!(**args)
883
- end
884
-
885
- # Update properties of this object
886
- def update!(**args)
887
- @repo_source = args[:repo_source] if args.key?(:repo_source)
888
- @storage_source = args[:storage_source] if args.key?(:storage_source)
889
- end
890
- end
891
-
892
- # Provenance of the source. Ways to find the original source, or verify that
893
- # some source was used for this build.
894
- class SourceProvenance
895
- include Google::Apis::Core::Hashable
896
-
897
- # Output only. Hash(es) of the build source, which can be used to verify that
898
- # the original source integrity was maintained in the build. Note that
899
- # `FileHashes` will only be populated if `BuildOptions` has requested a
900
- # `SourceProvenanceHash`.
901
- # The keys to this map are file paths used as build source and the values
902
- # contain the hash values for those files.
903
- # If the build source came in a single package such as a gzipped tarfile
904
- # (`.tar.gz`), the `FileHash` will be for the single path to that file.
905
- # Corresponds to the JSON property `fileHashes`
906
- # @return [Hash<String,Google::Apis::CloudbuildV1alpha1::FileHashes>]
907
- attr_accessor :file_hashes
908
-
909
- # Location of the source in a Google Cloud Source Repository.
910
- # Corresponds to the JSON property `resolvedRepoSource`
911
- # @return [Google::Apis::CloudbuildV1alpha1::RepoSource]
912
- attr_accessor :resolved_repo_source
913
-
914
- # Location of the source in an archive file in Google Cloud Storage.
915
- # Corresponds to the JSON property `resolvedStorageSource`
916
- # @return [Google::Apis::CloudbuildV1alpha1::StorageSource]
917
- attr_accessor :resolved_storage_source
918
-
919
- def initialize(**args)
920
- update!(**args)
921
- end
922
-
923
- # Update properties of this object
924
- def update!(**args)
925
- @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
926
- @resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
927
- @resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
928
- end
929
- end
930
-
931
- # Location of the source in an archive file in Google Cloud Storage.
932
- class StorageSource
933
- include Google::Apis::Core::Hashable
934
-
935
- # Google Cloud Storage bucket containing the source (see
936
- # [Bucket Name
937
- # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
938
- # ).
939
- # Corresponds to the JSON property `bucket`
940
- # @return [String]
941
- attr_accessor :bucket
942
-
943
- # Google Cloud Storage generation for the object. If the generation is
944
- # omitted, the latest generation will be used.
945
- # Corresponds to the JSON property `generation`
946
- # @return [Fixnum]
947
- attr_accessor :generation
948
-
949
- # Google Cloud Storage object containing the source.
950
- # This object must be a gzipped archive file (`.tar.gz`) containing source to
951
- # build.
952
- # Corresponds to the JSON property `object`
953
- # @return [String]
954
- attr_accessor :object
955
-
956
- def initialize(**args)
957
- update!(**args)
958
- end
959
-
960
- # Update properties of this object
961
- def update!(**args)
962
- @bucket = args[:bucket] if args.key?(:bucket)
963
- @generation = args[:generation] if args.key?(:generation)
964
- @object = args[:object] if args.key?(:object)
965
- end
966
- end
967
-
968
- # Start and end times for a build execution phase.
969
- class TimeSpan
970
- include Google::Apis::Core::Hashable
971
-
972
- # End of time span.
973
- # Corresponds to the JSON property `endTime`
974
- # @return [String]
975
- attr_accessor :end_time
976
-
977
- # Start of time span.
978
- # Corresponds to the JSON property `startTime`
979
- # @return [String]
980
- attr_accessor :start_time
981
-
982
- def initialize(**args)
983
- update!(**args)
984
- end
985
-
986
- # Update properties of this object
987
- def update!(**args)
988
- @end_time = args[:end_time] if args.key?(:end_time)
989
- @start_time = args[:start_time] if args.key?(:start_time)
990
- end
991
- end
992
-
993
- # Volume describes a Docker container volume which is mounted into build steps
994
- # in order to persist files across build step execution.
995
- class Volume
996
- include Google::Apis::Core::Hashable
997
-
998
- # Name of the volume to mount.
999
- # Volume names must be unique per build step and must be valid names for
1000
- # Docker volumes. Each named volume must be used by at least two build steps.
1001
- # Corresponds to the JSON property `name`
1002
- # @return [String]
1003
- attr_accessor :name
1004
-
1005
- # Path at which to mount the volume.
1006
- # Paths must be absolute and cannot conflict with other volume paths on the
1007
- # same build step or with certain reserved volume paths.
1008
- # Corresponds to the JSON property `path`
1009
- # @return [String]
1010
- attr_accessor :path
1011
-
1012
- def initialize(**args)
1013
- update!(**args)
1014
- end
1015
-
1016
- # Update properties of this object
1017
- def update!(**args)
1018
- @name = args[:name] if args.key?(:name)
1019
- @path = args[:path] if args.key?(:path)
1020
- end
1021
- end
1022
-
1023
- # WorkerConfig defines the configuration to be used for a creating workers in
1024
- # the pool.
1025
- class WorkerConfig
1026
- include Google::Apis::Core::Hashable
1027
-
1028
- # Size of the disk attached to the worker, in GB.
1029
- # See https://cloud.google.com/compute/docs/disks/
1030
- # If `0` is specified, Cloud Build will use a standard disk size.
1031
- # `disk_size` is overridden if you specify a different disk size in
1032
- # `build_options`. In this case, a VM with a disk size specified in the
1033
- # `build_options` will be created on demand at build time. For more
1034
- # information see
1035
- # https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.
1036
- # builds#buildoptions
1037
- # Corresponds to the JSON property `diskSizeGb`
1038
- # @return [Fixnum]
1039
- attr_accessor :disk_size_gb
1040
-
1041
- # Machine Type of the worker, such as n1-standard-1.
1042
- # See https://cloud.google.com/compute/docs/machine-types.
1043
- # If left blank, Cloud Build will use a standard unspecified machine to
1044
- # create the worker pool.
1045
- # `machine_type` is overridden if you specify a different machine type in
1046
- # `build_options`. In this case, the VM specified in the `build_options`
1047
- # will be created on demand at build time. For more information see
1048
- # https://cloud.google.com/cloud-build/docs/speeding-up-builds#
1049
- # using_custom_virtual_machine_sizes
1050
- # Corresponds to the JSON property `machineType`
1051
- # @return [String]
1052
- attr_accessor :machine_type
1053
-
1054
- # Network describes the GCP network used to create workers in.
1055
- # Corresponds to the JSON property `network`
1056
- # @return [Google::Apis::CloudbuildV1alpha1::Network]
1057
- attr_accessor :network
1058
-
1059
- # The tag applied to the worker, and the same tag used by the firewall rule.
1060
- # It is used to identify the Cloud Build workers among other VMs.
1061
- # The default value for tag is `worker`.
1062
- # Corresponds to the JSON property `tag`
1063
- # @return [String]
1064
- attr_accessor :tag
1065
-
1066
- def initialize(**args)
1067
- update!(**args)
1068
- end
1069
-
1070
- # Update properties of this object
1071
- def update!(**args)
1072
- @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
1073
- @machine_type = args[:machine_type] if args.key?(:machine_type)
1074
- @network = args[:network] if args.key?(:network)
1075
- @tag = args[:tag] if args.key?(:tag)
1076
- end
1077
- end
1078
-
1079
- # Configuration for a WorkerPool to run the builds.
1080
- # Workers are machines that Cloud Build uses to run your builds. By default,
1081
- # all workers run in a project owned by Cloud Build. To have full control over
1082
- # the workers that execute your builds -- such as enabling them to access
1083
- # private resources on your private network -- you can request Cloud Build to
1084
- # run the workers in your own project by creating a custom workers pool.
1085
- class WorkerPool
1086
- include Google::Apis::Core::Hashable
1087
-
1088
- # Output only. Time at which the request to create the `WorkerPool` was
1089
- # received.
1090
- # Corresponds to the JSON property `createTime`
1091
- # @return [String]
1092
- attr_accessor :create_time
1093
-
1094
- # Output only. Time at which the request to delete the `WorkerPool` was
1095
- # received.
1096
- # Corresponds to the JSON property `deleteTime`
1097
- # @return [String]
1098
- attr_accessor :delete_time
1099
-
1100
- # User-defined name of the `WorkerPool`.
1101
- # Corresponds to the JSON property `name`
1102
- # @return [String]
1103
- attr_accessor :name
1104
-
1105
- # The project ID of the GCP project for which the `WorkerPool` is created.
1106
- # Corresponds to the JSON property `projectId`
1107
- # @return [String]
1108
- attr_accessor :project_id
1109
-
1110
- # List of regions to create the `WorkerPool`. Regions can't be empty.
1111
- # If Cloud Build adds a new GCP region in the future, the existing
1112
- # `WorkerPool` will not be enabled in the new region automatically;
1113
- # you must add the new region to the `regions` field to enable the
1114
- # `WorkerPool` in that region.
1115
- # Corresponds to the JSON property `regions`
1116
- # @return [Array<String>]
1117
- attr_accessor :regions
1118
-
1119
- # Output only. The service account used to manage the `WorkerPool`. The
1120
- # service account must have the Compute Instance Admin (Beta) permission at
1121
- # the project level.
1122
- # Corresponds to the JSON property `serviceAccountEmail`
1123
- # @return [String]
1124
- attr_accessor :service_account_email
1125
-
1126
- # Output only. WorkerPool Status.
1127
- # Corresponds to the JSON property `status`
1128
- # @return [String]
1129
- attr_accessor :status
1130
-
1131
- # Output only. Time at which the request to update the `WorkerPool` was
1132
- # received.
1133
- # Corresponds to the JSON property `updateTime`
1134
- # @return [String]
1135
- attr_accessor :update_time
1136
-
1137
- # WorkerConfig defines the configuration to be used for a creating workers in
1138
- # the pool.
1139
- # Corresponds to the JSON property `workerConfig`
1140
- # @return [Google::Apis::CloudbuildV1alpha1::WorkerConfig]
1141
- attr_accessor :worker_config
1142
-
1143
- # Total number of workers to be created across all requested regions.
1144
- # Corresponds to the JSON property `workerCount`
1145
- # @return [Fixnum]
1146
- attr_accessor :worker_count
1147
-
1148
- def initialize(**args)
1149
- update!(**args)
1150
- end
1151
-
1152
- # Update properties of this object
1153
- def update!(**args)
1154
- @create_time = args[:create_time] if args.key?(:create_time)
1155
- @delete_time = args[:delete_time] if args.key?(:delete_time)
1156
- @name = args[:name] if args.key?(:name)
1157
- @project_id = args[:project_id] if args.key?(:project_id)
1158
- @regions = args[:regions] if args.key?(:regions)
1159
- @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
1160
- @status = args[:status] if args.key?(:status)
1161
- @update_time = args[:update_time] if args.key?(:update_time)
1162
- @worker_config = args[:worker_config] if args.key?(:worker_config)
1163
- @worker_count = args[:worker_count] if args.key?(:worker_count)
1164
- end
1165
- end
1166
- end
1167
- end
1168
- end