google-api-client 0.9.8 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +63 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  16. data/generated/google/apis/admin_directory_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
  18. data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
  19. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  20. data/generated/google/apis/admin_reports_v1.rb +3 -3
  21. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  22. data/generated/google/apis/adsense_v1_4.rb +1 -1
  23. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  24. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  26. data/generated/google/apis/analytics_v3.rb +1 -1
  27. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  28. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  29. data/generated/google/apis/analytics_v3/service.rb +217 -0
  30. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  31. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
  38. data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
  39. data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
  43. data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
  44. data/generated/google/apis/appsactivity_v1.rb +1 -1
  45. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  46. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  47. data/generated/google/apis/appstate_v1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +277 -20
  50. data/generated/google/apis/bigquery_v2/representations.rb +86 -0
  51. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  52. data/generated/google/apis/books_v1.rb +2 -2
  53. data/generated/google/apis/books_v1/classes.rb +79 -1
  54. data/generated/google/apis/books_v1/representations.rb +34 -0
  55. data/generated/google/apis/books_v1/service.rb +7 -3
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/civicinfo_v2.rb +3 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  59. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  61. data/generated/google/apis/classroom_v1.rb +1 -1
  62. data/generated/google/apis/classroom_v1/classes.rb +183 -37
  63. data/generated/google/apis/classroom_v1/representations.rb +74 -9
  64. data/generated/google/apis/classroom_v1/service.rb +403 -38
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
  68. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  69. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  70. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  71. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  72. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  73. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
  74. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
  75. data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
  76. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  77. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +2299 -434
  82. data/generated/google/apis/compute_beta/representations.rb +752 -33
  83. data/generated/google/apis/compute_beta/service.rb +6067 -3153
  84. data/generated/google/apis/compute_v1.rb +1 -1
  85. data/generated/google/apis/compute_v1/classes.rb +1681 -207
  86. data/generated/google/apis/compute_v1/representations.rb +552 -0
  87. data/generated/google/apis/compute_v1/service.rb +2797 -1171
  88. data/generated/google/apis/content_v2.rb +1 -1
  89. data/generated/google/apis/content_v2/classes.rb +757 -1
  90. data/generated/google/apis/content_v2/representations.rb +337 -0
  91. data/generated/google/apis/content_v2/service.rb +244 -0
  92. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  93. data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
  94. data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
  95. data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
  96. data/generated/google/apis/dataproc_v1.rb +2 -2
  97. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  98. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  99. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  100. data/generated/google/apis/datastore_v1.rb +38 -0
  101. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  102. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  103. data/generated/google/apis/datastore_v1/service.rb +259 -0
  104. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  105. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  106. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  107. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  108. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  109. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  110. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  111. data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
  112. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  113. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  114. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  115. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  116. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  117. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  118. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  119. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +1 -1
  122. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  123. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  124. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +27 -3
  129. data/generated/google/apis/drive_v2/representations.rb +4 -0
  130. data/generated/google/apis/drive_v2/service.rb +16 -3
  131. data/generated/google/apis/drive_v3.rb +1 -1
  132. data/generated/google/apis/drive_v3/classes.rb +50 -16
  133. data/generated/google/apis/drive_v3/representations.rb +4 -0
  134. data/generated/google/apis/drive_v3/service.rb +12 -2
  135. data/generated/google/apis/fitness_v1.rb +8 -2
  136. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  137. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  138. data/generated/google/apis/fitness_v1/service.rb +17 -18
  139. data/generated/google/apis/fusiontables_v2.rb +1 -1
  140. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_management_v1management.rb +1 -1
  143. data/generated/google/apis/games_v1.rb +1 -1
  144. data/generated/google/apis/genomics_v1.rb +2 -4
  145. data/generated/google/apis/genomics_v1/classes.rb +143 -34
  146. data/generated/google/apis/genomics_v1/representations.rb +48 -11
  147. data/generated/google/apis/genomics_v1/service.rb +35 -37
  148. data/generated/google/apis/gmail_v1.rb +10 -1
  149. data/generated/google/apis/gmail_v1/classes.rb +542 -4
  150. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  151. data/generated/google/apis/gmail_v1/service.rb +898 -1
  152. data/generated/google/apis/groupssettings_v1.rb +1 -1
  153. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  154. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  155. data/generated/google/apis/iam_v1.rb +2 -2
  156. data/generated/google/apis/iam_v1/classes.rb +181 -206
  157. data/generated/google/apis/iam_v1/representations.rb +36 -45
  158. data/generated/google/apis/iam_v1/service.rb +101 -67
  159. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  160. data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
  161. data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
  162. data/generated/google/apis/language_v1beta1.rb +36 -0
  163. data/generated/google/apis/language_v1beta1/classes.rb +599 -0
  164. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  165. data/generated/google/apis/language_v1beta1/service.rb +152 -0
  166. data/generated/google/apis/logging_v2beta1.rb +6 -6
  167. data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
  168. data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
  169. data/generated/google/apis/logging_v2beta1/service.rb +290 -209
  170. data/generated/google/apis/mirror_v1.rb +2 -2
  171. data/generated/google/apis/mirror_v1/service.rb +1 -1
  172. data/generated/google/apis/monitoring_v3.rb +45 -0
  173. data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
  174. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  175. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  176. data/generated/google/apis/oauth2_v2.rb +1 -1
  177. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  178. data/generated/google/apis/plus_domains_v1.rb +1 -1
  179. data/generated/google/apis/plus_v1.rb +1 -1
  180. data/generated/google/apis/pubsub_v1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  182. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  183. data/generated/google/apis/qpx_express_v1.rb +1 -1
  184. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  185. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  186. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  187. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  188. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  189. data/generated/google/apis/script_v1.rb +1 -1
  190. data/generated/google/apis/script_v1/classes.rb +6 -0
  191. data/generated/google/apis/script_v1/representations.rb +1 -0
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +910 -89
  194. data/generated/google/apis/sheets_v4/representations.rb +194 -10
  195. data/generated/google/apis/sheets_v4/service.rb +216 -49
  196. data/generated/google/apis/slides_v1.rb +49 -0
  197. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  198. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  199. data/generated/google/apis/slides_v1/service.rb +202 -0
  200. data/generated/google/apis/speech_v1beta1.rb +34 -0
  201. data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
  202. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  203. data/generated/google/apis/speech_v1beta1/service.rb +271 -0
  204. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  205. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
  206. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  207. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  208. data/generated/google/apis/storage_v1.rb +1 -1
  209. data/generated/google/apis/storage_v1/classes.rb +43 -18
  210. data/generated/google/apis/storage_v1/representations.rb +4 -1
  211. data/generated/google/apis/storage_v1/service.rb +5 -2
  212. data/generated/google/apis/translate_v2.rb +2 -2
  213. data/generated/google/apis/translate_v2/service.rb +1 -1
  214. data/generated/google/apis/vision_v1.rb +1 -1
  215. data/generated/google/apis/vision_v1/classes.rb +12 -11
  216. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  217. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  218. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  219. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  220. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  221. data/generated/google/apis/youtube_v3.rb +1 -1
  222. data/generated/google/apis/youtube_v3/classes.rb +183 -21
  223. data/generated/google/apis/youtube_v3/representations.rb +85 -4
  224. data/generated/google/apis/youtube_v3/service.rb +41 -5
  225. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  226. data/google-api-client.gemspec +2 -1
  227. data/lib/google/apis/core/api_command.rb +4 -0
  228. data/lib/google/apis/core/base_service.rb +10 -4
  229. data/lib/google/apis/core/download.rb +7 -2
  230. data/lib/google/apis/core/http_command.rb +5 -1
  231. data/lib/google/apis/core/upload.rb +7 -1
  232. data/lib/google/apis/errors.rb +2 -2
  233. data/lib/google/apis/generator/annotator.rb +6 -0
  234. data/lib/google/apis/version.rb +1 -1
  235. data/samples/cli/lib/samples/bigquery.rb +101 -0
  236. data/samples/cli/lib/samples/sheets.rb +61 -0
  237. data/sync.rb +71 -0
  238. metadata +55 -13
