google-api-client 0.9.25 → 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +279 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +110 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +25 -25
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +145 -145
  8. data/generated/google/apis/adsense_v1_4.rb +1 -1
  9. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  10. data/generated/google/apis/calendar_v3.rb +1 -1
  11. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  12. data/generated/google/apis/cloudbuild_v1/classes.rb +419 -419
  13. data/generated/google/apis/cloudbuild_v1/representations.rb +73 -73
  14. data/generated/google/apis/cloudbuild_v1/service.rb +86 -86
  15. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  16. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  17. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  18. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  19. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  20. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +478 -478
  21. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +96 -96
  22. data/generated/google/apis/cloudresourcemanager_v1/service.rb +271 -271
  23. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  24. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +353 -353
  25. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +81 -81
  26. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +299 -299
  27. data/generated/google/apis/container_v1.rb +1 -1
  28. data/generated/google/apis/container_v1/classes.rb +287 -16
  29. data/generated/google/apis/container_v1/representations.rb +113 -2
  30. data/generated/google/apis/container_v1/service.rb +130 -0
  31. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  32. data/generated/google/apis/drive_v2.rb +1 -1
  33. data/generated/google/apis/drive_v3.rb +1 -1
  34. data/generated/google/apis/genomics_v1.rb +8 -8
  35. data/generated/google/apis/genomics_v1/classes.rb +2259 -2257
  36. data/generated/google/apis/genomics_v1/representations.rb +461 -526
  37. data/generated/google/apis/genomics_v1/service.rb +1203 -1105
  38. data/generated/google/apis/gmail_v1.rb +1 -1
  39. data/generated/google/apis/logging_v2beta1.rb +1 -1
  40. data/generated/google/apis/logging_v2beta1/classes.rb +852 -852
  41. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  42. data/generated/google/apis/logging_v2beta1/service.rb +230 -230
  43. data/generated/google/apis/manufacturers_v1.rb +34 -0
  44. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  45. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  46. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  47. data/generated/google/apis/monitoring_v3.rb +7 -7
  48. data/generated/google/apis/monitoring_v3/classes.rb +744 -744
  49. data/generated/google/apis/monitoring_v3/representations.rb +164 -164
  50. data/generated/google/apis/monitoring_v3/service.rb +335 -335
  51. data/generated/google/apis/plus_domains_v1.rb +1 -1
  52. data/generated/google/apis/plus_v1.rb +1 -1
  53. data/generated/google/apis/pubsub_v1.rb +3 -3
  54. data/generated/google/apis/pubsub_v1/classes.rb +325 -325
  55. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  56. data/generated/google/apis/pubsub_v1/service.rb +256 -256
  57. data/generated/google/apis/sheets_v4.rb +3 -3
  58. data/generated/google/apis/sheets_v4/classes.rb +4283 -4283
  59. data/generated/google/apis/sheets_v4/representations.rb +833 -833
  60. data/generated/google/apis/sheets_v4/service.rb +184 -184
  61. data/generated/google/apis/speech_v1beta1.rb +1 -1
  62. data/generated/google/apis/speech_v1beta1/classes.rb +213 -211
  63. data/generated/google/apis/speech_v1beta1/representations.rb +49 -49
  64. data/generated/google/apis/speech_v1beta1/service.rb +71 -71
  65. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  66. data/generated/google/apis/sqladmin_v1beta4/classes.rb +20 -0
  67. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  68. data/generated/google/apis/vision_v1.rb +1 -1
  69. data/generated/google/apis/vision_v1/classes.rb +861 -859
  70. data/generated/google/apis/vision_v1/representations.rb +140 -140
  71. data/generated/google/apis/vision_v1/service.rb +4 -4
  72. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  73. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  74. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  75. data/generated/google/apis/youtubereporting_v1/classes.rb +139 -139
  76. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  77. data/generated/google/apis/youtubereporting_v1/service.rb +152 -152
  78. data/lib/google/apis/version.rb +1 -1
  79. metadata +9 -1
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/adsense/management/
26
26
  module AdsenseV1_4
27
27
  VERSION = 'V1_4'
28
- REVISION = '20170123'
28
+ REVISION = '20170125'
29
29
 
30
30
  # View and manage your AdSense data
31
31
  AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/adsense/host/
27
27
  module AdsensehostV4_1
28
28
  VERSION = 'V4_1'
29
- REVISION = '20170123'
29
+ REVISION = '20170125'
30
30
 
31
31
  # View and manage your AdSense host data and associated accounts
32
32
  AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/calendar/firstapp
26
26
  module CalendarV3
27
27
  VERSION = 'V3'
28
- REVISION = '20170115'
28
+ REVISION = '20170124'
29
29
 
30
30
  # Manage your calendars
31
31
  AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/container-builder/docs/
26
26
  module CloudbuildV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170124'
28
+ REVISION = '20170126'
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,72 +22,81 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1
24
24
 
25
- # Response including listed builds.
26
- class ListBuildsResponse
25
+ # A generic empty message that you can re-use to avoid defining duplicated
26
+ # empty messages in your APIs. A typical example is to use it as the request
27
+ # or the response type of an API method. For instance:
28
+ # service Foo `
29
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
30
+ # `
31
+ # The JSON representation for `Empty` is empty JSON object ````.
32
+ class Empty
27
33
  include Google::Apis::Core::Hashable
28
34
 
