google-api-client 0.9.28 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +10 -0
  4. data/api_names.yaml +36512 -36326
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/analyticsreporting_v4.rb +3 -3
  12. data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
  13. data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
  14. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
  16. data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/calendar_v3.rb +1 -1
  19. data/generated/google/apis/classroom_v1.rb +22 -25
  20. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  21. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  22. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
  26. data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
  27. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  28. data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
  29. data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
  30. data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
  31. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
  33. data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
  34. data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
  35. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
  37. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
  38. data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
  41. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  42. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
  43. data/generated/google/apis/cloudtrace_v1.rb +8 -8
  44. data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
  45. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  46. data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
  47. data/generated/google/apis/compute_beta.rb +1 -1
  48. data/generated/google/apis/compute_beta/classes.rb +406 -31
  49. data/generated/google/apis/compute_beta/representations.rb +154 -0
  50. data/generated/google/apis/compute_beta/service.rb +262 -9
  51. data/generated/google/apis/compute_v1.rb +1 -1
  52. data/generated/google/apis/compute_v1/classes.rb +17 -20
  53. data/generated/google/apis/content_v2.rb +1 -1
  54. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  55. data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
  56. data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
  57. data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
  58. data/generated/google/apis/dataproc_v1.rb +2 -2
  59. data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
  60. data/generated/google/apis/dataproc_v1/representations.rb +262 -244
  61. data/generated/google/apis/dataproc_v1/service.rb +298 -243
  62. data/generated/google/apis/datastore_v1.rb +4 -4
  63. data/generated/google/apis/datastore_v1/classes.rb +728 -728
  64. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  65. data/generated/google/apis/datastore_v1/service.rb +68 -68
  66. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v3.rb +1 -1
  69. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  70. data/generated/google/apis/games_management_v1management.rb +1 -1
  71. data/generated/google/apis/games_v1.rb +1 -1
  72. data/generated/google/apis/genomics_v1.rb +7 -7
  73. data/generated/google/apis/genomics_v1/classes.rb +932 -932
  74. data/generated/google/apis/genomics_v1/representations.rb +205 -205
  75. data/generated/google/apis/genomics_v1/service.rb +1228 -1228
  76. data/generated/google/apis/gmail_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +440 -440
  78. data/generated/google/apis/iam_v1/representations.rb +94 -94
  79. data/generated/google/apis/iam_v1/service.rb +60 -60
  80. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  81. data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
  82. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  83. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  84. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  85. data/generated/google/apis/kgsearch_v1/service.rb +21 -21
  86. data/generated/google/apis/language_v1beta1.rb +1 -1
  87. data/generated/google/apis/language_v1beta1/classes.rb +232 -232
  88. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  89. data/generated/google/apis/logging_v2beta1.rb +1 -1
  90. data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
  91. data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
  92. data/generated/google/apis/logging_v2beta1/service.rb +331 -306
  93. data/generated/google/apis/monitoring_v3.rb +1 -1
  94. data/generated/google/apis/monitoring_v3/classes.rb +253 -253
  95. data/generated/google/apis/monitoring_v3/representations.rb +58 -58
  96. data/generated/google/apis/monitoring_v3/service.rb +135 -135
  97. data/generated/google/apis/people_v1.rb +15 -16
  98. data/generated/google/apis/people_v1/classes.rb +985 -855
  99. data/generated/google/apis/people_v1/representations.rb +227 -220
  100. data/generated/google/apis/people_v1/service.rb +58 -52
  101. data/generated/google/apis/plus_domains_v1.rb +1 -1
  102. data/generated/google/apis/plus_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/classes.rb +257 -257
  105. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  106. data/generated/google/apis/pubsub_v1/service.rb +390 -390
  107. data/generated/google/apis/script_v1.rb +17 -17
  108. data/generated/google/apis/script_v1/classes.rb +149 -141
  109. data/generated/google/apis/script_v1/representations.rb +26 -27
  110. data/generated/google/apis/script_v1/service.rb +9 -8
  111. data/generated/google/apis/sheets_v4.rb +1 -1
  112. data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
  113. data/generated/google/apis/sheets_v4/representations.rb +850 -834
  114. data/generated/google/apis/sheets_v4/service.rb +192 -192
  115. data/generated/google/apis/slides_v1.rb +1 -1
  116. data/generated/google/apis/slides_v1/classes.rb +927 -800
  117. data/generated/google/apis/slides_v1/representations.rb +253 -211
  118. data/generated/google/apis/speech_v1beta1.rb +1 -1
  119. data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
  120. data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
  121. data/generated/google/apis/speech_v1beta1/service.rb +51 -54
  122. data/generated/google/apis/storage_v1.rb +1 -1
  123. data/generated/google/apis/vision_v1.rb +1 -1
  124. data/generated/google/apis/vision_v1/classes.rb +888 -885
  125. data/generated/google/apis/vision_v1/representations.rb +139 -139
  126. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  127. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
  128. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  129. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  130. data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
  131. data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
  132. data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
  133. data/google-api-client.gemspec +2 -2
  134. data/lib/google/apis/core/api_command.rb +1 -1
  135. data/lib/google/apis/core/json_representation.rb +2 -2
  136. data/lib/google/apis/version.rb +1 -1
  137. data/samples/cli/lib/samples/you_tube.rb +4 -1
  138. metadata +36 -30