@@ -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 = '20160525'
28
+ REVISION = '20161108'
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'
@@ -102,6 +102,15 @@ module Google
102
102
  # At a high level, a Build describes where to find source code, how to build
103
103
  # it (for example, the builder image to run on the source), and what tag to
104
104
  # apply to the built image when it is pushed to Google Container Registry.
105
+ # Fields can include the following variables which will be expanded when the
106
+ # build is created:
107
+ # - $PROJECT_ID: the project ID of the build.
108
+ # - $BUILD_ID: the autogenerated ID of the build.
109
+ # - $REPO_NAME: the source repository name specified by RepoSource.
110
+ # - $BRANCH_NAME: the branch name specified by RepoSource.
111
+ # - $TAG_NAME: the tag name specified by RepoSource.
112
+ # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
113
+ # resolved from the specified branch or tag.
105
114
  # Corresponds to the JSON property `build`
106
115
  # @return [Google::Apis::CloudbuildV1::Build]
107
116
  attr_accessor :build
@@ -127,6 +136,12 @@ module Google
127
136
  # @return [Google::Apis::CloudbuildV1::StorageSource]
128
137
  attr_accessor :storage_source
129
138
 
139
+ # RepoSource describes the location of the source in a Google Cloud Source
140
+ # Repository.
141
+ # Corresponds to the JSON property `repoSource`
142
+ # @return [Google::Apis::CloudbuildV1::RepoSource]
143
+ attr_accessor :repo_source
144
+
130
145
  def initialize(**args)