29
- # Token to receive the next page of results.
30
- # Corresponds to the JSON property `nextPageToken`
31
- # @return [String]
32
- attr_accessor :next_page_token
33
-
34
- # Builds will be sorted by create_time, descending.
35
- # Corresponds to the JSON property `builds`
36
- # @return [Array<Google::Apis::CloudbuildV1::Build>]
37
- attr_accessor :builds
38
-
39
35
  def initialize(**args)
40
36
  update!(**args)
41
37
  end
42
38
 
43
39
  # Update properties of this object
44
40
  def update!(**args)
45
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
46
- @builds = args[:builds] if args.key?(:builds)
47
41
  end
48
42
  end
49
43
 
50
- # The response message for Operations.ListOperations.
51
- class ListOperationsResponse
44
+ # Configuration for an automated build in response to source repository
45
+ # changes.
46
+ class BuildTrigger
52
47
  include Google::Apis::Core::Hashable
53
48
 
54
- # The standard List next-page token.
55
- # Corresponds to the JSON property `nextPageToken`
49
+ # Unique identifier of the trigger.
50
+ # @OutputOnly
51
+ # Corresponds to the JSON property `id`
56
52
  # @return [String]
57
- attr_accessor :next_page_token
53
+ attr_accessor :id
58
54
 
59
- # A list of operations that matches the specified filter in the request.
60
- # Corresponds to the JSON property `operations`
61
- # @return [Array<Google::Apis::CloudbuildV1::Operation>]
62
- attr_accessor :operations
55
+ # A build resource in the Container Builder API.
56
+ # At a high level, a Build describes where to find source code, how to build
57
+ # it (for example, the builder image to run on the source), and what tag to
58
+ # apply to the built image when it is pushed to Google Container Registry.
59
+ # Fields can include the following variables which will be expanded when the
60
+ # build is created:
61
+ # - $PROJECT_ID: the project ID of the build.
62
+ # - $BUILD_ID: the autogenerated ID of the build.
63
+ # - $REPO_NAME: the source repository name specified by RepoSource.
64
+ # - $BRANCH_NAME: the branch name specified by RepoSource.
65
+ # - $TAG_NAME: the tag name specified by RepoSource.
66
+ # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
67
+ # resolved from the specified branch or tag.
68
+ # Corresponds to the JSON property `build`
69
+ # @return [Google::Apis::CloudbuildV1::Build]
70
+ attr_accessor :build
63
71
 
64
- def initialize(**args)
65
- update!(**args)
66
- end
72
+ # Human-readable description of this trigger.
73
+ # Corresponds to the JSON property `description`
74
+ # @return [String]
75
+ attr_accessor :description
67
76
 
68
- # Update properties of this object
69
- def update!(**args)
70
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
71
- @operations = args[:operations] if args.key?(:operations)
72
- end
73
- end
77
+ # If true, the trigger will never result in a build.
78
+ # Corresponds to the JSON property `disabled`
79
+ # @return [Boolean]
80
+ attr_accessor :disabled
81
+ alias_method :disabled?, :disabled
74
82
 
75
- # Source describes the location of the source in a supported storage
76
- # service.
77
- class Source
78
- include Google::Apis::Core::Hashable
83
+ # Time when the trigger was created.
84
+ # @OutputOnly
85
+ # Corresponds to the JSON property `createTime`
86
+ # @return [String]
87
+ attr_accessor :create_time
79
88
 
80
- # StorageSource describes the location of the source in an archive file in
81
- # Google Cloud Storage.
82
- # Corresponds to the JSON property `storageSource`
83
- # @return [Google::Apis::CloudbuildV1::StorageSource]
84
- attr_accessor :storage_source
89
+ # Path, from the source root, to a file whose contents is used for the
90
+ # template.
91
+ # Corresponds to the JSON property `filename`
92
+ # @return [String]
93
+ attr_accessor :filename
85
94
 
86
95
  # RepoSource describes the location of the source in a Google Cloud Source
87
96
  # Repository.
88
- # Corresponds to the JSON property `repoSource`
97
+ # Corresponds to the JSON property `triggerTemplate`
89
98
  # @return [Google::Apis::CloudbuildV1::RepoSource]
90
- attr_accessor :repo_source
99
+ attr_accessor :trigger_template
91
100
 
92
101
  def initialize(**args)
93
102
  update!(**args)
@@ -95,61 +104,142 @@ module Google
95
104
 
96
105
  # Update properties of this object
97
106
  def update!(**args)
98
- @storage_source = args[:storage_source] if args.key?(:storage_source)
99
- @repo_source = args[:repo_source] if args.key?(:repo_source)
107
+ @id = args[:id] if args.key?(:id)
108
+ @build = args[:build] if args.key?(:build)
109
+ @description = args[:description] if args.key?(:description)
110
+ @disabled = args[:disabled] if args.key?(:disabled)
111
+ @create_time = args[:create_time] if args.key?(:create_time)
112
+ @filename = args[:filename] if args.key?(:filename)
113
+ @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
100
114
  end
101
115
  end
102
116
 
103
- # Optional arguments to enable specific features of builds.
104
- class BuildOptions
117
+ # A build resource in the Container Builder API.
118
+ # At a high level, a Build describes where to find source code, how to build
119
+ # it (for example, the builder image to run on the source), and what tag to
120
+ # apply to the built image when it is pushed to Google Container Registry.
121
+ # Fields can include the following variables which will be expanded when the
122
+ # build is created:
123
+ # - $PROJECT_ID: the project ID of the build.
124
+ # - $BUILD_ID: the autogenerated ID of the build.
125
+ # - $REPO_NAME: the source repository name specified by RepoSource.
126
+ # - $BRANCH_NAME: the branch name specified by RepoSource.
127
+ # - $TAG_NAME: the tag name specified by RepoSource.
128
+ # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
129
+ # resolved from the specified branch or tag.
130
+ class Build
105
131
  include Google::Apis::Core::Hashable