@@ -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 = '20170202'
28
+ REVISION = '20170213'
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,6 +22,202 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1
24
24
 
25
+ # BuiltImage describes an image built by the pipeline.
26
+ class BuiltImage
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Name used to push the container image to Google Container Registry, as
30
+ # presented to `docker push`.
31
+ # Corresponds to the JSON property `name`
32
+ # @return [String]
33
+ attr_accessor :name
34
+
35
+ # Docker Registry 2.0 digest.
36
+ # Corresponds to the JSON property `digest`
37
+ # @return [String]
38
+ attr_accessor :digest
39
+
40
+ def initialize(**args)
41
+ update!(**args)
42
+ end
43
+
44
+ # Update properties of this object
45
+ def update!(**args)
46
+ @name = args[:name] if args.key?(:name)
47
+ @digest = args[:digest] if args.key?(:digest)
48
+ end
49
+ end
50
+
51
+ # RepoSource describes the location of the source in a Google Cloud Source
52
+ # Repository.
53
+ class RepoSource
54
+ include Google::Apis::Core::Hashable
55
+
56
+ # Name of the tag to build.
57
+ # Corresponds to the JSON property `tagName`
58
+ # @return [String]
59
+ attr_accessor :tag_name
60
+
61
+ # Explicit commit SHA to build.
62
+ # Corresponds to the JSON property `commitSha`
63
+ # @return [String]
64
+ attr_accessor :commit_sha
65
+
66
+ # ID of the project that owns the repo. If omitted, the project ID requesting
67
+ # the build is assumed.
68
+ # Corresponds to the JSON property `projectId`
69
+ # @return [String]
70
+ attr_accessor :project_id
71
+
72
+ # Name of the repo. If omitted, the name "default" is assumed.
73
+ # Corresponds to the JSON property `repoName`
74
+ # @return [String]
75
+ attr_accessor :repo_name
76
+
77
+ # Name of the branch to build.
78
+ # Corresponds to the JSON property `branchName`
79
+ # @return [String]
80
+ attr_accessor :branch_name
81
+
82
+ def initialize(**args)
83
+ update!(**args)
84
+ end
85
+
86
+ # Update properties of this object
87
+ def update!(**args)
88
+ @tag_name = args[:tag_name] if args.key?(:tag_name)
89
+ @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
90
+ @project_id = args[:project_id] if args.key?(:project_id)
91
+ @repo_name = args[:repo_name] if args.key?(:repo_name)
92
+ @branch_name = args[:branch_name] if args.key?(:branch_name)
93
+ end
94
+ end
95
+
96
+ # BuildStep describes a step to perform in the build pipeline.
97
+ class BuildStep
98
+ include Google::Apis::Core::Hashable
99
+
100
+ # Optional entrypoint to be used instead of the build step image's default
101
+ # If unset, the image's default will be used.
102
+ # Corresponds to the JSON property `entrypoint`
103
+ # @return [String]
104
+ attr_accessor :entrypoint
105
+
106
+ # Optional unique identifier for this build step, used in wait_for to
107
+ # reference this build step as a dependency.
108
+ # Corresponds to the JSON property `id`
109
+ # @return [String]
110
+ attr_accessor :id
111
+
112
+ # Working directory (relative to project source root) to use when running
113
+ # this operation's container.
114
+ # Corresponds to the JSON property `dir`
115
+ # @return [String]
116
+ attr_accessor :dir
117
+
118
+ # The ID(s) of the step(s) that this build step depends on.
119
+ # This build step will not start until all the build steps in wait_for
120
+ # have completed successfully. If wait_for is empty, this build step will
121
+ # start when all previous build steps in the Build.Steps list have completed
122
+ # successfully.
123
+ # Corresponds to the JSON property `waitFor`
124
+ # @return [Array<String>]
125
+ attr_accessor :wait_for
126
+
127
+ # A list of environment variable definitions to be used when running a step.
128
+ # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
129
+ # being given the value "VALUE".
130
+ # Corresponds to the JSON property `env`
131
+ # @return [Array<String>]
132
+ attr_accessor :env
133
+
134
+ # A list of arguments that will be presented to the step when it is started.
135
+ # If the image used to run the step's container has an entrypoint, these args
136
+ # will be used as arguments to that entrypoint. If the image does not define
137
+ # an entrypoint, the first element in args will be used as the entrypoint,
138
+ # and the remainder will be used as arguments.
139
+ # Corresponds to the JSON property `args`
140
+ # @return [Array<String>]
141
+ attr_accessor :args
142
+
143
+ # The name of the container image that will run this particular build step.
144
+ # If the image is already available in the host's Docker daemon's cache, it
145
+ # will be run directly. If not, the host will attempt to pull the image
146
+ # first, using the builder service account's credentials if necessary.
147
+ # The Docker daemon's cache will already have the latest versions of all of
148
+ # the officially supported build steps
149
+ # (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon
150
+ # will also have cached many of the layers for some popular images, like
151
+ # "ubuntu", "debian", but they will be refreshed at the time you attempt to
152
+ # use them.
153
+ # If you built an image in a previous build step, it will be stored in the
154
+ # host's Docker daemon's cache and is available to use as the name for a
155
+ # later build step.
156
+ # Corresponds to the JSON property `name`
157
+ # @return [String]
158
+ attr_accessor :name
159
+
160
+ def initialize(**args)
161
+ update!(**args)
162
+ end
163
+
164
+ # Update properties of this object
165
+ def update!(**args)
166
+ @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
167
+ @id = args[:id] if args.key?(:id)
168
+ @dir = args[:dir] if args.key?(:dir)
169
+ @wait_for = args[:wait_for] if args.key?(:wait_for)
170
+ @env = args[:env] if args.key?(:env)
171
+ @args = args[:args] if args.key?(:args)
172
+ @name = args[:name] if args.key?(:name)
173
+ end
174
+ end
175
+
176
+ # Container message for hash values.
177
+ class HashProp
178
+ include Google::Apis::Core::Hashable
179
+
180
+ # The type of hash that was performed.
181
+ # Corresponds to the JSON property `type`
182
+ # @return [String]
183
+ attr_accessor :type
184
+
185
+ # The hash value.
186
+ # Corresponds to the JSON property `value`
187
+ # @return [String]
188
+ attr_accessor :value
189
+
190
+ def initialize(**args)
191
+ update!(**args)
192
+ end
193
+
194
+ # Update properties of this object
195
+ def update!(**args)
196
+ @type = args[:type] if args.key?(:type)
197
+ @value = args[:value] if args.key?(:value)
198
+ end
199
+ end
200
+
201
+ # Container message for hashes of byte content of files, used in
202
+ # SourceProvenance messages to verify integrity of source input to the build.
203
+ class FileHashes
204
+ include Google::Apis::Core::Hashable
205
+
206
+ # Collection of file hashes.
207
+ # Corresponds to the JSON property `fileHash`
208
+ # @return [Array<Google::Apis::CloudbuildV1::HashProp>]
209
+ attr_accessor :file_hash
210
+
211
+ def initialize(**args)
212
+ update!(**args)
213
+ end
214
+
215
+ # Update properties of this object
216
+ def update!(**args)
217
+ @file_hash = args[:file_hash] if args.key?(:file_hash)
218
+ end
219
+ end
220
+
25
221
  # The `Status` type defines a logical error model that is suitable for different