131
146
  update!(**args)
132
147
  end
@@ -134,6 +149,48 @@ module Google
134
149
  # Update properties of this object
135
150
  def update!(**args)
136
151
  @storage_source = args[:storage_source] if args.key?(:storage_source)
152
+ @repo_source = args[:repo_source] if args.key?(:repo_source)
153
+ end
154
+ end
155
+
156
+ # Provenance of the source. Ways to find the original source, or verify that
157
+ # some source was used for this build.
158
+ class SourceProvenance
159
+ include Google::Apis::Core::Hashable
160
+
161
+ # RepoSource describes the location of the source in a Google Cloud Source
162
+ # Repository.
163
+ # Corresponds to the JSON property `resolvedRepoSource`
164
+ # @return [Google::Apis::CloudbuildV1::RepoSource]
165
+ attr_accessor :resolved_repo_source
166
+
167
+ # StorageSource describes the location of the source in an archive file in
168
+ # Google Cloud Storage.
169
+ # Corresponds to the JSON property `resolvedStorageSource`
170
+ # @return [Google::Apis::CloudbuildV1::StorageSource]
171
+ attr_accessor :resolved_storage_source
172
+
173
+ # Hash(es) of the build source, which can be used to verify that the original
174
+ # source integrity was maintained in the build. Note that FileHashes will
175
+ # only be populated if BuildOptions has requested a SourceProvenanceHash.
176
+ # The keys to this map are file paths used as build source and the values
177
+ # contain the hash values for those files.
178
+ # If the build source came in a single package such as a gzipped tarfile
179
+ # (.tar.gz), the FileHash will be for the single path to that file.
180
+ # @OutputOnly
181
+ # Corresponds to the JSON property `fileHashes`
182
+ # @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
183
+ attr_accessor :file_hashes
184
+
185
+ def initialize(**args)
186
+ update!(**args)
187
+ end
188
+
189
+ # Update properties of this object
190
+ def update!(**args)
191
+ @resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
192
+ @resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
193
+ @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
137
194
  end
138
195
  end
139
196
 
@@ -234,6 +291,79 @@ module Google
234
291
  end
235
292
  end
236
293
 