106
132
 
107
- # Requested hash for SourceProvenance.
108
- # Corresponds to the JSON property `sourceProvenanceHash`
133
+ # Time at which execution of the build was started.
134
+ # @OutputOnly
135
+ # Corresponds to the JSON property `startTime`
136
+ # @return [String]
137
+ attr_accessor :start_time
138
+
139
+ # Provenance of the source. Ways to find the original source, or verify that
140
+ # some source was used for this build.
141
+ # Corresponds to the JSON property `sourceProvenance`
142
+ # @return [Google::Apis::CloudbuildV1::SourceProvenance]
143
+ attr_accessor :source_provenance
144
+
145
+ # Time at which the request to create the build was received.
146
+ # @OutputOnly
147
+ # Corresponds to the JSON property `createTime`
148
+ # @return [String]
149
+ attr_accessor :create_time
150
+
151
+ # A list of images to be pushed upon the successful completion of all build
152
+ # steps.
153
+ # The images will be pushed using the builder service account's credentials.
154
+ # The digests of the pushed images will be stored in the Build resource's
155
+ # results field.
156
+ # If any of the images fail to be pushed, the build is marked FAILURE.
157
+ # Corresponds to the JSON property `images`
109
158
  # @return [Array<String>]
110
- attr_accessor :source_provenance_hash
159
+ attr_accessor :images
111
160
 
112
- # Requested verifiability options.
113
- # Corresponds to the JSON property `requestedVerifyOption`
161
+ # ID of the project.
162
+ # @OutputOnly.
163
+ # Corresponds to the JSON property `projectId`
114
164
  # @return [String]
115
- attr_accessor :requested_verify_option
165
+ attr_accessor :project_id
116
166
 
117
- def initialize(**args)
118
- update!(**args)
119
- end
167
+ # URL to logs for this build in Google Cloud Logging.
168
+ # @OutputOnly
169
+ # Corresponds to the JSON property `logUrl`
170
+ # @return [String]
171
+ attr_accessor :log_url
120
172
 
121
- # Update properties of this object
122
- def update!(**args)
123
- @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
124
- @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
125
- end
126
- end
173
+ # Time at which execution of the build was finished.
174
+ # The difference between finish_time and start_time is the duration of the
175
+ # build's execution.
176
+ # @OutputOnly
177
+ # Corresponds to the JSON property `finishTime`
178
+ # @return [String]
179
+ attr_accessor :finish_time
127
180
 
128
- # StorageSource describes the location of the source in an archive file in
129
- # Google Cloud Storage.
130
- class StorageSource
131
- include Google::Apis::Core::Hashable
181
+ # Source describes the location of the source in a supported storage
182
+ # service.
183
+ # Corresponds to the JSON property `source`
184
+ # @return [Google::Apis::CloudbuildV1::Source]
185
+ attr_accessor :source
132
186
 
133
- # Google Cloud Storage bucket containing source (see
187
+ # Optional arguments to enable specific features of builds.
188
+ # Corresponds to the JSON property `options`
189
+ # @return [Google::Apis::CloudbuildV1::BuildOptions]
190
+ attr_accessor :options
191
+
192
+ # Customer-readable message about the current status.
193
+ # @OutputOnly
194
+ # Corresponds to the JSON property `statusDetail`
195
+ # @return [String]
196
+ attr_accessor :status_detail
197
+
198
+ # Status of the build.
199
+ # @OutputOnly
200
+ # Corresponds to the JSON property `status`
201
+ # @return [String]
202
+ attr_accessor :status
203
+
204
+ # Amount of time that this build should be allowed to run, to second
205
+ # granularity. If this amount of time elapses, work on the build will cease
206
+ # and the build status will be TIMEOUT.
207
+ # Default time is ten minutes.
208
+ # Corresponds to the JSON property `timeout`
209
+ # @return [String]
210
+ attr_accessor :timeout
211
+
212
+ # Google Cloud Storage bucket where logs should be written (see
134
213
  # [Bucket Name
135
214
  # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
136
215
  # ).
137
- # Corresponds to the JSON property `bucket`
216
+ # Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
217
+ # Corresponds to the JSON property `logsBucket`
138
218
  # @return [String]
139
- attr_accessor :bucket
219
+ attr_accessor :logs_bucket
140
220
 
141
- # Google Cloud Storage object containing source.
142
- # This object must be a gzipped archive file (.tar.gz) containing source to
143
- # build.
144
- # Corresponds to the JSON property `object`
221
+ # Results describes the artifacts created by the build pipeline.
222
+ # Corresponds to the JSON property `results`
223
+ # @return [Google::Apis::CloudbuildV1::Results]
224
+ attr_accessor :results
225
+
226
+ # Describes the operations to be performed on the workspace.
227
+ # Corresponds to the JSON property `steps`
228
+ # @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
229
+ attr_accessor :steps
230
+
231
+ # The ID of the BuildTrigger that triggered this build, if it was
232
+ # triggered automatically.
233
+ # @OutputOnly
234
+ # Corresponds to the JSON property `buildTriggerId`
145
235
  # @return [String]