26
222
  # programming environments, including REST APIs and RPC APIs. It is used by
27
223
  # [gRPC](https://github.com/grpc). The error model is designed to be:
@@ -163,18 +359,18 @@ module Google
163
359
  attr_accessor :disabled
164
360
  alias_method :disabled?, :disabled
165
361
 
166
- # Path, from the source root, to a file whose contents is used for the
167
- # template.
168
- # Corresponds to the JSON property `filename`
169
- # @return [String]
170
- attr_accessor :filename
171
-
172
362
  # RepoSource describes the location of the source in a Google Cloud Source
173
363
  # Repository.
174
364
  # Corresponds to the JSON property `triggerTemplate`
175
365
  # @return [Google::Apis::CloudbuildV1::RepoSource]
176
366
  attr_accessor :trigger_template
177
367
 
368
+ # Path, from the source root, to a file whose contents is used for the
369
+ # template.
370
+ # Corresponds to the JSON property `filename`
371
+ # @return [String]
372
+ attr_accessor :filename
373
+
178
374
  def initialize(**args)
179
375
  update!(**args)
180
376
  end
@@ -187,8 +383,8 @@ module Google
187
383
  @description = args[:description] if args.key?(:description)
188
384
  @create_time = args[:create_time] if args.key?(:create_time)
189
385
  @disabled = args[:disabled] if args.key?(:disabled)
190
- @filename = args[:filename] if args.key?(:filename)
191
386
  @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
387
+ @filename = args[:filename] if args.key?(:filename)
192
388
  end
193
389
  end
194
390
 
@@ -208,6 +404,45 @@ module Google
208
404
  class Build
209
405
  include Google::Apis::Core::Hashable
210
406
 
