google-api-client 0.9.8 → 0.9.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/Gemfile +9 -1
- data/README.md +10 -2
- data/api_names.yaml +61 -110
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +160 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +46 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +371 -1
- data/generated/google/apis/analytics_v3/representations.rb +135 -0
- data/generated/google/apis/analytics_v3/service.rb +218 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +722 -48
- data/generated/google/apis/androidenterprise_v1/representations.rb +305 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1180 -146
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +430 -288
- data/generated/google/apis/appengine_v1beta5/representations.rb +84 -10
- data/generated/google/apis/appengine_v1beta5/service.rb +285 -25
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +254 -6
- data/generated/google/apis/bigquery_v2/representations.rb +85 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -2
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +77 -0
- data/generated/google/apis/books_v1/representations.rb +34 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +16 -4
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
- data/generated/google/apis/civicinfo_v2/service.rb +8 -2
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +176 -37
- data/generated/google/apis/classroom_v1/representations.rb +73 -9
- data/generated/google/apis/classroom_v1/service.rb +392 -37
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +320 -12
- data/generated/google/apis/cloudbuild_v1/representations.rb +136 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1620 -199
- data/generated/google/apis/compute_beta/representations.rb +563 -0
- data/generated/google/apis/compute_beta/service.rb +5123 -2690
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1717 -295
- data/generated/google/apis/compute_v1/representations.rb +536 -0
- data/generated/google/apis/compute_v1/service.rb +2038 -1041
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +709 -1
- data/generated/google/apis/content_v2/representations.rb +319 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +162 -50
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +11 -3
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +8 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +36 -16
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +4 -1
- data/generated/google/apis/fitness_v1.rb +8 -2
- data/generated/google/apis/fitness_v1/classes.rb +64 -6
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +2 -4
- data/generated/google/apis/genomics_v1/classes.rb +111 -9
- data/generated/google/apis/genomics_v1/representations.rb +36 -0
- data/generated/google/apis/genomics_v1/service.rb +4 -7
- data/generated/google/apis/gmail_v1.rb +7 -1
- data/generated/google/apis/gmail_v1/classes.rb +540 -0
- data/generated/google/apis/gmail_v1/representations.rb +213 -0
- data/generated/google/apis/gmail_v1/service.rb +898 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +154 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +596 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +154 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1328 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +711 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +35 -0
- data/generated/google/apis/sheets_v4/representations.rb +16 -0
- data/generated/google/apis/sheets_v4/service.rb +55 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +521 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +219 -0
- data/generated/google/apis/speech_v1beta1/service.rb +268 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +26 -8
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +19 -10
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +10 -9
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +163 -2
- data/generated/google/apis/youtube_v3/representations.rb +82 -0
- data/generated/google/apis/youtube_v3/service.rb +6 -2
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/base_service.rb +10 -4
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +2 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/sync.rb +71 -0
- metadata +43 -13
@@ -127,6 +127,12 @@ module Google
|
|
127
127
|
# @return [Google::Apis::CloudbuildV1::StorageSource]
|
128
128
|
attr_accessor :storage_source
|
129
129
|
|
130
|
+
# RepoSource describes the location of the source in a Google Cloud Source
|
131
|
+
# Repository.
|
132
|
+
# Corresponds to the JSON property `repoSource`
|
133
|
+
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
134
|
+
attr_accessor :repo_source
|
135
|
+
|
130
136
|
def initialize(**args)
|
131
137
|
update!(**args)
|
132
138
|
end
|
@@ -134,6 +140,48 @@ module Google
|
|
134
140
|
# Update properties of this object
|
135
141
|
def update!(**args)
|
136
142
|
@storage_source = args[:storage_source] if args.key?(:storage_source)
|
143
|
+
@repo_source = args[:repo_source] if args.key?(:repo_source)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# Provenance of the source. Ways to find the original source, or verify that
|
148
|
+
# some source was used for this build.
|
149
|
+
class SourceProvenance
|
150
|
+
include Google::Apis::Core::Hashable
|
151
|
+
|
152
|
+
# RepoSource describes the location of the source in a Google Cloud Source
|
153
|
+
# Repository.
|
154
|
+
# Corresponds to the JSON property `resolvedRepoSource`
|
155
|
+
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
156
|
+
attr_accessor :resolved_repo_source
|
157
|
+
|
158
|
+
# StorageSource describes the location of the source in an archive file in
|
159
|
+
# Google Cloud Storage.
|
160
|
+
# Corresponds to the JSON property `resolvedStorageSource`
|
161
|
+
# @return [Google::Apis::CloudbuildV1::StorageSource]
|
162
|
+
attr_accessor :resolved_storage_source
|
163
|
+
|
164
|
+
# Hash(es) of the build source, which can be used to verify that the original
|
165
|
+
# source integrity was maintained in the build. Note that FileHashes will
|
166
|
+
# only be populated if BuildOptions has requested a SourceProvenanceHash.
|
167
|
+
# The keys to this map are file paths used as build source and the values
|
168
|
+
# contain the hash values for those files.
|
169
|
+
# If the build source came in a single package such as a gzipped tarfile
|
170
|
+
# (.tar.gz), the FileHash will be for the single path to that file.
|
171
|
+
# @OutputOnly
|
172
|
+
# Corresponds to the JSON property `fileHashes`
|
173
|
+
# @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
|
174
|
+
attr_accessor :file_hashes
|
175
|
+
|
176
|
+
def initialize(**args)
|
177
|
+
update!(**args)
|
178
|
+
end
|
179
|
+
|
180
|
+
# Update properties of this object
|
181
|
+
def update!(**args)
|
182
|
+
@resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
|
183
|
+
@resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
|
184
|
+
@file_hashes = args[:file_hashes] if args.key?(:file_hashes)
|
137
185
|
end
|
138
186
|
end
|
139
187
|
|
@@ -234,6 +282,70 @@ module Google
|
|
234
282
|
end
|
235
283
|
end
|
236
284
|
|
285
|
+
# Configuration for an automated build in response to source repository
|
286
|
+
# changes.
|
287
|
+
class BuildTrigger
|
288
|
+
include Google::Apis::Core::Hashable
|
289
|
+
|
290
|
+
# Unique identifier of the trigger.
|
291
|
+
# @OutputOnly
|
292
|
+
# Corresponds to the JSON property `id`
|
293
|
+
# @return [String]
|
294
|
+
attr_accessor :id
|
295
|
+
|
296
|
+
# Human-readable description of this trigger.
|
297
|
+
# Corresponds to the JSON property `description`
|
298
|
+
# @return [String]
|
299
|
+
attr_accessor :description
|
300
|
+
|
301
|
+
# RepoSource describes the location of the source in a Google Cloud Source
|
302
|
+
# Repository.
|
303
|
+
# Corresponds to the JSON property `triggerTemplate`
|
304
|
+
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
305
|
+
attr_accessor :trigger_template
|
306
|
+
|
307
|
+
# If true, the trigger will never result in a build.
|
308
|
+
# Corresponds to the JSON property `disabled`
|
309
|
+
# @return [Boolean]
|
310
|
+
attr_accessor :disabled
|
311
|
+
alias_method :disabled?, :disabled
|
312
|
+
|
313
|
+
# Time when the trigger was created.
|
314
|
+
# @OutputOnly
|
315
|
+
# Corresponds to the JSON property `createTime`
|
316
|
+
# @return [String]
|
317
|
+
attr_accessor :create_time
|
318
|
+
|
319
|
+
# Path, from the source root, to a file whose contents is used for the
|
320
|
+
# template.
|
321
|
+
# Corresponds to the JSON property `filename`
|
322
|
+
# @return [String]
|
323
|
+
attr_accessor :filename
|
324
|
+
|
325
|
+
# A build resource in the Container Builder API.
|
326
|
+
# At a high level, a Build describes where to find source code, how to build
|
327
|
+
# it (for example, the builder image to run on the source), and what tag to
|
328
|
+
# apply to the built image when it is pushed to Google Container Registry.
|
329
|
+
# Corresponds to the JSON property `build`
|
330
|
+
# @return [Google::Apis::CloudbuildV1::Build]
|
331
|
+
attr_accessor :build
|
332
|
+
|
333
|
+
def initialize(**args)
|
334
|
+
update!(**args)
|
335
|
+
end
|
336
|
+
|
337
|
+
# Update properties of this object
|
338
|
+
def update!(**args)
|
339
|
+
@id = args[:id] if args.key?(:id)
|
340
|
+
@description = args[:description] if args.key?(:description)
|
341
|
+
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
|
342
|
+
@disabled = args[:disabled] if args.key?(:disabled)
|
343
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
344
|
+
@filename = args[:filename] if args.key?(:filename)
|
345
|
+
@build = args[:build] if args.key?(:build)
|
346
|
+
end
|
347
|
+
end
|
348
|
+
|
237
349
|
# BuiltImage describes an image built by the pipeline.
|
238
350
|
class BuiltImage
|
239
351
|
include Google::Apis::Core::Hashable
|
@@ -260,6 +372,31 @@ module Google
|
|
260
372
|
end
|
261
373
|
end
|
262
374
|
|
375
|
+
# Container message for hash values.
|
376
|
+
class HashProp
|
377
|
+
include Google::Apis::Core::Hashable
|
378
|
+
|
379
|
+
# The hash value.
|
380
|
+
# Corresponds to the JSON property `value`
|
381
|
+
# @return [String]
|
382
|
+
attr_accessor :value
|
383
|
+
|
384
|
+
# The type of hash that was performed.
|
385
|
+
# Corresponds to the JSON property `type`
|
386
|
+
# @return [String]
|
387
|
+
attr_accessor :type
|
388
|
+
|
389
|
+
def initialize(**args)
|
390
|
+
update!(**args)
|
391
|
+
end
|
392
|
+
|
393
|
+
# Update properties of this object
|
394
|
+
def update!(**args)
|
395
|
+
@value = args[:value] if args.key?(:value)
|
396
|
+
@type = args[:type] if args.key?(:type)
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
263
400
|
# StorageSource describes the location of the source in an archive file in
|
264
401
|
# Google Cloud Storage.
|
265
402
|
class StorageSource
|
@@ -307,6 +444,11 @@ module Google
|
|
307
444
|
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
|
308
445
|
attr_accessor :images
|
309
446
|
|
447
|
+
# List of build step digests, in order corresponding to build step indices.
|
448
|
+
# Corresponds to the JSON property `buildStepImages`
|
449
|
+
# @return [Array<String>]
|
450
|
+
attr_accessor :build_step_images
|
451
|
+
|
310
452
|
def initialize(**args)
|
311
453
|
update!(**args)
|
312
454
|
end
|
@@ -314,6 +456,7 @@ module Google
|
|
314
456
|
# Update properties of this object
|
315
457
|
def update!(**args)
|
316
458
|
@images = args[:images] if args.key?(:images)
|
459
|
+
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
|
317
460
|
end
|
318
461
|
end
|
319
462
|
|
@@ -330,6 +473,12 @@ module Google
|
|
330
473
|
# @return [String]
|
331
474
|
attr_accessor :id
|
332
475
|
|
476
|
+
# Provenance of the source. Ways to find the original source, or verify that
|
477
|
+
# some source was used for this build.
|
478
|
+
# Corresponds to the JSON property `sourceProvenance`
|
479
|
+
# @return [Google::Apis::CloudbuildV1::SourceProvenance]
|
480
|
+
attr_accessor :source_provenance
|
481
|
+
|
333
482
|
# Results describes the artifacts created by the build pipeline.
|
334
483
|
# Corresponds to the JSON property `results`
|
335
484
|
# @return [Google::Apis::CloudbuildV1::Results]
|
@@ -341,6 +490,11 @@ module Google
|
|
341
490
|
# @return [String]
|
342
491
|
attr_accessor :status
|
343
492
|
|
493
|
+
# Optional arguments to enable specific features of builds.
|
494
|
+
# Corresponds to the JSON property `options`
|
495
|
+
# @return [Google::Apis::CloudbuildV1::BuildOptions]
|
496
|
+
attr_accessor :options
|
497
|
+
|
344
498
|
# Time at which execution of the build was finished.
|
345
499
|
# @OutputOnly
|
346
500
|
# Corresponds to the JSON property `finishTime`
|
@@ -372,6 +526,12 @@ module Google
|
|
372
526
|
# @return [String]
|
373
527
|
attr_accessor :create_time
|
374
528
|
|
529
|
+
# URL to logs for this build in Google Cloud Logging.
|
530
|
+
# @OutputOnly
|
531
|
+
# Corresponds to the JSON property `logUrl`
|
532
|
+
# @return [String]
|
533
|
+
attr_accessor :log_url
|
534
|
+
|
375
535
|
# Customer-readable message about the current status.
|
376
536
|
# @OutputOnly
|
377
537
|
# Corresponds to the JSON property `statusDetail`
|
@@ -414,13 +574,16 @@ module Google
|
|
414
574
|
# Update properties of this object
|
415
575
|
def update!(**args)
|
416
576
|
@id = args[:id] if args.key?(:id)
|
577
|
+
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
|
417
578
|
@results = args[:results] if args.key?(:results)
|
418
579
|
@status = args[:status] if args.key?(:status)
|
580
|
+
@options = args[:options] if args.key?(:options)
|
419
581
|
@finish_time = args[:finish_time] if args.key?(:finish_time)
|
420
582
|
@timeout = args[:timeout] if args.key?(:timeout)
|
421
583
|
@steps = args[:steps] if args.key?(:steps)
|
422
584
|
@source = args[:source] if args.key?(:source)
|
423
585
|
@create_time = args[:create_time] if args.key?(:create_time)
|
586
|
+
@log_url = args[:log_url] if args.key?(:log_url)
|
424
587
|
@status_detail = args[:status_detail] if args.key?(:status_detail)
|
425
588
|
@images = args[:images] if args.key?(:images)
|
426
589
|
@start_time = args[:start_time] if args.key?(:start_time)
|
@@ -429,6 +592,25 @@ module Google
|
|
429
592
|
end
|
430
593
|
end
|
431
594
|
|
595
|
+
# Response containing existing BuildTriggers.
|
596
|
+
class ListBuildTriggersResponse
|
597
|
+
include Google::Apis::Core::Hashable
|
598
|
+
|
599
|
+
# BuildTriggers for the project, sorted by create_time descending.
|
600
|
+
# Corresponds to the JSON property `triggers`
|
601
|
+
# @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
|
602
|
+
attr_accessor :triggers
|
603
|
+
|
604
|
+
def initialize(**args)
|
605
|
+
update!(**args)
|
606
|
+
end
|
607
|
+
|
608
|
+
# Update properties of this object
|
609
|
+
def update!(**args)
|
610
|
+
@triggers = args[:triggers] if args.key?(:triggers)
|
611
|
+
end
|
612
|
+
end
|
613
|
+
|
432
614
|
# Request to cancel an ongoing build.
|
433
615
|
class CancelBuildRequest
|
434
616
|
include Google::Apis::Core::Hashable
|
@@ -442,6 +624,26 @@ module Google
|
|
442
624
|
end
|
443
625
|
end
|
444
626
|
|
627
|
+
# Container message for hashes of byte content of files, used in
|
628
|
+
# SourceProvenance messages to verify integrity of source input to the build.
|
629
|
+
class FileHashes
|
630
|
+
include Google::Apis::Core::Hashable
|
631
|
+
|
632
|
+
# Collection of file hashes.
|
633
|
+
# Corresponds to the JSON property `fileHash`
|
634
|
+
# @return [Array<Google::Apis::CloudbuildV1::HashProp>]
|
635
|
+
attr_accessor :file_hash
|
636
|
+
|
637
|
+
def initialize(**args)
|
638
|
+
update!(**args)
|
639
|
+
end
|
640
|
+
|
641
|
+
# Update properties of this object
|
642
|
+
def update!(**args)
|
643
|
+
@file_hash = args[:file_hash] if args.key?(:file_hash)
|
644
|
+
end
|
645
|
+
end
|
646
|
+
|
445
647
|
# The response message for Operations.ListOperations.
|
446
648
|
class ListOperationsResponse
|
447
649
|
include Google::Apis::Core::Hashable
|
@@ -467,31 +669,91 @@ module Google
|
|
467
669
|
end
|
468
670
|
end
|
469
671
|
|
672
|
+
# RepoSource describes the location of the source in a Google Cloud Source
|
673
|
+
# Repository.
|
674
|
+
class RepoSource
|
675
|
+
include Google::Apis::Core::Hashable
|
676
|
+
|
677
|
+
# Name of the repo. If omitted, the name "default" is assumed.
|
678
|
+
# Corresponds to the JSON property `repoName`
|
679
|
+
# @return [String]
|
680
|
+
attr_accessor :repo_name
|
681
|
+
|
682
|
+
# Name of the tag to build.
|
683
|
+
# Corresponds to the JSON property `tagName`
|
684
|
+
# @return [String]
|
685
|
+
attr_accessor :tag_name
|
686
|
+
|
687
|
+
# ID of the project that owns the repo. If omitted, the project ID requesting
|
688
|
+
# the build is assumed.
|
689
|
+
# Corresponds to the JSON property `projectId`
|
690
|
+
# @return [String]
|
691
|
+
attr_accessor :project_id
|
692
|
+
|
693
|
+
# Name of the branch to build.
|
694
|
+
# Corresponds to the JSON property `branchName`
|
695
|
+
# @return [String]
|
696
|
+
attr_accessor :branch_name
|
697
|
+
|
698
|
+
# Explicit commit SHA to build.
|
699
|
+
# Corresponds to the JSON property `commitSha`
|
700
|
+
# @return [String]
|
701
|
+
attr_accessor :commit_sha
|
702
|
+
|
703
|
+
def initialize(**args)
|
704
|
+
update!(**args)
|
705
|
+
end
|
706
|
+
|
707
|
+
# Update properties of this object
|
708
|
+
def update!(**args)
|
709
|
+
@repo_name = args[:repo_name] if args.key?(:repo_name)
|
710
|
+
@tag_name = args[:tag_name] if args.key?(:tag_name)
|
711
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
712
|
+
@branch_name = args[:branch_name] if args.key?(:branch_name)
|
713
|
+
@commit_sha = args[:commit_sha] if args.key?(:commit_sha)
|
714
|
+
end
|
715
|
+
end
|
716
|
+
|
470
717
|
# BuildStep describes a step to perform in the build pipeline.
|
471
718
|
class BuildStep
|
472
719
|
include Google::Apis::Core::Hashable
|
473
720
|
|
721
|
+
# Optional unique identifier for this build step, used in wait_for to
|
722
|
+
# reference this build step as a dependency.
|
723
|
+
# Corresponds to the JSON property `id`
|
724
|
+
# @return [String]
|
725
|
+
attr_accessor :id
|
726
|
+
|
727
|
+
# Additional environment variables to set for this step's container.
|
728
|
+
# Corresponds to the JSON property `env`
|
729
|
+
# @return [Array<String>]
|
730
|
+
attr_accessor :env
|
731
|
+
|
732
|
+
# The ID(s) of the step(s) that this build step depends on.
|
733
|
+
# This build step will not start until all the build steps in wait_for
|
734
|
+
# have completed successfully. If wait_for is empty, this build step will
|
735
|
+
# start when all previous build steps in the Build.Steps list have completed
|
736
|
+
# successfully.
|
737
|
+
# Corresponds to the JSON property `waitFor`
|
738
|
+
# @return [Array<String>]
|
739
|
+
attr_accessor :wait_for
|
740
|
+
|
474
741
|
# Command-line arguments to use when running this step's container.
|
475
742
|
# Corresponds to the JSON property `args`
|
476
743
|
# @return [Array<String>]
|
477
744
|
attr_accessor :args
|
478
745
|
|
479
|
-
# Working directory (relative to project source root) to use when running
|
480
|
-
# this operation's container.
|
481
|
-
# Corresponds to the JSON property `dir`
|
482
|
-
# @return [String]
|
483
|
-
attr_accessor :dir
|
484
|
-
|
485
746
|
# Name of the container image to use for creating this stage in the
|
486
747
|
# pipeline, as presented to `docker pull`.
|
487
748
|
# Corresponds to the JSON property `name`
|
488
749
|
# @return [String]
|
489
750
|
attr_accessor :name
|
490
751
|
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
|
752
|
+
# Working directory (relative to project source root) to use when running
|
753
|
+
# this operation's container.
|
754
|
+
# Corresponds to the JSON property `dir`
|
755
|
+
# @return [String]
|
756
|
+
attr_accessor :dir
|
495
757
|
|
496
758
|
def initialize(**args)
|
497
759
|
update!(**args)
|
@@ -499,10 +761,56 @@ module Google
|
|
499
761
|
|
500
762
|
# Update properties of this object
|
501
763
|
def update!(**args)
|
764
|
+
@id = args[:id] if args.key?(:id)
|
765
|
+
@env = args[:env] if args.key?(:env)
|
766
|
+
@wait_for = args[:wait_for] if args.key?(:wait_for)
|
502
767
|
@args = args[:args] if args.key?(:args)
|
503
|
-
@dir = args[:dir] if args.key?(:dir)
|
504
768
|
@name = args[:name] if args.key?(:name)
|
505
|
-
@
|
769
|
+
@dir = args[:dir] if args.key?(:dir)
|
770
|
+
end
|
771
|
+
end
|
772
|
+
|
773
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
774
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
775
|
+
# or the response type of an API method. For instance:
|
776
|
+
# service Foo `
|
777
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
778
|
+
# `
|
779
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
780
|
+
class Empty
|
781
|
+
include Google::Apis::Core::Hashable
|
782
|
+
|
783
|
+
def initialize(**args)
|
784
|
+
update!(**args)
|
785
|
+
end
|
786
|
+
|
787
|
+
# Update properties of this object
|
788
|
+
def update!(**args)
|
789
|
+
end
|
790
|
+
end
|
791
|
+
|
792
|
+
# Optional arguments to enable specific features of builds.
|
793
|
+
class BuildOptions
|
794
|
+
include Google::Apis::Core::Hashable
|
795
|
+
|
796
|
+
# Requested hash for SourceProvenance.
|
797
|
+
# Corresponds to the JSON property `sourceProvenanceHash`
|
798
|
+
# @return [Array<String>]
|
799
|
+
attr_accessor :source_provenance_hash
|
800
|
+
|
801
|
+
# Requested verifiability options.
|
802
|
+
# Corresponds to the JSON property `requestedVerifyOption`
|
803
|
+
# @return [String]
|
804
|
+
attr_accessor :requested_verify_option
|
805
|
+
|
806
|
+
def initialize(**args)
|
807
|
+
update!(**args)
|
808
|
+
end
|
809
|
+
|
810
|
+
# Update properties of this object
|
811
|
+
def update!(**args)
|
812
|
+
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
|
813
|
+
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
|
506
814
|
end
|
507
815
|
end
|
508
816
|
|
@@ -40,18 +40,36 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class SourceProvenance
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
43
49
|
class Operation
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
51
|
|
46
52
|
include Google::Apis::Core::JsonObjectSupport
|
47
53
|
end
|
48
54
|
|
55
|
+
class BuildTrigger
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
49
61
|
class BuiltImage
|
50
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
63
|
|
52
64
|
include Google::Apis::Core::JsonObjectSupport
|
53
65
|
end
|
54
66
|
|
67
|
+
class HashProp
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
55
73
|
class StorageSource
|
56
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
75
|
|
@@ -70,24 +88,54 @@ module Google
|
|
70
88
|
include Google::Apis::Core::JsonObjectSupport
|
71
89
|
end
|
72
90
|
|
91
|
+
class ListBuildTriggersResponse
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
73
97
|
class CancelBuildRequest
|
74
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
99
|
|
76
100
|
include Google::Apis::Core::JsonObjectSupport
|
77
101
|
end
|
78
102
|
|
103
|
+
class FileHashes
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
79
109
|
class ListOperationsResponse
|
80
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
111
|
|
82
112
|
include Google::Apis::Core::JsonObjectSupport
|
83
113
|
end
|
84
114
|
|
115
|
+
class RepoSource
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
85
121
|
class BuildStep
|
86
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
123
|
|
88
124
|
include Google::Apis::Core::JsonObjectSupport
|
89
125
|
end
|
90
126
|
|
127
|
+
class Empty
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class BuildOptions
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
91
139
|
class ListBuildsResponse
|
92
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
141
|
|
@@ -116,6 +164,20 @@ module Google
|
|
116
164
|
class Representation < Google::Apis::Core::JsonRepresentation
|
117
165
|
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
118
166
|
|
167
|
+
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
168
|
+
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
class SourceProvenance
|
173
|
+
# @private
|
174
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
175
|
+
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
176
|
+
|
177
|
+
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
178
|
+
|
179
|
+
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
180
|
+
|
119
181
|
end
|
120
182
|
end
|
121
183
|
|
@@ -131,6 +193,21 @@ module Google
|
|
131
193
|
end
|
132
194
|
end
|
133
195
|
|
196
|
+
class BuildTrigger
|
197
|
+
# @private
|
198
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
199
|
+
property :id, as: 'id'
|
200
|
+
property :description, as: 'description'
|
201
|
+
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
202
|
+
|
203
|
+
property :disabled, as: 'disabled'
|
204
|
+
property :create_time, as: 'createTime'
|
205
|
+
property :filename, as: 'filename'
|
206
|
+
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
207
|
+
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
134
211
|
class BuiltImage
|
135
212
|
# @private
|
136
213
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -139,6 +216,14 @@ module Google
|
|
139
216
|
end
|
140
217
|
end
|
141
218
|
|
219
|
+
class HashProp
|
220
|
+
# @private
|
221
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
222
|
+
property :value, :base64 => true, as: 'value'
|
223
|
+
property :type, as: 'type'
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
142
227
|
class StorageSource
|
143
228
|
# @private
|
144
229
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -153,6 +238,7 @@ module Google
|
|
153
238
|
class Representation < Google::Apis::Core::JsonRepresentation
|
154
239
|
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
|
155
240
|
|
241
|
+
collection :build_step_images, as: 'buildStepImages'
|
156
242
|
end
|
157
243
|
end
|
158
244
|
|
@@ -160,9 +246,13 @@ module Google
|
|
160
246
|
# @private
|
161
247
|
class Representation < Google::Apis::Core::JsonRepresentation
|
162
248
|
property :id, as: 'id'
|
249
|
+
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
250
|
+
|
163
251
|
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
164
252
|
|
165
253
|
property :status, as: 'status'
|
254
|
+
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
255
|
+
|
166
256
|
property :finish_time, as: 'finishTime'
|
167
257
|
property :timeout, as: 'timeout'
|
168
258
|
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
@@ -170,6 +260,7 @@ module Google
|
|
170
260
|
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
171
261
|
|
172
262
|
property :create_time, as: 'createTime'
|
263
|
+
property :log_url, as: 'logUrl'
|
173
264
|
property :status_detail, as: 'statusDetail'
|
174
265
|
collection :images, as: 'images'
|
175
266
|
property :start_time, as: 'startTime'
|
@@ -178,12 +269,28 @@ module Google
|
|
178
269
|
end
|
179
270
|
end
|
180
271
|
|
272
|
+
class ListBuildTriggersResponse
|
273
|
+
# @private
|
274
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
275
|
+
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
276
|
+
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
181
280
|
class CancelBuildRequest
|
182
281
|
# @private
|
183
282
|
class Representation < Google::Apis::Core::JsonRepresentation
|
184
283
|
end
|
185
284
|
end
|
186
285
|
|
286
|
+
class FileHashes
|
287
|
+
# @private
|
288
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
289
|
+
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
|
290
|
+
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
187
294
|
class ListOperationsResponse
|
188
295
|
# @private
|
189
296
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -193,13 +300,40 @@ module Google
|
|
193
300
|
end
|
194
301
|
end
|
195
302
|
|
303
|
+
class RepoSource
|
304
|
+
# @private
|
305
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
306
|
+
property :repo_name, as: 'repoName'
|
307
|
+
property :tag_name, as: 'tagName'
|
308
|
+
property :project_id, as: 'projectId'
|
309
|
+
property :branch_name, as: 'branchName'
|
310
|
+
property :commit_sha, as: 'commitSha'
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
196
314
|
class BuildStep
|
197
315
|
# @private
|
198
316
|
class Representation < Google::Apis::Core::JsonRepresentation
|
317
|
+
property :id, as: 'id'
|
318
|
+
collection :env, as: 'env'
|
319
|
+
collection :wait_for, as: 'waitFor'
|
199
320
|
collection :args, as: 'args'
|
200
|
-
property :dir, as: 'dir'
|
201
321
|
property :name, as: 'name'
|
202
|
-
|
322
|
+
property :dir, as: 'dir'
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
326
|
+
class Empty
|
327
|
+
# @private
|
328
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
class BuildOptions
|
333
|
+
# @private
|
334
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
335
|
+
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
336
|
+
property :requested_verify_option, as: 'requestedVerifyOption'
|
203
337
|
end
|
204
338
|
end
|
205
339
|
|