294
+ # Configuration for an automated build in response to source repository
295
+ # changes.
296
+ class BuildTrigger
297
+ include Google::Apis::Core::Hashable
298
+
299
+ # Unique identifier of the trigger.
300
+ # @OutputOnly
301
+ # Corresponds to the JSON property `id`
302
+ # @return [String]
303
+ attr_accessor :id
304
+
305
+ # Human-readable description of this trigger.
306
+ # Corresponds to the JSON property `description`
307
+ # @return [String]
308
+ attr_accessor :description
309
+
310
+ # RepoSource describes the location of the source in a Google Cloud Source
311
+ # Repository.
312
+ # Corresponds to the JSON property `triggerTemplate`
313
+ # @return [Google::Apis::CloudbuildV1::RepoSource]
314
+ attr_accessor :trigger_template
315
+
316
+ # If true, the trigger will never result in a build.
317
+ # Corresponds to the JSON property `disabled`
318
+ # @return [Boolean]
319
+ attr_accessor :disabled
320
+ alias_method :disabled?, :disabled
321
+
322
+ # Time when the trigger was created.
323
+ # @OutputOnly
324
+ # Corresponds to the JSON property `createTime`
325
+ # @return [String]
326
+ attr_accessor :create_time
327
+
328
+ # Path, from the source root, to a file whose contents is used for the
329
+ # template.
330
+ # Corresponds to the JSON property `filename`
331
+ # @return [String]
332
+ attr_accessor :filename
333
+
334
+ # A build resource in the Container Builder API.
335
+ # At a high level, a Build describes where to find source code, how to build
336
+ # it (for example, the builder image to run on the source), and what tag to
337
+ # apply to the built image when it is pushed to Google Container Registry.
338
+ # Fields can include the following variables which will be expanded when the
339
+ # build is created:
340
+ # - $PROJECT_ID: the project ID of the build.
341
+ # - $BUILD_ID: the autogenerated ID of the build.
342
+ # - $REPO_NAME: the source repository name specified by RepoSource.
343
+ # - $BRANCH_NAME: the branch name specified by RepoSource.
344
+ # - $TAG_NAME: the tag name specified by RepoSource.
345
+ # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
346
+ # resolved from the specified branch or tag.
347
+ # Corresponds to the JSON property `build`
348
+ # @return [Google::Apis::CloudbuildV1::Build]
349
+ attr_accessor :build
350
+
351
+ def initialize(**args)
352
+ update!(**args)
353
+ end
354
+
355
+ # Update properties of this object
356
+ def update!(**args)
357
+ @id = args[:id] if args.key?(:id)
358
+ @description = args[:description] if args.key?(:description)
359
+ @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
360
+ @disabled = args[:disabled] if args.key?(:disabled)
361
+ @create_time = args[:create_time] if args.key?(:create_time)
362
+ @filename = args[:filename] if args.key?(:filename)
363
+ @build = args[:build] if args.key?(:build)
364
+ end
365
+ end
366
+
237
367
  # BuiltImage describes an image built by the pipeline.
238
368
  class BuiltImage
239
369
  include Google::Apis::Core::Hashable
@@ -260,6 +390,31 @@ module Google
260
390
  end
261
391
  end
262
392
 
393
+ # Container message for hash values.
394
+ class HashProp
395
+ include Google::Apis::Core::Hashable
396
+
397
+ # The hash value.
398
+ # Corresponds to the JSON property `value`
399
+ # @return [String]
400
+ attr_accessor :value
401
+
402
+ # The type of hash that was performed.
403
+ # Corresponds to the JSON property `type`
404
+ # @return [String]
405
+ attr_accessor :type
406
+
407
+ def initialize(**args)
408
+ update!(**args)
409
+ end
410
+
411
+ # Update properties of this object
412
+ def update!(**args)
413
+ @value = args[:value] if args.key?(:value)
414
+ @type = args[:type] if args.key?(:type)
415
+ end
416
+ end
417
+
263
418
  # StorageSource describes the location of the source in an archive file in
264
419
  # Google Cloud Storage.
265
420
  class StorageSource
@@ -307,6 +462,11 @@ module Google
307
462
  # @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
308
463
  attr_accessor :images
309
464
 
465
+ # List of build step digests, in order corresponding to build step indices.
466
+ # Corresponds to the JSON property `buildStepImages`
467
+ # @return [Array<String>]
468
+ attr_accessor :build_step_images
469
+
310
470
  def initialize(**args)
311
471
  update!(**args)
312
472
  end
@@ -314,6 +474,7 @@ module Google
314
474
  # Update properties of this object
315
475
  def update!(**args)
316
476
  @images = args[:images] if args.key?(:images)
477
+ @build_step_images = args[:build_step_images] if args.key?(:build_step_images)
317
478
  end
318
479
  end
319
480
 
@@ -321,6 +482,15 @@ module Google
321
482
  # At a high level, a Build describes where to find source code, how to build
322
483
  # it (for example, the builder image to run on the source), and what tag to
323
484
  # apply to the built image when it is pushed to Google Container Registry.
485
+ # Fields can include the following variables which will be expanded when the
486
+ # build is created:
487
+ # - $PROJECT_ID: the project ID of the build.
488
+ # - $BUILD_ID: the autogenerated ID of the build.
489
+ # - $REPO_NAME: the source repository name specified by RepoSource.
490
+ # - $BRANCH_NAME: the branch name specified by RepoSource.
491
+ # - $TAG_NAME: the tag name specified by RepoSource.
492
+ # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
493
+ # resolved from the specified branch or tag.
324
494
  class Build