407
+ # Amount of time that this build should be allowed to run, to second
408
+ # granularity. If this amount of time elapses, work on the build will cease
409
+ # and the build status will be TIMEOUT.
410
+ # Default time is ten minutes.
411
+ # Corresponds to the JSON property `timeout`
412
+ # @return [String]
413
+ attr_accessor :timeout
414
+
415
+ # Status of the build.
416
+ # @OutputOnly
417
+ # Corresponds to the JSON property `status`
418
+ # @return [String]
419
+ attr_accessor :status
420
+
421
+ # Customer-readable message about the current status.
422
+ # @OutputOnly
423
+ # Corresponds to the JSON property `statusDetail`
424
+ # @return [String]
425
+ attr_accessor :status_detail
426
+
427
+ # Google Cloud Storage bucket where logs should be written (see
428
+ # [Bucket Name
429
+ # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
430
+ # ).
431
+ # Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
432
+ # Corresponds to the JSON property `logsBucket`
433
+ # @return [String]
434
+ attr_accessor :logs_bucket
435
+
436
+ # Results describes the artifacts created by the build pipeline.
437
+ # Corresponds to the JSON property `results`
438
+ # @return [Google::Apis::CloudbuildV1::Results]
439
+ attr_accessor :results
440
+
441
+ # Describes the operations to be performed on the workspace.
442
+ # Corresponds to the JSON property `steps`
443
+ # @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
444
+ attr_accessor :steps
445
+
211
446
  # The ID of the BuildTrigger that triggered this build, if it was
212
447
  # triggered automatically.
213
448
  # @OutputOnly
@@ -221,19 +456,19 @@ module Google
221
456
  # @return [String]
222
457
  attr_accessor :id
223
458
 
224
- # Substitutions data for Build resource.
225
- # Corresponds to the JSON property `substitutions`
226
- # @return [Hash<String,String>]
227
- attr_accessor :substitutions
228
-
229
459
  # Time at which execution of the build was started.
230
460
  # @OutputOnly
231
461
  # Corresponds to the JSON property `startTime`
232
462
  # @return [String]
233
463
  attr_accessor :start_time
234
464
 
235
- # Time at which the request to create the build was received.
236
- # @OutputOnly
465
+ # Substitutions data for Build resource.
466
+ # Corresponds to the JSON property `substitutions`
467
+ # @return [Hash<String,String>]
468
+ attr_accessor :substitutions
469
+
470
+ # Time at which the request to create the build was received.
471
+ # @OutputOnly
237
472
  # Corresponds to the JSON property `createTime`
238
473
  # @return [String]
239
474
  attr_accessor :create_time
@@ -260,12 +495,6 @@ module Google
260
495
  # @return [String]
261
496
  attr_accessor :project_id
262
497
 
263
- # URL to logs for this build in Google Cloud Logging.
264
- # @OutputOnly
265
- # Corresponds to the JSON property `logUrl`
266
- # @return [String]
267
- attr_accessor :log_url
268
-
269
498
  # Time at which execution of the build was finished.
270
499
  # The difference between finish_time and start_time is the duration of the
271
500
  # build's execution.
@@ -274,10 +503,11 @@ module Google
274
503
  # @return [String]
275
504
  attr_accessor :finish_time
276
505
 
277
- # Optional arguments to enable specific features of builds.
278
- # Corresponds to the JSON property `options`
279
- # @return [Google::Apis::CloudbuildV1::BuildOptions]
280
- attr_accessor :options
506
+ # URL to logs for this build in Google Cloud Logging.
507
+ # @OutputOnly
508
+ # Corresponds to the JSON property `logUrl`
509
+ # @return [String]
510
+ attr_accessor :log_url
281
511
 
282
512
  # Source describes the location of the source in a supported storage
283
513
  # service.
@@ -285,44 +515,10 @@ module Google
285
515
  # @return [Google::Apis::CloudbuildV1::Source]
286
516
  attr_accessor :source
287
517
 
288
- # Customer-readable message about the current status.
289
- # @OutputOnly
290
- # Corresponds to the JSON property `statusDetail`
291
- # @return [String]
292
- attr_accessor :status_detail
293
-
294
- # Status of the build.
295
- # @OutputOnly
296
- # Corresponds to the JSON property `status`
297
- # @return [String]
298
- attr_accessor :status
299
-
300
- # Amount of time that this build should be allowed to run, to second
301
- # granularity. If this amount of time elapses, work on the build will cease
302
- # and the build status will be TIMEOUT.
303
- # Default time is ten minutes.
304
- # Corresponds to the JSON property `timeout`
305
- # @return [String]
306
- attr_accessor :timeout
307
-
308
- # Google Cloud Storage bucket where logs should be written (see
309
- # [Bucket Name
310
- # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
311
- # ).
312
- # Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
313
- # Corresponds to the JSON property `logsBucket`
314
- # @return [String]
315
- attr_accessor :logs_bucket
316
-
317
- # Results describes the artifacts created by the build pipeline.
318
- # Corresponds to the JSON property `results`
319
- # @return [Google::Apis::CloudbuildV1::Results]
320
- attr_accessor :results
321
-
322
- # Describes the operations to be performed on the workspace.
323
- # Corresponds to the JSON property `steps`
324
- # @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
325
- attr_accessor :steps
518
+ # Optional arguments to enable specific features of builds.
519
+ # Corresponds to the JSON property `options`
520
+ # @return [Google::Apis::CloudbuildV1::BuildOptions]
521
+ attr_accessor :options
326
522
 