146
- attr_accessor :object
236
+ attr_accessor :build_trigger_id
147
237
 
148
- # Google Cloud Storage generation for the object. If the generation is
149
- # omitted, the latest generation will be used.
150
- # Corresponds to the JSON property `generation`
238
+ # Unique identifier of the build.
239
+ # @OutputOnly
240
+ # Corresponds to the JSON property `id`
151
241
  # @return [String]
152
- attr_accessor :generation
242
+ attr_accessor :id
153
243
 
154
244
  def initialize(**args)
155
245
  update!(**args)
@@ -157,34 +247,202 @@ module Google
157
247
 
158
248
  # Update properties of this object
159
249
  def update!(**args)
160
- @bucket = args[:bucket] if args.key?(:bucket)
161
- @object = args[:object] if args.key?(:object)
162
- @generation = args[:generation] if args.key?(:generation)
163
- end
164
- end
165
-
166
- # Results describes the artifacts created by the build pipeline.
167
- class Results
168
- include Google::Apis::Core::Hashable
169
-
170
- # Images that were built as a part of the build.
171
- # Corresponds to the JSON property `images`
172
- # @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
173
- attr_accessor :images
250
+ @start_time = args[:start_time] if args.key?(:start_time)
251
+ @source_provenance = args[:source_provenance] if args.key?(:source_provenance)
252
+ @create_time = args[:create_time] if args.key?(:create_time)
253
+ @images = args[:images] if args.key?(:images)
254
+ @project_id = args[:project_id] if args.key?(:project_id)
255
+ @log_url = args[:log_url] if args.key?(:log_url)
256
+ @finish_time = args[:finish_time] if args.key?(:finish_time)
257
+ @source = args[:source] if args.key?(:source)
258
+ @options = args[:options] if args.key?(:options)
259
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
260
+ @status = args[:status] if args.key?(:status)
261
+ @timeout = args[:timeout] if args.key?(:timeout)
262
+ @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
263
+ @results = args[:results] if args.key?(:results)
264
+ @steps = args[:steps] if args.key?(:steps)
265
+ @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
266
+ @id = args[:id] if args.key?(:id)
267
+ end
268
+ end
269
+
270
+ # Request to cancel an ongoing build.
271
+ class CancelBuildRequest
272
+ include Google::Apis::Core::Hashable
273
+
274
+ def initialize(**args)
275
+ update!(**args)
276
+ end
277
+
278
+ # Update properties of this object
279
+ def update!(**args)
280
+ end
281
+ end
282
+
283
+ # Response including listed builds.
284
+ class ListBuildsResponse
285
+ include Google::Apis::Core::Hashable
286
+
287
+ # Token to receive the next page of results.
288
+ # Corresponds to the JSON property `nextPageToken`
289
+ # @return [String]
290
+ attr_accessor :next_page_token
291
+
292
+ # Builds will be sorted by create_time, descending.
293
+ # Corresponds to the JSON property `builds`
294
+ # @return [Array<Google::Apis::CloudbuildV1::Build>]
295
+ attr_accessor :builds
296
+
297
+ def initialize(**args)
298
+ update!(**args)
299
+ end
300
+
301
+ # Update properties of this object
302
+ def update!(**args)
303
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
304
+ @builds = args[:builds] if args.key?(:builds)
305
+ end
306
+ end
307
+
308
+ # The response message for Operations.ListOperations.
309
+ class ListOperationsResponse
310
+ include Google::Apis::Core::Hashable
311
+
312
+ # The standard List next-page token.
313
+ # Corresponds to the JSON property `nextPageToken`
314
+ # @return [String]
315
+ attr_accessor :next_page_token
316
+
317
+ # A list of operations that matches the specified filter in the request.
318
+ # Corresponds to the JSON property `operations`
319
+ # @return [Array<Google::Apis::CloudbuildV1::Operation>]
320
+ attr_accessor :operations
321
+
322
+ def initialize(**args)
323
+ update!(**args)
324
+ end
325
+
326
+ # Update properties of this object
327
+ def update!(**args)
328
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
329
+ @operations = args[:operations] if args.key?(:operations)
330
+ end
331
+ end
332
+
333
+ # Source describes the location of the source in a supported storage
334
+ # service.
335
+ class Source
336
+ include Google::Apis::Core::Hashable
337
+
338
+ # StorageSource describes the location of the source in an archive file in
339
+ # Google Cloud Storage.
340
+ # Corresponds to the JSON property `storageSource`
341
+ # @return [Google::Apis::CloudbuildV1::StorageSource]
342
+ attr_accessor :storage_source
343
+
344
+ # RepoSource describes the location of the source in a Google Cloud Source
345
+ # Repository.
346
+ # Corresponds to the JSON property `repoSource`
347
+ # @return [Google::Apis::CloudbuildV1::RepoSource]
348
+ attr_accessor :repo_source
349
+
350
+ def initialize(**args)
351
+ update!(**args)
352
+ end
353
+
354
+ # Update properties of this object
355
+ def update!(**args)
356
+ @storage_source = args[:storage_source] if args.key?(:storage_source)
357
+ @repo_source = args[:repo_source] if args.key?(:repo_source)
358
+ end
359
+ end
360
+
361
+ # Optional arguments to enable specific features of builds.
362
+ class BuildOptions
363
+ include Google::Apis::Core::Hashable
364
+
365
+ # Requested hash for SourceProvenance.
366
+ # Corresponds to the JSON property `sourceProvenanceHash`
367
+ # @return [Array<String>]
368
+ attr_accessor :source_provenance_hash
369
+
370
+ # Requested verifiability options.
371
+ # Corresponds to the JSON property `requestedVerifyOption`
372
+ # @return [String]
373
+ attr_accessor :requested_verify_option
374
+
375
+ def initialize(**args)
376
+ update!(**args)
377
+ end
378
+
379
+ # Update properties of this object
380
+ def update!(**args)
381
+ @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
382
+ @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
383
+ end
384
+ end
385
+
386
+ # StorageSource describes the location of the source in an archive file in
387
+ # Google Cloud Storage.
388
+ class StorageSource
389
+ include Google::Apis::Core::Hashable
390
+
391
+ # Google Cloud Storage bucket containing source (see
392
+ # [Bucket Name
393
+ # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
394
+ # ).
395
+ # Corresponds to the JSON property `bucket`
396
+ # @return [String]
397
+ attr_accessor :bucket
398
+
399
+ # Google Cloud Storage object containing source.
400
+ # This object must be a gzipped archive file (.tar.gz) containing source to
401
+ # build.
402
+ # Corresponds to the JSON property `object`
403
+ # @return [String]
404
+ attr_accessor :object
405
+
406
+ # Google Cloud Storage generation for the object. If the generation is
407
+ # omitted, the latest generation will be used.
408
+ # Corresponds to the JSON property `generation`
409
+ # @return [String]
410
+ attr_accessor :generation
411
+
412
+ def initialize(**args)
413
+ update!(**args)
414
+ end
415
+
416
+ # Update properties of this object
417
+ def update!(**args)
418
+ @bucket = args[:bucket] if args.key?(:bucket)
419
+ @object = args[:object] if args.key?(:object)
420
+ @generation = args[:generation] if args.key?(:generation)
421
+ end
422
+ end
423
+
424
+ # Results describes the artifacts created by the build pipeline.
425
+ class Results
426
+ include Google::Apis::Core::Hashable
174
427
 