325
495
  include Google::Apis::Core::Hashable
326
496
 
@@ -330,6 +500,12 @@ module Google
330
500
  # @return [String]
331
501
  attr_accessor :id
332
502
 
503
+ # Provenance of the source. Ways to find the original source, or verify that
504
+ # some source was used for this build.
505
+ # Corresponds to the JSON property `sourceProvenance`
506
+ # @return [Google::Apis::CloudbuildV1::SourceProvenance]
507
+ attr_accessor :source_provenance
508
+
333
509
  # Results describes the artifacts created by the build pipeline.
334
510
  # Corresponds to the JSON property `results`
335
511
  # @return [Google::Apis::CloudbuildV1::Results]
@@ -341,6 +517,11 @@ module Google
341
517
  # @return [String]
342
518
  attr_accessor :status
343
519
 
520
+ # Optional arguments to enable specific features of builds.
521
+ # Corresponds to the JSON property `options`
522
+ # @return [Google::Apis::CloudbuildV1::BuildOptions]
523
+ attr_accessor :options
524
+
344
525
  # Time at which execution of the build was finished.
345
526
  # @OutputOnly
346
527
  # Corresponds to the JSON property `finishTime`
@@ -372,16 +553,25 @@ module Google
372
553
  # @return [String]
373
554
  attr_accessor :create_time
374
555
 
556
+ # URL to logs for this build in Google Cloud Logging.
557
+ # @OutputOnly
558
+ # Corresponds to the JSON property `logUrl`
559
+ # @return [String]
560
+ attr_accessor :log_url
561
+
375
562
  # Customer-readable message about the current status.
376
563
  # @OutputOnly
377
564
  # Corresponds to the JSON property `statusDetail`
378
565
  # @return [String]
379
566
  attr_accessor :status_detail
380
567
 
381
- # List of images expected to be built and pushed to Google Container
382
- # Registry. If an image is listed here and the image is not produced by
383
- # one of the build steps, the build will fail. Any images present when
384
- # the build steps are complete will be pushed to Container Registry.
568
+ # A list of images to be pushed upon the successful completion of all build
569
+ # steps.
570
+ # The images will be pushed using the builder
571
+ # service account's credentials.
572
+ # The digests of the pushed images will be stored in the Build resource's
573
+ # results field.
574
+ # If any of the images fail to be pushed, the build is marked FAILURE.
385
575
  # Corresponds to the JSON property `images`
386
576
  # @return [Array<String>]
387
577
  attr_accessor :images
@@ -392,6 +582,13 @@ module Google
392
582
  # @return [String]
393
583
  attr_accessor :start_time
394
584
 
585
+ # The ID of the BuildTrigger that triggered this build, if it was
586
+ # triggered automatically.
587
+ # @OutputOnly
588
+ # Corresponds to the JSON property `buildTriggerId`
589
+ # @return [String]
590
+ attr_accessor :build_trigger_id
591
+
395
592
  # Google Cloud Storage bucket where logs should be written (see
396
593
  # [Bucket Name
397
594
  # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
@@ -414,21 +611,44 @@ module Google
414
611
  # Update properties of this object
415
612
  def update!(**args)
416
613
  @id = args[:id] if args.key?(:id)
614
+ @source_provenance = args[:source_provenance] if args.key?(:source_provenance)
417
615
  @results = args[:results] if args.key?(:results)
418
616
  @status = args[:status] if args.key?(:status)
617
+ @options = args[:options] if args.key?(:options)
419
618
  @finish_time = args[:finish_time] if args.key?(:finish_time)
420
619
  @timeout = args[:timeout] if args.key?(:timeout)
421
620
  @steps = args[:steps] if args.key?(:steps)
422
621
  @source = args[:source] if args.key?(:source)
423
622
  @create_time = args[:create_time] if args.key?(:create_time)
623
+ @log_url = args[:log_url] if args.key?(:log_url)
424
624
  @status_detail = args[:status_detail] if args.key?(:status_detail)
425
625
  @images = args[:images] if args.key?(:images)
426
626
  @start_time = args[:start_time] if args.key?(:start_time)
627
+ @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
427
628
  @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
428
629
  @project_id = args[:project_id] if args.key?(:project_id)
429
630
  end