327
523
  def initialize(**args)
328
524
  update!(**args)
@@ -330,24 +526,24 @@ module Google
330
526
 
331
527
  # Update properties of this object
332
528
  def update!(**args)
529
+ @timeout = args[:timeout] if args.key?(:timeout)
530
+ @status = args[:status] if args.key?(:status)
531
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
532
+ @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
533
+ @results = args[:results] if args.key?(:results)
534
+ @steps = args[:steps] if args.key?(:steps)
333
535
  @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
334
536
  @id = args[:id] if args.key?(:id)
335
- @substitutions = args[:substitutions] if args.key?(:substitutions)
336
537
  @start_time = args[:start_time] if args.key?(:start_time)
538
+ @substitutions = args[:substitutions] if args.key?(:substitutions)
337
539
  @create_time = args[:create_time] if args.key?(:create_time)
338
540
  @source_provenance = args[:source_provenance] if args.key?(:source_provenance)
339
541
  @images = args[:images] if args.key?(:images)
340
542
  @project_id = args[:project_id] if args.key?(:project_id)
341
- @log_url = args[:log_url] if args.key?(:log_url)
342
543
  @finish_time = args[:finish_time] if args.key?(:finish_time)
343
- @options = args[:options] if args.key?(:options)
544
+ @log_url = args[:log_url] if args.key?(:log_url)
344
545
  @source = args[:source] if args.key?(:source)
345
- @status_detail = args[:status_detail] if args.key?(:status_detail)
346
- @status = args[:status] if args.key?(:status)
347
- @timeout = args[:timeout] if args.key?(:timeout)
348
- @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
349
- @results = args[:results] if args.key?(:results)
350
- @steps = args[:steps] if args.key?(:steps)
546
+ @options = args[:options] if args.key?(:options)
351
547
  end
352
548
  end
353
549
 
@@ -419,26 +615,26 @@ module Google
419
615
  class Source
420
616
  include Google::Apis::Core::Hashable
421
617
 
422
- # StorageSource describes the location of the source in an archive file in
423
- # Google Cloud Storage.
424
- # Corresponds to the JSON property `storageSource`
425
- # @return [Google::Apis::CloudbuildV1::StorageSource]
426
- attr_accessor :storage_source
427
-
428
618
  # RepoSource describes the location of the source in a Google Cloud Source
429
619
  # Repository.
430
620
  # Corresponds to the JSON property `repoSource`
431
621
  # @return [Google::Apis::CloudbuildV1::RepoSource]
432
622
  attr_accessor :repo_source
433
623
 
624
+ # StorageSource describes the location of the source in an archive file in
625
+ # Google Cloud Storage.
626
+ # Corresponds to the JSON property `storageSource`
627
+ # @return [Google::Apis::CloudbuildV1::StorageSource]
628
+ attr_accessor :storage_source
629
+
434
630
  def initialize(**args)
435
631
  update!(**args)
436
632
  end
437
633
 
438
634
  # Update properties of this object
439
635
  def update!(**args)
440
- @storage_source = args[:storage_source] if args.key?(:storage_source)
441
636
  @repo_source = args[:repo_source] if args.key?(:repo_source)
637
+ @storage_source = args[:storage_source] if args.key?(:storage_source)
442
638
  end
443
639
  end
444
640
 
@@ -446,24 +642,24 @@ module Google
446
642
  class BuildOptions
447
643
  include Google::Apis::Core::Hashable
448
644
 
449
- # Requested hash for SourceProvenance.
450
- # Corresponds to the JSON property `sourceProvenanceHash`
451
- # @return [Array<String>]
452
- attr_accessor :source_provenance_hash
453
-
454
645
  # Requested verifiability options.
455
646
  # Corresponds to the JSON property `requestedVerifyOption`
456
647
  # @return [String]
457
648
  attr_accessor :requested_verify_option
458
649
 
650
+ # Requested hash for SourceProvenance.
651
+ # Corresponds to the JSON property `sourceProvenanceHash`
652
+ # @return [Array<String>]
653
+ attr_accessor :source_provenance_hash
654
+
459
655
  def initialize(**args)
460
656
  update!(**args)
461
657
  end
