google-api-client 0.11.2 → 0.11.3

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