430
631
  end
431
632
 
633
+ # Response containing existing BuildTriggers.
634
+ class ListBuildTriggersResponse
635
+ include Google::Apis::Core::Hashable
636
+
637
+ # BuildTriggers for the project, sorted by create_time descending.
638
+ # Corresponds to the JSON property `triggers`
639
+ # @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
640
+ attr_accessor :triggers
641
+
642
+ def initialize(**args)
643
+ update!(**args)
644
+ end
645
+
646
+ # Update properties of this object
647
+ def update!(**args)
648
+ @triggers = args[:triggers] if args.key?(:triggers)
649
+ end
650
+ end
651
+
432
652
  # Request to cancel an ongoing build.
433
653
  class CancelBuildRequest
434
654
  include Google::Apis::Core::Hashable
@@ -442,6 +662,26 @@ module Google
442
662
  end
443
663
  end
444
664
 
665
+ # Container message for hashes of byte content of files, used in
666
+ # SourceProvenance messages to verify integrity of source input to the build.
667
+ class FileHashes
668
+ include Google::Apis::Core::Hashable
669
+
670
+ # Collection of file hashes.
671
+ # Corresponds to the JSON property `fileHash`
672
+ # @return [Array<Google::Apis::CloudbuildV1::HashProp>]
673
+ attr_accessor :file_hash
674
+
675
+ def initialize(**args)
676
+ update!(**args)
677
+ end
678
+
679
+ # Update properties of this object
680
+ def update!(**args)
681
+ @file_hash = args[:file_hash] if args.key?(:file_hash)
682
+ end
683
+ end
684
+
445
685
  # The response message for Operations.ListOperations.
446
686
  class ListOperationsResponse
447
687
  include Google::Apis::Core::Hashable
@@ -467,31 +707,157 @@ module Google
467
707
  end
468
708
  end
469
709
 
710
+ # RepoSource describes the location of the source in a Google Cloud Source
711
+ # Repository.
712
+ class RepoSource
713
+ include Google::Apis::Core::Hashable
714
+
715
+ # Name of the repo. If omitted, the name "default" is assumed.
716
+ # Corresponds to the JSON property `repoName`
717
+ # @return [String]
718
+ attr_accessor :repo_name
719
+
720
+ # Name of the tag to build.
721
+ # Corresponds to the JSON property `tagName`
722
+ # @return [String]
723
+ attr_accessor :tag_name
724
+
725
+ # ID of the project that owns the repo. If omitted, the project ID requesting
726
+ # the build is assumed.
727
+ # Corresponds to the JSON property `projectId`
728
+ # @return [String]
729
+ attr_accessor :project_id
730
+
731
+ # Name of the branch to build.
732
+ # Corresponds to the JSON property `branchName`
733
+ # @return [String]
734
+ attr_accessor :branch_name
735
+
736
+ # Explicit commit SHA to build.
737
+ # Corresponds to the JSON property `commitSha`
738
+ # @return [String]
739
+ attr_accessor :commit_sha
740
+
741
+ def initialize(**args)
742
+ update!(**args)
743
+ end
744
+
745
+ # Update properties of this object
746
+ def update!(**args)
747
+ @repo_name = args[:repo_name] if args.key?(:repo_name)
748
+ @tag_name = args[:tag_name] if args.key?(:tag_name)
749
+ @project_id = args[:project_id] if args.key?(:project_id)
750
+ @branch_name = args[:branch_name] if args.key?(:branch_name)
751
+ @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
752
+ end
753
+ end
754
+
470
755
  # BuildStep describes a step to perform in the build pipeline.
471
756
  class BuildStep
472
757
  include Google::Apis::Core::Hashable
473
758
 
474
- # Command-line arguments to use when running this step's container.
759
+ # Optional unique identifier for this build step, used in wait_for to
760
+ # reference this build step as a dependency.
761
+ # Corresponds to the JSON property `id`
762
+ # @return [String]
763
+ attr_accessor :id
764
+
765
+ # A list of environment variable definitions to be used when running a step.
766
+ # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
767
+ # being given the value "VALUE".
768
+ # Corresponds to the JSON property `env`
769
+ # @return [Array<String>]
770
+ attr_accessor :env
771
+
772
+ # The ID(s) of the step(s) that this build step depends on.
773
+ # This build step will not start until all the build steps in wait_for
774
+ # have completed successfully. If wait_for is empty, this build step will
775
+ # start when all previous build steps in the Build.Steps list have completed
776
+ # successfully.
777
+ # Corresponds to the JSON property `waitFor`
778
+ # @return [Array<String>]
779
+ attr_accessor :wait_for
780
+
781
+ # A list of arguments that will be presented to the step when it is started.
782
+ # If the image used to run the step's container has an entrypoint, these args
783
+ # will be used as arguments to that entrypoint. If the image does not define
784
+ # an entrypoint, the first element in args will be used as the entrypoint,
785
+ # and the remainder will be used as arguments.
475
786
  # Corresponds to the JSON property `args`