462
658
 
463
659
  # Update properties of this object
464
660
  def update!(**args)
465
- @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
466
661
  @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
662
+ @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
467
663
  end
468
664
  end
469
665
 
@@ -472,12 +668,6 @@ module Google
472
668
  class StorageSource
473
669
  include Google::Apis::Core::Hashable
474
670
 
475
- # Google Cloud Storage generation for the object. If the generation is
476
- # omitted, the latest generation will be used.
477
- # Corresponds to the JSON property `generation`
478
- # @return [String]
479
- attr_accessor :generation
480
-
481
671
  # Google Cloud Storage bucket containing source (see
482
672
  # [Bucket Name
483
673
  # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
@@ -493,15 +683,21 @@ module Google
493
683
  # @return [String]
494
684
  attr_accessor :object
495
685
 
686
+ # Google Cloud Storage generation for the object. If the generation is
687
+ # omitted, the latest generation will be used.
688
+ # Corresponds to the JSON property `generation`
689
+ # @return [String]
690
+ attr_accessor :generation
691
+
496
692
  def initialize(**args)
497
693
  update!(**args)
498
694
  end
499
695
 
500
696
  # Update properties of this object
501
697
  def update!(**args)
502
- @generation = args[:generation] if args.key?(:generation)
503
698
  @bucket = args[:bucket] if args.key?(:bucket)
504
699
  @object = args[:object] if args.key?(:object)
700
+ @generation = args[:generation] if args.key?(:generation)
505
701
  end
506
702
  end
507
703
 
@@ -509,24 +705,24 @@ module Google
509
705
  class Results
510
706
  include Google::Apis::Core::Hashable
511
707
 
512
- # Images that were built as a part of the build.
513
- # Corresponds to the JSON property `images`
514
- # @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
515
- attr_accessor :images
516
-
517
708
  # List of build step digests, in order corresponding to build step indices.
518
709
  # Corresponds to the JSON property `buildStepImages`
519
710
  # @return [Array<String>]
520
711
  attr_accessor :build_step_images
521
712
 
713
+ # Images that were built as a part of the build.
714
+ # Corresponds to the JSON property `images`
715
+ # @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
716
+ attr_accessor :images
717
+
522
718
  def initialize(**args)
523
719
  update!(**args)
524
720
  end
525
721
 
526
722
  # Update properties of this object
527
723
  def update!(**args)
528
- @images = args[:images] if args.key?(:images)
529
724
  @build_step_images = args[:build_step_images] if args.key?(:build_step_images)
725
+ @images = args[:images] if args.key?(:images)
530
726
  end
531
727
  end
532
728
 
@@ -566,18 +762,6 @@ module Google
566
762
  class SourceProvenance
567
763
  include Google::Apis::Core::Hashable
568
764
 
569
- # Hash(es) of the build source, which can be used to verify that the original
570
- # source integrity was maintained in the build. Note that FileHashes will
571
- # only be populated if BuildOptions has requested a SourceProvenanceHash.
572
- # The keys to this map are file paths used as build source and the values
573
- # contain the hash values for those files.
574
- # If the build source came in a single package such as a gzipped tarfile
575
- # (.tar.gz), the FileHash will be for the single path to that file.
576
- # @OutputOnly
577
- # Corresponds to the JSON property `fileHashes`
578
- # @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
579
- attr_accessor :file_hashes
580
-
581
765
  # RepoSource describes the location of the source in a Google Cloud Source
582
766
  # Repository.
583
767
  # Corresponds to the JSON property `resolvedRepoSource`
@@ -590,15 +774,27 @@ module Google
590
774
  # @return [Google::Apis::CloudbuildV1::StorageSource]
591
775
  attr_accessor :resolved_storage_source
592
776
 
777
+ # Hash(es) of the build source, which can be used to verify that the original
778
+ # source integrity was maintained in the build. Note that FileHashes will
779
+ # only be populated if BuildOptions has requested a SourceProvenanceHash.
780
+ # The keys to this map are file paths used as build source and the values
781
+ # contain the hash values for those files.
782
+ # If the build source came in a single package such as a gzipped tarfile
783
+ # (.tar.gz), the FileHash will be for the single path to that file.
784
+ # @OutputOnly
785
+ # Corresponds to the JSON property `fileHashes`
786
+ # @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
787
+ attr_accessor :file_hashes
788
+
593
789
  def initialize(**args)
594
790
  update!(**args)
595
791
  end
596
792
 
597
793
  # Update properties of this object
598
794
  def update!(**args)
599
- @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
600
795
  @resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
601
796
  @resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
797
+ @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
602
798
  end
603
799
  end
604
800
 
@@ -615,30 +811,19 @@ module Google
615
811
  end
616
812
  end
617
813
 
