google-api-client 0.11.1 → 0.11.2

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