476
787
  # @return [Array<String>]
477
788
  attr_accessor :args
478
789
 
790
+ # The name of the container image that will run this particular build step.
791
+ # If the image is already available in the host's
792
+ # Docker daemon's cache, it will be run directly. If not, the host will
793
+ # attempt to pull the image first, using the builder service account's
794
+ # credentials if necessary.
795
+ # The Docker daemon's cache will already have the latest versions of all of
796
+ # the officially supported build steps
797
+ # (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon
798
+ # will also have cached many of the layers for some popular images, like
799
+ # "ubuntu", "debian", but they will be refreshed at the time you attempt to
800
+ # use them.
801
+ # If you built an image in a previous build step, it will be stored in the
802
+ # host's Docker daemon's cache and is available to use as the name for a
803
+ # later build step.
804
+ # Corresponds to the JSON property `name`
805
+ # @return [String]
806
+ attr_accessor :name
807
+
479
808
  # Working directory (relative to project source root) to use when running
480
809
  # this operation's container.
481
810
  # Corresponds to the JSON property `dir`
482
811
  # @return [String]
483
812
  attr_accessor :dir
484
813
 
485
- # Name of the container image to use for creating this stage in the
486
- # pipeline, as presented to `docker pull`.
487
- # Corresponds to the JSON property `name`
488
- # @return [String]
489
- attr_accessor :name
814
+ def initialize(**args)
815
+ update!(**args)
816
+ end
490
817
 
491
- # Additional environment variables to set for this step's container.
492
- # Corresponds to the JSON property `env`
818
+ # Update properties of this object
819
+ def update!(**args)
820
+ @id = args[:id] if args.key?(:id)
821
+ @env = args[:env] if args.key?(:env)
822
+ @wait_for = args[:wait_for] if args.key?(:wait_for)
823
+ @args = args[:args] if args.key?(:args)
824
+ @name = args[:name] if args.key?(:name)
825
+ @dir = args[:dir] if args.key?(:dir)
826
+ end
827
+ end
828
+
829
+ # A generic empty message that you can re-use to avoid defining duplicated
830
+ # empty messages in your APIs. A typical example is to use it as the request
831
+ # or the response type of an API method. For instance:
832
+ # service Foo `
833
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
834
+ # `
835
+ # The JSON representation for `Empty` is empty JSON object ````.
836
+ class Empty
837
+ include Google::Apis::Core::Hashable
838
+
839
+ def initialize(**args)
840
+ update!(**args)
841
+ end
842
+
843
+ # Update properties of this object
844
+ def update!(**args)
845
+ end
846
+ end
847
+
848
+ # Optional arguments to enable specific features of builds.
849
+ class BuildOptions
850
+ include Google::Apis::Core::Hashable
851
+
852
+ # Requested hash for SourceProvenance.
853
+ # Corresponds to the JSON property `sourceProvenanceHash`
493
854
  # @return [Array<String>]
494
- attr_accessor :env
855
+ attr_accessor :source_provenance_hash
856
+
857
+ # Requested verifiability options.
858
+ # Corresponds to the JSON property `requestedVerifyOption`
859
+ # @return [String]
860
+ attr_accessor :requested_verify_option
495
861
 
496
862
  def initialize(**args)
497
863
  update!(**args)
@@ -499,10 +865,8 @@ module Google
499
865
 
500
866
  # Update properties of this object
501
867
  def update!(**args)
502
- @args = args[:args] if args.key?(:args)
503
- @dir = args[:dir] if args.key?(:dir)
504
- @name = args[:name] if args.key?(:name)
505
- @env = args[:env] if args.key?(:env)
868
+ @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
869
+ @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
506
870
  end
507
871
  end
508
872