618
- # Response containing existing BuildTriggers.
619
- class ListBuildTriggersResponse
620
- include Google::Apis::Core::Hashable
621
-
622
- # BuildTriggers for the project, sorted by create_time descending.
623
- # Corresponds to the JSON property `triggers`
624
- # @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
625
- attr_accessor :triggers
626
-
627
- def initialize(**args)
628
- update!(**args)
629
- end
630
-
631
- # Update properties of this object
632
- def update!(**args)
633
- @triggers = args[:triggers] if args.key?(:triggers)
634
- end
635
- end
636
-
637
814
  # This resource represents a long-running operation that is the result of a
638
815
  # network API call.
639
816
  class Operation
640
817
  include Google::Apis::Core::Hashable
641
818
 
819
+ # Service-specific metadata associated with the operation. It typically
820
+ # contains progress information and common metadata such as create time.
821
+ # Some services might not provide such metadata. Any method that returns a
822
+ # long-running operation should document the metadata type, if any.
823
+ # Corresponds to the JSON property `metadata`
824
+ # @return [Hash<String,Object>]
825
+ attr_accessor :metadata
826
+
642
827
  # If the value is `false`, it means the operation is still in progress.
643
828
  # If true, the operation is completed, and either `error` or `response` is
644
829
  # available.
@@ -709,213 +894,28 @@ module Google
709
894
  # @return [Google::Apis::CloudbuildV1::Status]
710
895
  attr_accessor :error
711
896
 
712
- # Service-specific metadata associated with the operation. It typically
713
- # contains progress information and common metadata such as create time.
714
- # Some services might not provide such metadata. Any method that returns a
715
- # long-running operation should document the metadata type, if any.
716
- # Corresponds to the JSON property `metadata`
717
- # @return [Hash<String,Object>]
718
- attr_accessor :metadata
719
-
720
897
  def initialize(**args)
721
898
  update!(**args)
722
899
  end
723
900
 
724
901
  # Update properties of this object
725
902
  def update!(**args)
903
+ @metadata = args[:metadata] if args.key?(:metadata)
726
904
  @done = args[:done] if args.key?(:done)
727
905
  @response = args[:response] if args.key?(:response)
728
906
  @name = args[:name] if args.key?(:name)
729
907
  @error = args[:error] if args.key?(:error)
730
- @metadata = args[:metadata] if args.key?(:metadata)
731
- end
732
- end
733
-
734
- # BuiltImage describes an image built by the pipeline.
735
- class BuiltImage
736
- include Google::Apis::Core::Hashable
737
-
738
- # Name used to push the container image to Google Container Registry, as
739
- # presented to `docker push`.
740
- # Corresponds to the JSON property `name`
741
- # @return [String]
742
- attr_accessor :name
743
-
744
- # Docker Registry 2.0 digest.
745
- # Corresponds to the JSON property `digest`
746
- # @return [String]
747
- attr_accessor :digest
748
-
749
- def initialize(**args)
750
- update!(**args)
751
- end
752
-
753
- # Update properties of this object
754
- def update!(**args)
755
- @name = args[:name] if args.key?(:name)
756
- @digest = args[:digest] if args.key?(:digest)
757
- end
758
- end
759
-
760
- # Container message for hash values.
761
- class HashProp
762
- include Google::Apis::Core::Hashable
763
-
764
- # The type of hash that was performed.
765
- # Corresponds to the JSON property `type`
766
- # @return [String]
767
- attr_accessor :type
768
-
769
- # The hash value.
770
- # Corresponds to the JSON property `value`
771
- # @return [String]
772
- attr_accessor :value
773
-
774
- def initialize(**args)
775
- update!(**args)
776
- end
777
-
778
- # Update properties of this object
779
- def update!(**args)
780
- @type = args[:type] if args.key?(:type)
781
- @value = args[:value] if args.key?(:value)
782
- end
783
- end
784
-
785
- # RepoSource describes the location of the source in a Google Cloud Source
786
- # Repository.
787
- class RepoSource
788
- include Google::Apis::Core::Hashable
789
-
790
- # Name of the tag to build.
791
- # Corresponds to the JSON property `tagName`
792
- # @return [String]
793
- attr_accessor :tag_name
794
-
795
- # Explicit commit SHA to build.
796
- # Corresponds to the JSON property `commitSha`
797
- # @return [String]
798
- attr_accessor :commit_sha
799
-
800
- # ID of the project that owns the repo. If omitted, the project ID requesting
801
- # the build is assumed.
802
- # Corresponds to the JSON property `projectId`
803
- # @return [String]
804
- attr_accessor :project_id
805
-
806
- # Name of the repo. If omitted, the name "default" is assumed.
807
- # Corresponds to the JSON property `repoName`
808
- # @return [String]
809
- attr_accessor :repo_name
810
-
811
- # Name of the branch to build.
812
- # Corresponds to the JSON property `branchName`
813
- # @return [String]
814
- attr_accessor :branch_name
815
-
816
- def initialize(**args)
817
- update!(**args)
818
- end
819
-
820
- # Update properties of this object
821
- def update!(**args)
822
- @tag_name = args[:tag_name] if args.key?(:tag_name)
823
- @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
824
- @project_id = args[:project_id] if args.key?(:project_id)
825
- @repo_name = args[:repo_name] if args.key?(:repo_name)
826
- @branch_name = args[:branch_name] if args.key?(:branch_name)
827
908
  end