175
428
  # List of build step digests, in order corresponding to build step indices.
176
429
  # Corresponds to the JSON property `buildStepImages`
177
430
  # @return [Array<String>]
178
431
  attr_accessor :build_step_images
179
432
 
433
+ # Images that were built as a part of the build.
434
+ # Corresponds to the JSON property `images`
435
+ # @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
436
+ attr_accessor :images
437
+
180
438
  def initialize(**args)
181
439
  update!(**args)
182
440
  end
183
441
 
184
442
  # Update properties of this object
185
443
  def update!(**args)
186
- @images = args[:images] if args.key?(:images)
187
444
  @build_step_images = args[:build_step_images] if args.key?(:build_step_images)
445
+ @images = args[:images] if args.key?(:images)
188
446
  end
189
447
  end
190
448
 
@@ -278,26 +536,6 @@ module Google
278
536
  class Operation
279
537
  include Google::Apis::Core::Hashable
280
538
 
281
- # If the value is `false`, it means the operation is still in progress.
282
- # If true, the operation is completed, and either `error` or `response` is
283
- # available.
284
- # Corresponds to the JSON property `done`
285
- # @return [Boolean]
286
- attr_accessor :done
287
- alias_method :done?, :done
288
-
289
- # The normal response of the operation in case of success. If the original
290
- # method returns no data on success, such as `Delete`, the response is
291
- # `google.protobuf.Empty`. If the original method is standard
292
- # `Get`/`Create`/`Update`, the response should be the resource. For other
293
- # methods, the response should have the type `XxxResponse`, where `Xxx`
294
- # is the original method name. For example, if the original method name
295
- # is `TakeSnapshot()`, the inferred response type is
296
- # `TakeSnapshotResponse`.
297
- # Corresponds to the JSON property `response`
298
- # @return [Hash<String,Object>]
299
- attr_accessor :response
300
-
301
539
  # The server-assigned name, which is only unique within the same service that
302
540
  # originally returns it. If you use the default HTTP mapping, the
303
541
  # `name` should have the format of `operations/some/unique/name`.
@@ -356,17 +594,37 @@ module Google
356
594
  # @return [Hash<String,Object>]
357
595
  attr_accessor :metadata
358
596
 
597
+ # If the value is `false`, it means the operation is still in progress.
598
+ # If true, the operation is completed, and either `error` or `response` is
599
+ # available.
600
+ # Corresponds to the JSON property `done`
601
+ # @return [Boolean]
602
+ attr_accessor :done
603
+ alias_method :done?, :done
604
+
605
+ # The normal response of the operation in case of success. If the original
606
+ # method returns no data on success, such as `Delete`, the response is
607
+ # `google.protobuf.Empty`. If the original method is standard
608
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
609
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
610
+ # is the original method name. For example, if the original method name
611
+ # is `TakeSnapshot()`, the inferred response type is
612
+ # `TakeSnapshotResponse`.
613
+ # Corresponds to the JSON property `response`
614
+ # @return [Hash<String,Object>]
615
+ attr_accessor :response
616
+
359
617
  def initialize(**args)
360
618
  update!(**args)
361
619
  end
362
620
 
363
621
  # Update properties of this object
364
622
  def update!(**args)
365
- @done = args[:done] if args.key?(:done)
366
- @response = args[:response] if args.key?(:response)
367
623
  @name = args[:name] if args.key?(:name)
368
624
  @error = args[:error] if args.key?(:error)
369
625
  @metadata = args[:metadata] if args.key?(:metadata)
626
+ @done = args[:done] if args.key?(:done)
627
+ @response = args[:response] if args.key?(:response)
370
628
  end
371
629
  end
372
630
 
@@ -419,29 +677,6 @@ module Google
419
677
  class BuildStep
420
678
  include Google::Apis::Core::Hashable
421
679
 
422
- # The name of the container image that will run this particular build step.
423
- # If the image is already available in the host's Docker daemon's cache, it
424
- # will be run directly. If not, the host will attempt to pull the image
425
- # first, using the builder service account's credentials if necessary.
426
- # The Docker daemon's cache will already have the latest versions of all of
427
- # the officially supported build steps
428
- # (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon
429
- # will also have cached many of the layers for some popular images, like
430
- # "ubuntu", "debian", but they will be refreshed at the time you attempt to
431
- # use them.
432
- # If you built an image in a previous build step, it will be stored in the
433
- # host's Docker daemon's cache and is available to use as the name for a
434
- # later build step.
435
- # Corresponds to the JSON property `name`
436
- # @return [String]
437
- attr_accessor :name
438
-
439
- # Optional entrypoint to be used instead of the build step image's default
440
- # If unset, the image's default will be used.
441
- # Corresponds to the JSON property `entrypoint`
442
- # @return [String]
443
- attr_accessor :entrypoint
444
-
445
680
  # Optional unique identifier for this build step, used in wait_for to
446
681
  # reference this build step as a dependency.
447
682
  # Corresponds to the JSON property `id`
@@ -454,7 +689,14 @@ module Google
454
689
  # @return [String]
455
690
  attr_accessor :dir
456
691
 
457
- # The ID(s) of the step(s) that this build step depends on.
692
+ # A list of environment variable definitions to be used when running a step.
693
+ # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
694
+ # being given the value "VALUE".
695
+ # Corresponds to the JSON property `env`
696
+ # @return [Array<String>]
697
+ attr_accessor :env
698
+
699
+ # The ID(s) of the step(s) that this build step depends on.
458
700
  # This build step will not start until all the build steps in wait_for
459
701
  # have completed successfully. If wait_for is empty, this build step will
460
702
  # start when all previous build steps in the Build.Steps list have completed
@@ -463,13 +705,6 @@ module Google
463
705
  # @return [Array<String>]
464
706
  attr_accessor :wait_for
465
707
 
466
- # A list of environment variable definitions to be used when running a step.
467
- # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
468
- # being given the value "VALUE".
469
- # Corresponds to the JSON property `env`
470
- # @return [Array<String>]
471
- attr_accessor :env
472
-
473
708
  # A list of arguments that will be presented to the step when it is started.
474
709
  # If the image used to run the step's container has an entrypoint, these args
475
710
  # will be used as arguments to that entrypoint. If the image does not define
@@ -479,19 +714,42 @@ module Google
479
714
  # @return [Array<String>]
480
715
  attr_accessor :args
481
716
 
717
+ # The name of the container image that will run this particular build step.
718
+ # If the image is already available in the host's Docker daemon's cache, it
719
+ # will be run directly. If not, the host will attempt to pull the image
720
+ # first, using the builder service account's credentials if necessary.
721
+ # The Docker daemon's cache will already have the latest versions of all of
722
+ # the officially supported build steps
723
+ # (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon
724
+ # will also have cached many of the layers for some popular images, like
725
+ # "ubuntu", "debian", but they will be refreshed at the time you attempt to
726
+ # use them.
727
+ # If you built an image in a previous build step, it will be stored in the
728
+ # host's Docker daemon's cache and is available to use as the name for a
729
+ # later build step.
730
+ # Corresponds to the JSON property `name`
731
+ # @return [String]
732
+ attr_accessor :name
733
+
734
+ # Optional entrypoint to be used instead of the build step image's default
735
+ # If unset, the image's default will be used.
736
+ # Corresponds to the JSON property `entrypoint`
737
+ # @return [String]
738
+ attr_accessor :entrypoint
739
+
482
740
  def initialize(**args)
483
741
  update!(**args)
484
742
  end
485
743
 
486
744
  # Update properties of this object
487
745
  def update!(**args)
488
- @name = args[:name] if args.key?(:name)
489
- @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
490
746
  @id = args[:id] if args.key?(:id)
491
747
  @dir = args[:dir] if args.key?(:dir)
492
- @wait_for = args[:wait_for] if args.key?(:wait_for)
493
748
  @env = args[:env] if args.key?(:env)
749
+ @wait_for = args[:wait_for] if args.key?(:wait_for)
494
750
  @args = args[:args] if args.key?(:args)
751
+ @name = args[:name] if args.key?(:name)
752
+ @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
495
753
  end
496
754
  end
497
755
 
@@ -500,16 +758,6 @@ module Google
500
758
  class RepoSource
501
759
  include Google::Apis::Core::Hashable
502
760
 
503
- # Name of the tag to build.
504
- # Corresponds to the JSON property `tagName`
505
- # @return [String]
506
- attr_accessor :tag_name
507
-
508
- # Explicit commit SHA to build.
509
- # Corresponds to the JSON property `commitSha`
510
- # @return [String]
511
- attr_accessor :commit_sha
512
-
513
761
  # ID of the project that owns the repo. If omitted, the project ID requesting
514
762
  # the build is assumed.
515
763
  # Corresponds to the JSON property `projectId`