828
909
  end
829
910
 
830
- # BuildStep describes a step to perform in the build pipeline.
831
- class BuildStep
832
- include Google::Apis::Core::Hashable
833
-
834
- # The ID(s) of the step(s) that this build step depends on.
835
- # This build step will not start until all the build steps in wait_for
836
- # have completed successfully. If wait_for is empty, this build step will
837
- # start when all previous build steps in the Build.Steps list have completed
838
- # successfully.
839
- # Corresponds to the JSON property `waitFor`
840
- # @return [Array<String>]
841
- attr_accessor :wait_for
842
-
843
- # A list of environment variable definitions to be used when running a step.
844
- # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
845
- # being given the value "VALUE".
846
- # Corresponds to the JSON property `env`
847
- # @return [Array<String>]
848
- attr_accessor :env
849
-
850
- # A list of arguments that will be presented to the step when it is started.
851
- # If the image used to run the step's container has an entrypoint, these args
852
- # will be used as arguments to that entrypoint. If the image does not define
853
- # an entrypoint, the first element in args will be used as the entrypoint,
854
- # and the remainder will be used as arguments.
855
- # Corresponds to the JSON property `args`
856
- # @return [Array<String>]
857
- attr_accessor :args
858
-
859
- # The name of the container image that will run this particular build step.
860
- # If the image is already available in the host's Docker daemon's cache, it
861
- # will be run directly. If not, the host will attempt to pull the image
862
- # first, using the builder service account's credentials if necessary.
863
- # The Docker daemon's cache will already have the latest versions of all of
864
- # the officially supported build steps
865
- # (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon
866
- # will also have cached many of the layers for some popular images, like
867
- # "ubuntu", "debian", but they will be refreshed at the time you attempt to
868
- # use them.
869
- # If you built an image in a previous build step, it will be stored in the
870
- # host's Docker daemon's cache and is available to use as the name for a
871
- # later build step.
872
- # Corresponds to the JSON property `name`
873
- # @return [String]
874
- attr_accessor :name
875
-
876
- # Optional entrypoint to be used instead of the build step image's default
877
- # If unset, the image's default will be used.
878
- # Corresponds to the JSON property `entrypoint`
879
- # @return [String]
880
- attr_accessor :entrypoint
881
-
882
- # Optional unique identifier for this build step, used in wait_for to
883
- # reference this build step as a dependency.
884
- # Corresponds to the JSON property `id`
885
- # @return [String]
886
- attr_accessor :id
887
-
888
- # Working directory (relative to project source root) to use when running
889
- # this operation's container.
890
- # Corresponds to the JSON property `dir`
891
- # @return [String]
892
- attr_accessor :dir
893
-
894
- def initialize(**args)
895
- update!(**args)
896
- end
897
-
898
- # Update properties of this object
899
- def update!(**args)
900
- @wait_for = args[:wait_for] if args.key?(:wait_for)
901
- @env = args[:env] if args.key?(:env)
902
- @args = args[:args] if args.key?(:args)
903
- @name = args[:name] if args.key?(:name)
904
- @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
905
- @id = args[:id] if args.key?(:id)
906
- @dir = args[:dir] if args.key?(:dir)
907
- end
908
- end
909
-
910
- # Container message for hashes of byte content of files, used in
911
- # SourceProvenance messages to verify integrity of source input to the build.
912
- class FileHashes
911
+ # Response containing existing BuildTriggers.
912
+ class ListBuildTriggersResponse
913
913
  include Google::Apis::Core::Hashable
914
914
 
915
- # Collection of file hashes.
916
- # Corresponds to the JSON property `fileHash`
917
- # @return [Array<Google::Apis::CloudbuildV1::HashProp>]
918
- attr_accessor :file_hash
915
+ # BuildTriggers for the project, sorted by create_time descending.
916
+ # Corresponds to the JSON property `triggers`
917
+ # @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
918
+ attr_accessor :triggers
919
919
 
920
920
  def initialize(**args)
921
921
  update!(**args)
@@ -923,7 +923,7 @@ module Google
923
923
 
924
924
  # Update properties of this object
925
925
  def update!(**args)
926
- @file_hash = args[:file_hash] if args.key?(:file_hash)
926
+ @triggers = args[:triggers] if args.key?(:triggers)
927
927
  end
928
928
  end
929
929
  end