@@ -526,17 +774,27 @@ module Google
526
774
  # @return [String]
527
775
  attr_accessor :branch_name
528
776
 
777
+ # Name of the tag to build.
778
+ # Corresponds to the JSON property `tagName`
779
+ # @return [String]
780
+ attr_accessor :tag_name
781
+
782
+ # Explicit commit SHA to build.
783
+ # Corresponds to the JSON property `commitSha`
784
+ # @return [String]
785
+ attr_accessor :commit_sha
786
+
529
787
  def initialize(**args)
530
788
  update!(**args)
531
789
  end
532
790
 
533
791
  # Update properties of this object
534
792
  def update!(**args)
535
- @tag_name = args[:tag_name] if args.key?(:tag_name)
536
- @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
537
793
  @project_id = args[:project_id] if args.key?(:project_id)
538
794
  @repo_name = args[:repo_name] if args.key?(:repo_name)
539
795
  @branch_name = args[:branch_name] if args.key?(:branch_name)
796
+ @tag_name = args[:tag_name] if args.key?(:tag_name)
797
+ @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
540
798
  end
541
799
  end
542
800
 
@@ -656,264 +914,6 @@ module Google
656
914
  @code = args[:code] if args.key?(:code)
657
915
  end
658
916
  end
659
-
660
- # A generic empty message that you can re-use to avoid defining duplicated
661
- # empty messages in your APIs. A typical example is to use it as the request
662
- # or the response type of an API method. For instance:
663
- # service Foo `
664
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
665
- # `
666
- # The JSON representation for `Empty` is empty JSON object ````.
667
- class Empty
668
- include Google::Apis::Core::Hashable
669
-
670
- def initialize(**args)
671
- update!(**args)
672
- end
673
-
674
- # Update properties of this object
675
- def update!(**args)
676
- end
677
- end
678
-
679
- # Configuration for an automated build in response to source repository
680
- # changes.
681
- class BuildTrigger
682
- include Google::Apis::Core::Hashable
683
-
684
- # Time when the trigger was created.
685
- # @OutputOnly
686
- # Corresponds to the JSON property `createTime`
687
- # @return [String]
688
- attr_accessor :create_time
689
-
690
- # If true, the trigger will never result in a build.
691
- # Corresponds to the JSON property `disabled`
692
- # @return [Boolean]
693
- attr_accessor :disabled
694
- alias_method :disabled?, :disabled
695
-
696
- # RepoSource describes the location of the source in a Google Cloud Source
697
- # Repository.
698
- # Corresponds to the JSON property `triggerTemplate`
699
- # @return [Google::Apis::CloudbuildV1::RepoSource]
700
- attr_accessor :trigger_template
701
-
702
- # Path, from the source root, to a file whose contents is used for the
703
- # template.
704
- # Corresponds to the JSON property `filename`
705
- # @return [String]
706
- attr_accessor :filename
707
-
708
- # Unique identifier of the trigger.
709
- # @OutputOnly
710
- # Corresponds to the JSON property `id`
711
- # @return [String]
712
- attr_accessor :id
713
-
714
- # A build resource in the Container Builder API.
715
- # At a high level, a Build describes where to find source code, how to build
716
- # it (for example, the builder image to run on the source), and what tag to
717
- # apply to the built image when it is pushed to Google Container Registry.
718
- # Fields can include the following variables which will be expanded when the
719
- # build is created:
720
- # - $PROJECT_ID: the project ID of the build.
721
- # - $BUILD_ID: the autogenerated ID of the build.
722
- # - $REPO_NAME: the source repository name specified by RepoSource.
723
- # - $BRANCH_NAME: the branch name specified by RepoSource.
724
- # - $TAG_NAME: the tag name specified by RepoSource.
725
- # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
726
- # resolved from the specified branch or tag.
727
- # Corresponds to the JSON property `build`
728
- # @return [Google::Apis::CloudbuildV1::Build]
729
- attr_accessor :build
730
-
731
- # Human-readable description of this trigger.
732
- # Corresponds to the JSON property `description`
733
- # @return [String]
734
- attr_accessor :description
735
-
736
- def initialize(**args)
737
- update!(**args)
738
- end
739
-
740
- # Update properties of this object
741
- def update!(**args)
742
- @create_time = args[:create_time] if args.key?(:create_time)
743
- @disabled = args[:disabled] if args.key?(:disabled)
744
- @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
745
- @filename = args[:filename] if args.key?(:filename)
746
- @id = args[:id] if args.key?(:id)
747
- @build = args[:build] if args.key?(:build)
748
- @description = args[:description] if args.key?(:description)
749
- end
750
- end
751
-
752
- # A build resource in the Container Builder API.
753
- # At a high level, a Build describes where to find source code, how to build
754
- # it (for example, the builder image to run on the source), and what tag to
755
- # apply to the built image when it is pushed to Google Container Registry.
756
- # Fields can include the following variables which will be expanded when the
757
- # build is created:
758
- # - $PROJECT_ID: the project ID of the build.
759
- # - $BUILD_ID: the autogenerated ID of the build.
760
- # - $REPO_NAME: the source repository name specified by RepoSource.
761
- # - $BRANCH_NAME: the branch name specified by RepoSource.
762
- # - $TAG_NAME: the tag name specified by RepoSource.
763
- # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
764
- # resolved from the specified branch or tag.
765
- class Build
766
- include Google::Apis::Core::Hashable
767
-
768
- # Time at which the request to create the build was received.
769
- # @OutputOnly
770
- # Corresponds to the JSON property `createTime`
771
- # @return [String]
772
- attr_accessor :create_time
773
-
774
- # Provenance of the source. Ways to find the original source, or verify that
775
- # some source was used for this build.
776
- # Corresponds to the JSON property `sourceProvenance`
777
- # @return [Google::Apis::CloudbuildV1::SourceProvenance]
778
- attr_accessor :source_provenance
779
-
780
- # A list of images to be pushed upon the successful completion of all build
781
- # steps.
782
- # The images will be pushed using the builder service account's credentials.
783
- # The digests of the pushed images will be stored in the Build resource's
784
- # results field.
785
- # If any of the images fail to be pushed, the build is marked FAILURE.
786
- # Corresponds to the JSON property `images`
787
- # @return [Array<String>]
788
- attr_accessor :images
789
-
790
- # ID of the project.
791
- # @OutputOnly.
792
- # Corresponds to the JSON property `projectId`
793
- # @return [String]
794
- attr_accessor :project_id
795
-
796
- # URL to logs for this build in Google Cloud Logging.
797
- # @OutputOnly
798
- # Corresponds to the JSON property `logUrl`
799
- # @return [String]
800
- attr_accessor :log_url
801
-
802
- # Time at which execution of the build was finished.
803
- # The difference between finish_time and start_time is the duration of the
804
- # build's execution.
805
- # @OutputOnly
806
- # Corresponds to the JSON property `finishTime`
807
- # @return [String]
808
- attr_accessor :finish_time
809
-
810
- # Source describes the location of the source in a supported storage
811
- # service.
812
- # Corresponds to the JSON property `source`
813
- # @return [Google::Apis::CloudbuildV1::Source]
814
- attr_accessor :source
815
-
816
- # Optional arguments to enable specific features of builds.
817
- # Corresponds to the JSON property `options`
818
- # @return [Google::Apis::CloudbuildV1::BuildOptions]
819
- attr_accessor :options
820
-
821
- # Customer-readable message about the current status.
822
- # @OutputOnly
823
- # Corresponds to the JSON property `statusDetail`
824
- # @return [String]
825
- attr_accessor :status_detail
826
-
827
- # Status of the build.
828
- # @OutputOnly
829
- # Corresponds to the JSON property `status`
830
- # @return [String]
831
- attr_accessor :status
832
-
833
- # Amount of time that this build should be allowed to run, to second
834
- # granularity. If this amount of time elapses, work on the build will cease
835
- # and the build status will be TIMEOUT.
836
- # Default time is ten minutes.
837
- # Corresponds to the JSON property `timeout`
838
- # @return [String]
839
- attr_accessor :timeout
840
-
841
- # Results describes the artifacts created by the build pipeline.
842
- # Corresponds to the JSON property `results`
843
- # @return [Google::Apis::CloudbuildV1::Results]
844
- attr_accessor :results
845
-
846
- # Google Cloud Storage bucket where logs should be written (see
847
- # [Bucket Name
848
- # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
849
- # ).
850
- # Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
851
- # Corresponds to the JSON property `logsBucket`
852
- # @return [String]
853
- attr_accessor :logs_bucket
854
-
855
- # Describes the operations to be performed on the workspace.
856
- # Corresponds to the JSON property `steps`
857
- # @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
858
- attr_accessor :steps
859
-
860
- # The ID of the BuildTrigger that triggered this build, if it was
861
- # triggered automatically.
862
- # @OutputOnly
863
- # Corresponds to the JSON property `buildTriggerId`
864
- # @return [String]
865
- attr_accessor :build_trigger_id
866
-
867
- # Unique identifier of the build.
868
- # @OutputOnly
869
- # Corresponds to the JSON property `id`
870
- # @return [String]
871
- attr_accessor :id
872
-
873
- # Time at which execution of the build was started.
874
- # @OutputOnly
875
- # Corresponds to the JSON property `startTime`
876
- # @return [String]
877
- attr_accessor :start_time
878
-
879
- def initialize(**args)
880
- update!(**args)
881
- end
882
-
883
- # Update properties of this object
884
- def update!(**args)
885
- @create_time = args[:create_time] if args.key?(:create_time)
886
- @source_provenance = args[:source_provenance] if args.key?(:source_provenance)
887
- @images = args[:images] if args.key?(:images)
888
- @project_id = args[:project_id] if args.key?(:project_id)
889
- @log_url = args[:log_url] if args.key?(:log_url)
890
- @finish_time = args[:finish_time] if args.key?(:finish_time)
891
- @source = args[:source] if args.key?(:source)
892
- @options = args[:options] if args.key?(:options)
893
- @status_detail = args[:status_detail] if args.key?(:status_detail)
894
- @status = args[:status] if args.key?(:status)
895
- @timeout = args[:timeout] if args.key?(:timeout)
896
- @results = args[:results] if args.key?(:results)
897
- @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
898
- @steps = args[:steps] if args.key?(:steps)
899
- @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
900
- @id = args[:id] if args.key?(:id)
901
- @start_time = args[:start_time] if args.key?(:start_time)
902
- end
903
- end
904
-
905
- # Request to cancel an ongoing build.
906
- class CancelBuildRequest
907
- include Google::Apis::Core::Hashable
908
-
909
- def initialize(**args)
910
- update!(**args)
911
- end
912
-
913
- # Update properties of this object
914
- def update!(**args)
915
- end
916
- end
917
917
  end
918
918
  end
919
919
  end