google-cloud-build-v1 0.4.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +5 -5
- data/README.md +1 -1
- data/lib/google/cloud/build/v1/cloud_build/client.rb +123 -37
- data/lib/google/cloud/build/v1/cloud_build/operations.rb +1 -1
- data/lib/google/cloud/build/v1/cloud_build/paths.rb +102 -4
- data/lib/google/cloud/build/v1/version.rb +1 -1
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_pb.rb +90 -0
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_services_pb.rb +4 -1
- data/proto_docs/google/api/httpbody.rb +75 -0
- data/proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb +301 -10
- metadata +14 -7
@@ -6,6 +6,7 @@ require 'google/protobuf'
|
|
6
6
|
require 'google/api/annotations_pb'
|
7
7
|
require 'google/api/client_pb'
|
8
8
|
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/httpbody_pb'
|
9
10
|
require 'google/api/resource_pb'
|
10
11
|
require 'google/longrunning/operations_pb'
|
11
12
|
require 'google/protobuf/duration_pb'
|
@@ -20,6 +21,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
20
21
|
optional :id, :string, 2
|
21
22
|
end
|
22
23
|
add_message "google.devtools.cloudbuild.v1.RunBuildTriggerRequest" do
|
24
|
+
optional :name, :string, 4
|
23
25
|
optional :project_id, :string, 1
|
24
26
|
optional :trigger_id, :string, 2
|
25
27
|
optional :source, :message, 3, "google.devtools.cloudbuild.v1.RepoSource"
|
@@ -41,10 +43,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
41
43
|
optional :commit_sha, :string, 5
|
42
44
|
end
|
43
45
|
end
|
46
|
+
add_message "google.devtools.cloudbuild.v1.StorageSourceManifest" do
|
47
|
+
optional :bucket, :string, 1
|
48
|
+
optional :object, :string, 2
|
49
|
+
optional :generation, :int64, 3
|
50
|
+
end
|
44
51
|
add_message "google.devtools.cloudbuild.v1.Source" do
|
45
52
|
oneof :source do
|
46
53
|
optional :storage_source, :message, 2, "google.devtools.cloudbuild.v1.StorageSource"
|
47
54
|
optional :repo_source, :message, 3, "google.devtools.cloudbuild.v1.RepoSource"
|
55
|
+
optional :storage_source_manifest, :message, 8, "google.devtools.cloudbuild.v1.StorageSourceManifest"
|
48
56
|
end
|
49
57
|
end
|
50
58
|
add_message "google.devtools.cloudbuild.v1.BuiltImage" do
|
@@ -109,6 +117,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
109
117
|
repeated :secrets, :message, 32, "google.devtools.cloudbuild.v1.Secret"
|
110
118
|
map :timing, :string, :message, 33, "google.devtools.cloudbuild.v1.TimeSpan"
|
111
119
|
optional :service_account, :string, 42
|
120
|
+
optional :available_secrets, :message, 47, "google.devtools.cloudbuild.v1.Secrets"
|
121
|
+
repeated :warnings, :message, 49, "google.devtools.cloudbuild.v1.Build.Warning"
|
122
|
+
end
|
123
|
+
add_message "google.devtools.cloudbuild.v1.Build.Warning" do
|
124
|
+
optional :text, :string, 1
|
125
|
+
optional :priority, :enum, 2, "google.devtools.cloudbuild.v1.Build.Warning.Priority"
|
126
|
+
end
|
127
|
+
add_enum "google.devtools.cloudbuild.v1.Build.Warning.Priority" do
|
128
|
+
value :PRIORITY_UNSPECIFIED, 0
|
129
|
+
value :INFO, 1
|
130
|
+
value :WARNING, 2
|
131
|
+
value :ALERT, 3
|
112
132
|
end
|
113
133
|
add_enum "google.devtools.cloudbuild.v1.Build.Status" do
|
114
134
|
value :STATUS_UNKNOWN, 0
|
@@ -140,6 +160,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
140
160
|
add_message "google.devtools.cloudbuild.v1.SourceProvenance" do
|
141
161
|
optional :resolved_storage_source, :message, 3, "google.devtools.cloudbuild.v1.StorageSource"
|
142
162
|
optional :resolved_repo_source, :message, 6, "google.devtools.cloudbuild.v1.RepoSource"
|
163
|
+
optional :resolved_storage_source_manifest, :message, 9, "google.devtools.cloudbuild.v1.StorageSourceManifest"
|
143
164
|
map :file_hashes, :string, :message, 4, "google.devtools.cloudbuild.v1.FileHashes"
|
144
165
|
end
|
145
166
|
add_message "google.devtools.cloudbuild.v1.FileHashes" do
|
@@ -154,6 +175,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
154
175
|
value :SHA256, 1
|
155
176
|
value :MD5, 2
|
156
177
|
end
|
178
|
+
add_message "google.devtools.cloudbuild.v1.Secrets" do
|
179
|
+
repeated :secret_manager, :message, 1, "google.devtools.cloudbuild.v1.SecretManagerSecret"
|
180
|
+
repeated :inline, :message, 2, "google.devtools.cloudbuild.v1.InlineSecret"
|
181
|
+
end
|
182
|
+
add_message "google.devtools.cloudbuild.v1.InlineSecret" do
|
183
|
+
optional :kms_key_name, :string, 1
|
184
|
+
map :env_map, :string, :bytes, 2
|
185
|
+
end
|
186
|
+
add_message "google.devtools.cloudbuild.v1.SecretManagerSecret" do
|
187
|
+
optional :version_name, :string, 1
|
188
|
+
optional :env, :string, 2
|
189
|
+
end
|
157
190
|
add_message "google.devtools.cloudbuild.v1.Secret" do
|
158
191
|
optional :kms_key_name, :string, 1
|
159
192
|
map :secret_env, :string, :bytes, 3
|
@@ -185,18 +218,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
185
218
|
optional :id, :string, 2
|
186
219
|
end
|
187
220
|
add_message "google.devtools.cloudbuild.v1.BuildTrigger" do
|
221
|
+
optional :resource_name, :string, 34
|
188
222
|
optional :id, :string, 1
|
189
223
|
optional :description, :string, 10
|
190
224
|
optional :name, :string, 21
|
191
225
|
repeated :tags, :string, 19
|
192
226
|
optional :trigger_template, :message, 7, "google.devtools.cloudbuild.v1.RepoSource"
|
193
227
|
optional :github, :message, 13, "google.devtools.cloudbuild.v1.GitHubEventsConfig"
|
228
|
+
optional :pubsub_config, :message, 29, "google.devtools.cloudbuild.v1.PubsubConfig"
|
229
|
+
optional :webhook_config, :message, 31, "google.devtools.cloudbuild.v1.WebhookConfig"
|
194
230
|
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
195
231
|
optional :disabled, :bool, 9
|
196
232
|
map :substitutions, :string, :string, 11
|
197
233
|
repeated :ignored_files, :string, 15
|
198
234
|
repeated :included_files, :string, 16
|
235
|
+
optional :filter, :string, 30
|
199
236
|
oneof :build_template do
|
237
|
+
optional :autodetect, :bool, 18
|
200
238
|
optional :build, :message, 4, "google.devtools.cloudbuild.v1.Build"
|
201
239
|
optional :filename, :string, 8
|
202
240
|
end
|
@@ -210,6 +248,30 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
210
248
|
optional :push, :message, 5, "google.devtools.cloudbuild.v1.PushFilter"
|
211
249
|
end
|
212
250
|
end
|
251
|
+
add_message "google.devtools.cloudbuild.v1.PubsubConfig" do
|
252
|
+
optional :subscription, :string, 1
|
253
|
+
optional :topic, :string, 2
|
254
|
+
optional :service_account_email, :string, 3
|
255
|
+
optional :state, :enum, 4, "google.devtools.cloudbuild.v1.PubsubConfig.State"
|
256
|
+
end
|
257
|
+
add_enum "google.devtools.cloudbuild.v1.PubsubConfig.State" do
|
258
|
+
value :STATE_UNSPECIFIED, 0
|
259
|
+
value :OK, 1
|
260
|
+
value :SUBSCRIPTION_DELETED, 2
|
261
|
+
value :TOPIC_DELETED, 3
|
262
|
+
value :SUBSCRIPTION_MISCONFIGURED, 4
|
263
|
+
end
|
264
|
+
add_message "google.devtools.cloudbuild.v1.WebhookConfig" do
|
265
|
+
optional :state, :enum, 4, "google.devtools.cloudbuild.v1.WebhookConfig.State"
|
266
|
+
oneof :auth_method do
|
267
|
+
optional :secret, :string, 3
|
268
|
+
end
|
269
|
+
end
|
270
|
+
add_enum "google.devtools.cloudbuild.v1.WebhookConfig.State" do
|
271
|
+
value :STATE_UNSPECIFIED, 0
|
272
|
+
value :OK, 1
|
273
|
+
value :SECRET_DELETED, 2
|
274
|
+
end
|
213
275
|
add_message "google.devtools.cloudbuild.v1.PullRequestFilter" do
|
214
276
|
optional :comment_control, :enum, 5, "google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl"
|
215
277
|
optional :invert_regex, :bool, 6
|
@@ -220,6 +282,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
220
282
|
add_enum "google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl" do
|
221
283
|
value :COMMENTS_DISABLED, 0
|
222
284
|
value :COMMENTS_ENABLED, 1
|
285
|
+
value :COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY, 2
|
223
286
|
end
|
224
287
|
add_message "google.devtools.cloudbuild.v1.PushFilter" do
|
225
288
|
optional :invert_regex, :bool, 4
|
@@ -229,14 +292,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
229
292
|
end
|
230
293
|
end
|
231
294
|
add_message "google.devtools.cloudbuild.v1.CreateBuildTriggerRequest" do
|
295
|
+
optional :parent, :string, 3
|
232
296
|
optional :project_id, :string, 1
|
233
297
|
optional :trigger, :message, 2, "google.devtools.cloudbuild.v1.BuildTrigger"
|
234
298
|
end
|
235
299
|
add_message "google.devtools.cloudbuild.v1.GetBuildTriggerRequest" do
|
300
|
+
optional :name, :string, 3
|
236
301
|
optional :project_id, :string, 1
|
237
302
|
optional :trigger_id, :string, 2
|
238
303
|
end
|
239
304
|
add_message "google.devtools.cloudbuild.v1.ListBuildTriggersRequest" do
|
305
|
+
optional :parent, :string, 4
|
240
306
|
optional :project_id, :string, 1
|
241
307
|
optional :page_size, :int32, 2
|
242
308
|
optional :page_token, :string, 3
|
@@ -246,6 +312,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
246
312
|
optional :next_page_token, :string, 2
|
247
313
|
end
|
248
314
|
add_message "google.devtools.cloudbuild.v1.DeleteBuildTriggerRequest" do
|
315
|
+
optional :name, :string, 3
|
249
316
|
optional :project_id, :string, 1
|
250
317
|
optional :trigger_id, :string, 2
|
251
318
|
end
|
@@ -276,6 +343,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
276
343
|
value :UNSPECIFIED, 0
|
277
344
|
value :N1_HIGHCPU_8, 1
|
278
345
|
value :N1_HIGHCPU_32, 2
|
346
|
+
value :E2_HIGHCPU_8, 5
|
347
|
+
value :E2_HIGHCPU_32, 6
|
279
348
|
end
|
280
349
|
add_enum "google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption" do
|
281
350
|
value :MUST_MATCH, 0
|
@@ -294,6 +363,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
294
363
|
value :CLOUD_LOGGING_ONLY, 5
|
295
364
|
value :NONE, 4
|
296
365
|
end
|
366
|
+
add_message "google.devtools.cloudbuild.v1.ReceiveTriggerWebhookRequest" do
|
367
|
+
optional :name, :string, 5
|
368
|
+
optional :body, :message, 1, "google.api.HttpBody"
|
369
|
+
optional :project_id, :string, 2
|
370
|
+
optional :trigger, :string, 3
|
371
|
+
optional :secret, :string, 4
|
372
|
+
end
|
373
|
+
add_message "google.devtools.cloudbuild.v1.ReceiveTriggerWebhookResponse" do
|
374
|
+
end
|
297
375
|
add_message "google.devtools.cloudbuild.v1.WorkerPool" do
|
298
376
|
optional :name, :string, 14
|
299
377
|
optional :project_id, :string, 2
|
@@ -362,6 +440,7 @@ module Google
|
|
362
440
|
RunBuildTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.RunBuildTriggerRequest").msgclass
|
363
441
|
StorageSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.StorageSource").msgclass
|
364
442
|
RepoSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.RepoSource").msgclass
|
443
|
+
StorageSourceManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.StorageSourceManifest").msgclass
|
365
444
|
Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Source").msgclass
|
366
445
|
BuiltImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuiltImage").msgclass
|
367
446
|
BuildStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildStep").msgclass
|
@@ -369,6 +448,8 @@ module Google
|
|
369
448
|
Results = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Results").msgclass
|
370
449
|
ArtifactResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ArtifactResult").msgclass
|
371
450
|
Build = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build").msgclass
|
451
|
+
Build::Warning = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Warning").msgclass
|
452
|
+
Build::Warning::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Warning.Priority").enummodule
|
372
453
|
Build::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Status").enummodule
|
373
454
|
Artifacts = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts").msgclass
|
374
455
|
Artifacts::ArtifactObjects = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects").msgclass
|
@@ -378,6 +459,9 @@ module Google
|
|
378
459
|
FileHashes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.FileHashes").msgclass
|
379
460
|
Hash = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Hash").msgclass
|
380
461
|
Hash::HashType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Hash.HashType").enummodule
|
462
|
+
Secrets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Secrets").msgclass
|
463
|
+
InlineSecret = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.InlineSecret").msgclass
|
464
|
+
SecretManagerSecret = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.SecretManagerSecret").msgclass
|
381
465
|
Secret = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Secret").msgclass
|
382
466
|
CreateBuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.CreateBuildRequest").msgclass
|
383
467
|
GetBuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.GetBuildRequest").msgclass
|
@@ -386,6 +470,10 @@ module Google
|
|
386
470
|
CancelBuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.CancelBuildRequest").msgclass
|
387
471
|
BuildTrigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildTrigger").msgclass
|
388
472
|
GitHubEventsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.GitHubEventsConfig").msgclass
|
473
|
+
PubsubConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PubsubConfig").msgclass
|
474
|
+
PubsubConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PubsubConfig.State").enummodule
|
475
|
+
WebhookConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WebhookConfig").msgclass
|
476
|
+
WebhookConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WebhookConfig.State").enummodule
|
389
477
|
PullRequestFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PullRequestFilter").msgclass
|
390
478
|
PullRequestFilter::CommentControl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl").enummodule
|
391
479
|
PushFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PushFilter").msgclass
|
@@ -401,6 +489,8 @@ module Google
|
|
401
489
|
BuildOptions::SubstitutionOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption").enummodule
|
402
490
|
BuildOptions::LogStreamingOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption").enummodule
|
403
491
|
BuildOptions::LoggingMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.LoggingMode").enummodule
|
492
|
+
ReceiveTriggerWebhookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ReceiveTriggerWebhookRequest").msgclass
|
493
|
+
ReceiveTriggerWebhookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ReceiveTriggerWebhookResponse").msgclass
|
404
494
|
WorkerPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WorkerPool").msgclass
|
405
495
|
WorkerPool::Region = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WorkerPool.Region").enummodule
|
406
496
|
WorkerPool::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WorkerPool.Status").enummodule
|
@@ -34,7 +34,7 @@ module Google
|
|
34
34
|
# determine the status of the build.
|
35
35
|
class Service
|
36
36
|
|
37
|
-
include GRPC::GenericService
|
37
|
+
include ::GRPC::GenericService
|
38
38
|
|
39
39
|
self.marshal_class_method = :encode
|
40
40
|
self.unmarshal_class_method = :decode
|
@@ -108,6 +108,9 @@ module Google
|
|
108
108
|
rpc :UpdateBuildTrigger, ::Google::Cloud::Build::V1::UpdateBuildTriggerRequest, ::Google::Cloud::Build::V1::BuildTrigger
|
109
109
|
# Runs a `BuildTrigger` at a particular source revision.
|
110
110
|
rpc :RunBuildTrigger, ::Google::Cloud::Build::V1::RunBuildTriggerRequest, ::Google::Longrunning::Operation
|
111
|
+
# ReceiveTriggerWebhook [Experimental] is called when the API receives a
|
112
|
+
# webhook request targeted at a specific trigger.
|
113
|
+
rpc :ReceiveTriggerWebhook, ::Google::Cloud::Build::V1::ReceiveTriggerWebhookRequest, ::Google::Cloud::Build::V1::ReceiveTriggerWebhookResponse
|
111
114
|
# Creates a `WorkerPool` to run the builds, and returns the new worker pool.
|
112
115
|
#
|
113
116
|
# This API is experimental.
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
23
|
+
# payload formats that can't be represented as JSON, such as raw binary or
|
24
|
+
# an HTML page.
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# This message can be used both in streaming and non-streaming API methods in
|
28
|
+
# the request as well as the response.
|
29
|
+
#
|
30
|
+
# It can be used as a top-level request field, which is convenient if one
|
31
|
+
# wants to extract parameters from either the URL or HTTP template into the
|
32
|
+
# request fields and also want access to the raw HTTP body.
|
33
|
+
#
|
34
|
+
# Example:
|
35
|
+
#
|
36
|
+
# message GetResourceRequest {
|
37
|
+
# // A unique request id.
|
38
|
+
# string request_id = 1;
|
39
|
+
#
|
40
|
+
# // The raw HTTP body is bound to this field.
|
41
|
+
# google.api.HttpBody http_body = 2;
|
42
|
+
# }
|
43
|
+
#
|
44
|
+
# service ResourceService {
|
45
|
+
# rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
|
46
|
+
# rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
|
47
|
+
# }
|
48
|
+
#
|
49
|
+
# Example with streaming methods:
|
50
|
+
#
|
51
|
+
# service CaldavService {
|
52
|
+
# rpc GetCalendar(stream google.api.HttpBody)
|
53
|
+
# returns (stream google.api.HttpBody);
|
54
|
+
# rpc UpdateCalendar(stream google.api.HttpBody)
|
55
|
+
# returns (stream google.api.HttpBody);
|
56
|
+
# }
|
57
|
+
#
|
58
|
+
# Use of this type only changes how the request and response bodies are
|
59
|
+
# handled, all other features will continue to work unchanged.
|
60
|
+
# @!attribute [rw] content_type
|
61
|
+
# @return [::String]
|
62
|
+
# The HTTP Content-Type string representing the content type of the body.
|
63
|
+
# @!attribute [rw] data
|
64
|
+
# @return [::String]
|
65
|
+
# HTTP body binary data.
|
66
|
+
# @!attribute [rw] extensions
|
67
|
+
# @return [::Array<::Google::Protobuf::Any>]
|
68
|
+
# Application specific response metadata. Must be set in the first response
|
69
|
+
# for streaming APIs.
|
70
|
+
class HttpBody
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -38,6 +38,10 @@ module Google
|
|
38
38
|
end
|
39
39
|
|
40
40
|
# Specifies a build trigger to run and the source to use.
|
41
|
+
# @!attribute [rw] name
|
42
|
+
# @return [::String]
|
43
|
+
# The name of the `Trigger` to run.
|
44
|
+
# Format: `projects/{project}/locations/{location}/triggers/{trigger}`
|
41
45
|
# @!attribute [rw] project_id
|
42
46
|
# @return [::String]
|
43
47
|
# Required. ID of the project.
|
@@ -46,7 +50,7 @@ module Google
|
|
46
50
|
# Required. ID of the trigger.
|
47
51
|
# @!attribute [rw] source
|
48
52
|
# @return [::Google::Cloud::Build::V1::RepoSource]
|
49
|
-
#
|
53
|
+
# Source to build against this trigger.
|
50
54
|
class RunBuildTriggerRequest
|
51
55
|
include ::Google::Protobuf::MessageExts
|
52
56
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -80,7 +84,7 @@ module Google
|
|
80
84
|
# project ID requesting the build is assumed.
|
81
85
|
# @!attribute [rw] repo_name
|
82
86
|
# @return [::String]
|
83
|
-
#
|
87
|
+
# Name of the Cloud Source Repository.
|
84
88
|
# @!attribute [rw] branch_name
|
85
89
|
# @return [::String]
|
86
90
|
# Regex matching branches to build.
|
@@ -124,6 +128,28 @@ module Google
|
|
124
128
|
end
|
125
129
|
end
|
126
130
|
|
131
|
+
# Location of the source manifest in Google Cloud Storage.
|
132
|
+
# This feature is in Preview; see description
|
133
|
+
# [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
|
134
|
+
# @!attribute [rw] bucket
|
135
|
+
# @return [::String]
|
136
|
+
# Google Cloud Storage bucket containing the source manifest (see [Bucket
|
137
|
+
# Name
|
138
|
+
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
|
139
|
+
# @!attribute [rw] object
|
140
|
+
# @return [::String]
|
141
|
+
# Google Cloud Storage object containing the source manifest.
|
142
|
+
#
|
143
|
+
# This object must be a JSON file.
|
144
|
+
# @!attribute [rw] generation
|
145
|
+
# @return [::Integer]
|
146
|
+
# Google Cloud Storage generation for the object. If the generation is
|
147
|
+
# omitted, the latest generation will be used.
|
148
|
+
class StorageSourceManifest
|
149
|
+
include ::Google::Protobuf::MessageExts
|
150
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
151
|
+
end
|
152
|
+
|
127
153
|
# Location of the source in a supported storage service.
|
128
154
|
# @!attribute [rw] storage_source
|
129
155
|
# @return [::Google::Cloud::Build::V1::StorageSource]
|
@@ -132,6 +158,11 @@ module Google
|
|
132
158
|
# @return [::Google::Cloud::Build::V1::RepoSource]
|
133
159
|
# If provided, get the source from this location in a Cloud Source
|
134
160
|
# Repository.
|
161
|
+
# @!attribute [rw] storage_source_manifest
|
162
|
+
# @return [::Google::Cloud::Build::V1::StorageSourceManifest]
|
163
|
+
# If provided, get the source from this manifest in Google Cloud Storage.
|
164
|
+
# This feature is in Preview; see description
|
165
|
+
# [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
|
135
166
|
class Source
|
136
167
|
include ::Google::Protobuf::MessageExts
|
137
168
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -325,6 +356,7 @@ module Google
|
|
325
356
|
# build is created:
|
326
357
|
#
|
327
358
|
# - $PROJECT_ID: the project ID of the build.
|
359
|
+
# - $PROJECT_NUMBER: the project number of the build.
|
328
360
|
# - $BUILD_ID: the autogenerated ID of the build.
|
329
361
|
# - $REPO_NAME: the source repository name specified by RepoSource.
|
330
362
|
# - $BRANCH_NAME: the branch name specified by RepoSource.
|
@@ -430,6 +462,10 @@ module Google
|
|
430
462
|
# @!attribute [rw] secrets
|
431
463
|
# @return [::Array<::Google::Cloud::Build::V1::Secret>]
|
432
464
|
# Secrets to decrypt using Cloud Key Management Service.
|
465
|
+
# Note: Secret Manager is the recommended technique
|
466
|
+
# for managing sensitive data with Cloud Build. Use `available_secrets` to
|
467
|
+
# configure builds to access secrets from Secret Manager. For instructions,
|
468
|
+
# see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
|
433
469
|
# @!attribute [r] timing
|
434
470
|
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Build::V1::TimeSpan}]
|
435
471
|
# Output only. Stores timing information for phases of the build. Valid keys
|
@@ -446,12 +482,44 @@ module Google
|
|
446
482
|
# IAM service account whose credentials will be used at build runtime.
|
447
483
|
# Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
|
448
484
|
# ACCOUNT can be email address or uniqueId of the service account.
|
449
|
-
#
|
450
|
-
#
|
485
|
+
# @!attribute [rw] available_secrets
|
486
|
+
# @return [::Google::Cloud::Build::V1::Secrets]
|
487
|
+
# Secrets and secret environment variables.
|
488
|
+
# @!attribute [r] warnings
|
489
|
+
# @return [::Array<::Google::Cloud::Build::V1::Build::Warning>]
|
490
|
+
# Output only. Non-fatal problems encountered during the execution of the
|
491
|
+
# build.
|
451
492
|
class Build
|
452
493
|
include ::Google::Protobuf::MessageExts
|
453
494
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
454
495
|
|
496
|
+
# A non-fatal problem encountered during the execution of the build.
|
497
|
+
# @!attribute [rw] text
|
498
|
+
# @return [::String]
|
499
|
+
# Explanation of the warning generated.
|
500
|
+
# @!attribute [rw] priority
|
501
|
+
# @return [::Google::Cloud::Build::V1::Build::Warning::Priority]
|
502
|
+
# The priority for this warning.
|
503
|
+
class Warning
|
504
|
+
include ::Google::Protobuf::MessageExts
|
505
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
506
|
+
|
507
|
+
# The relative importance of this warning.
|
508
|
+
module Priority
|
509
|
+
# Should not be used.
|
510
|
+
PRIORITY_UNSPECIFIED = 0
|
511
|
+
|
512
|
+
# e.g. deprecation warnings and alternative feature highlights.
|
513
|
+
INFO = 1
|
514
|
+
|
515
|
+
# e.g. automated detection of possible issues with the build.
|
516
|
+
WARNING = 2
|
517
|
+
|
518
|
+
# e.g. alerts that a feature used in the build is pending removal
|
519
|
+
ALERT = 3
|
520
|
+
end
|
521
|
+
end
|
522
|
+
|
455
523
|
# @!attribute [rw] key
|
456
524
|
# @return [::String]
|
457
525
|
# @!attribute [rw] value
|
@@ -584,6 +652,11 @@ module Google
|
|
584
652
|
# @return [::Google::Cloud::Build::V1::RepoSource]
|
585
653
|
# A copy of the build's `source.repo_source`, if exists, with any
|
586
654
|
# revisions resolved.
|
655
|
+
# @!attribute [rw] resolved_storage_source_manifest
|
656
|
+
# @return [::Google::Cloud::Build::V1::StorageSourceManifest]
|
657
|
+
# A copy of the build's `source.storage_source_manifest`, if exists, with any
|
658
|
+
# revisions resolved.
|
659
|
+
# This feature is in Preview.
|
587
660
|
# @!attribute [r] file_hashes
|
588
661
|
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Build::V1::FileHashes}]
|
589
662
|
# Output only. Hash(es) of the build source, which can be used to verify that
|
@@ -644,8 +717,67 @@ module Google
|
|
644
717
|
end
|
645
718
|
end
|
646
719
|
|
720
|
+
# Secrets and secret environment variables.
|
721
|
+
# @!attribute [rw] secret_manager
|
722
|
+
# @return [::Array<::Google::Cloud::Build::V1::SecretManagerSecret>]
|
723
|
+
# Secrets in Secret Manager and associated secret environment variable.
|
724
|
+
# @!attribute [rw] inline
|
725
|
+
# @return [::Array<::Google::Cloud::Build::V1::InlineSecret>]
|
726
|
+
# Secrets encrypted with KMS key and the associated secret environment
|
727
|
+
# variable.
|
728
|
+
class Secrets
|
729
|
+
include ::Google::Protobuf::MessageExts
|
730
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
731
|
+
end
|
732
|
+
|
733
|
+
# Pairs a set of secret environment variables mapped to encrypted
|
734
|
+
# values with the Cloud KMS key to use to decrypt the value.
|
735
|
+
# @!attribute [rw] kms_key_name
|
736
|
+
# @return [::String]
|
737
|
+
# Resource name of Cloud KMS crypto key to decrypt the encrypted value.
|
738
|
+
# In format: projects/*/locations/*/keyRings/*/cryptoKeys/*
|
739
|
+
# @!attribute [rw] env_map
|
740
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
741
|
+
# Map of environment variable name to its encrypted value.
|
742
|
+
#
|
743
|
+
# Secret environment variables must be unique across all of a build's
|
744
|
+
# secrets, and must be used by at least one build step. Values can be at most
|
745
|
+
# 64 KB in size. There can be at most 100 secret values across all of a
|
746
|
+
# build's secrets.
|
747
|
+
class InlineSecret
|
748
|
+
include ::Google::Protobuf::MessageExts
|
749
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
750
|
+
|
751
|
+
# @!attribute [rw] key
|
752
|
+
# @return [::String]
|
753
|
+
# @!attribute [rw] value
|
754
|
+
# @return [::String]
|
755
|
+
class EnvMapEntry
|
756
|
+
include ::Google::Protobuf::MessageExts
|
757
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
758
|
+
end
|
759
|
+
end
|
760
|
+
|
761
|
+
# Pairs a secret environment variable with a SecretVersion in Secret Manager.
|
762
|
+
# @!attribute [rw] version_name
|
763
|
+
# @return [::String]
|
764
|
+
# Resource name of the SecretVersion. In format:
|
765
|
+
# projects/*/secrets/*/versions/*
|
766
|
+
# @!attribute [rw] env
|
767
|
+
# @return [::String]
|
768
|
+
# Environment variable name to associate with the secret.
|
769
|
+
# Secret environment variables must be unique across all of a build's
|
770
|
+
# secrets, and must be used by at least one build step.
|
771
|
+
class SecretManagerSecret
|
772
|
+
include ::Google::Protobuf::MessageExts
|
773
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
774
|
+
end
|
775
|
+
|
647
776
|
# Pairs a set of secret environment variables containing encrypted
|
648
777
|
# values with the Cloud KMS key to use to decrypt the value.
|
778
|
+
# Note: Use `kmsKeyName` with `available_secrets` instead of using
|
779
|
+
# `kmsKeyName` with `secret`. For instructions see:
|
780
|
+
# https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
|
649
781
|
# @!attribute [rw] kms_key_name
|
650
782
|
# @return [::String]
|
651
783
|
# Cloud KMS key name to use to decrypt these envs.
|
@@ -716,7 +848,15 @@ module Google
|
|
716
848
|
# Number of results to return in the list.
|
717
849
|
# @!attribute [rw] page_token
|
718
850
|
# @return [::String]
|
719
|
-
#
|
851
|
+
# The page token for the next page of Builds.
|
852
|
+
#
|
853
|
+
# If unspecified, the first page of results is returned.
|
854
|
+
#
|
855
|
+
# If the token is rejected for any reason, INVALID_ARGUMENT will be thrown.
|
856
|
+
# In this case, the token should be discarded, and pagination should be
|
857
|
+
# restarted from the first page of results.
|
858
|
+
#
|
859
|
+
# See https://google.aip.dev/158 for more.
|
720
860
|
# @!attribute [rw] filter
|
721
861
|
# @return [::String]
|
722
862
|
# The raw filter text to constrain the results.
|
@@ -732,6 +872,7 @@ module Google
|
|
732
872
|
# @!attribute [rw] next_page_token
|
733
873
|
# @return [::String]
|
734
874
|
# Token to receive the next page of results.
|
875
|
+
# This will be absent if the end of the response list has been reached.
|
735
876
|
class ListBuildsResponse
|
736
877
|
include ::Google::Protobuf::MessageExts
|
737
878
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -740,7 +881,7 @@ module Google
|
|
740
881
|
# Request to cancel an ongoing build.
|
741
882
|
# @!attribute [rw] name
|
742
883
|
# @return [::String]
|
743
|
-
# The name of the `Build` to
|
884
|
+
# The name of the `Build` to cancel.
|
744
885
|
# Format: `projects/{project}/locations/{location}/builds/{build}`
|
745
886
|
# @!attribute [rw] project_id
|
746
887
|
# @return [::String]
|
@@ -755,6 +896,11 @@ module Google
|
|
755
896
|
|
756
897
|
# Configuration for an automated build in response to source repository
|
757
898
|
# changes.
|
899
|
+
# @!attribute [rw] resource_name
|
900
|
+
# @return [::String]
|
901
|
+
# The `Trigger` name with format:
|
902
|
+
# `projects/{project}/locations/{location}/triggers/{trigger}`, where
|
903
|
+
# \\{trigger} is a unique identifier generated by the service.
|
758
904
|
# @!attribute [r] id
|
759
905
|
# @return [::String]
|
760
906
|
# Output only. Unique identifier of the trigger.
|
@@ -787,13 +933,32 @@ module Google
|
|
787
933
|
# a build whenever a GitHub event is received.
|
788
934
|
#
|
789
935
|
# Mutually exclusive with `trigger_template`.
|
936
|
+
# @!attribute [rw] pubsub_config
|
937
|
+
# @return [::Google::Cloud::Build::V1::PubsubConfig]
|
938
|
+
# PubsubConfig describes the configuration of a trigger that
|
939
|
+
# creates a build whenever a Pub/Sub message is published.
|
940
|
+
# @!attribute [rw] webhook_config
|
941
|
+
# @return [::Google::Cloud::Build::V1::WebhookConfig]
|
942
|
+
# WebhookConfig describes the configuration of a trigger that
|
943
|
+
# creates a build whenever a webhook is sent to a trigger's webhook URL.
|
944
|
+
# @!attribute [rw] autodetect
|
945
|
+
# @return [::Boolean]
|
946
|
+
# Autodetect build configuration. The following precedence is used (case
|
947
|
+
# insensitive):
|
948
|
+
#
|
949
|
+
# 1. cloudbuild.yaml
|
950
|
+
# 2. cloudbuild.yml
|
951
|
+
# 3. cloudbuild.json
|
952
|
+
# 4. Dockerfile
|
953
|
+
#
|
954
|
+
# Currently only available for GitHub App Triggers.
|
790
955
|
# @!attribute [rw] build
|
791
956
|
# @return [::Google::Cloud::Build::V1::Build]
|
792
957
|
# Contents of the build template.
|
793
958
|
# @!attribute [rw] filename
|
794
959
|
# @return [::String]
|
795
|
-
# Path, from the source root, to
|
796
|
-
#
|
960
|
+
# Path, from the source root, to the build configuration file
|
961
|
+
# (i.e. cloudbuild.yaml).
|
797
962
|
# @!attribute [r] create_time
|
798
963
|
# @return [::Google::Protobuf::Timestamp]
|
799
964
|
# Output only. Time when the trigger was created.
|
@@ -825,6 +990,9 @@ module Google
|
|
825
990
|
# filter and included_files is not empty, then we make sure that at
|
826
991
|
# least one of those files matches a included_files glob. If not,
|
827
992
|
# then we do not trigger a build.
|
993
|
+
# @!attribute [rw] filter
|
994
|
+
# @return [::String]
|
995
|
+
# Optional. A Common Expression Language string.
|
828
996
|
class BuildTrigger
|
829
997
|
include ::Google::Protobuf::MessageExts
|
830
998
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -866,6 +1034,74 @@ module Google
|
|
866
1034
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
867
1035
|
end
|
868
1036
|
|
1037
|
+
# PubsubConfig describes the configuration of a trigger that
|
1038
|
+
# creates a build whenever a Pub/Sub message is published.
|
1039
|
+
# @!attribute [r] subscription
|
1040
|
+
# @return [::String]
|
1041
|
+
# Output only. Name of the subscription. Format is
|
1042
|
+
# `projects/{project}/subscriptions/{subscription}`.
|
1043
|
+
# @!attribute [rw] topic
|
1044
|
+
# @return [::String]
|
1045
|
+
# The name of the topic from which this subscription is receiving messages.
|
1046
|
+
# Format is `projects/{project}/topics/{topic}`.
|
1047
|
+
# @!attribute [rw] service_account_email
|
1048
|
+
# @return [::String]
|
1049
|
+
# Service account that will make the push request.
|
1050
|
+
# @!attribute [rw] state
|
1051
|
+
# @return [::Google::Cloud::Build::V1::PubsubConfig::State]
|
1052
|
+
# Potential issues with the underlying Pub/Sub subscription configuration.
|
1053
|
+
# Only populated on get requests.
|
1054
|
+
class PubsubConfig
|
1055
|
+
include ::Google::Protobuf::MessageExts
|
1056
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1057
|
+
|
1058
|
+
# Enumerates potential issues with the underlying Pub/Sub subscription
|
1059
|
+
# configuration.
|
1060
|
+
module State
|
1061
|
+
# The subscription configuration has not been checked.
|
1062
|
+
STATE_UNSPECIFIED = 0
|
1063
|
+
|
1064
|
+
# The Pub/Sub subscription is properly configured.
|
1065
|
+
OK = 1
|
1066
|
+
|
1067
|
+
# The subscription has been deleted.
|
1068
|
+
SUBSCRIPTION_DELETED = 2
|
1069
|
+
|
1070
|
+
# The topic has been deleted.
|
1071
|
+
TOPIC_DELETED = 3
|
1072
|
+
|
1073
|
+
# Some of the subscription's field are misconfigured.
|
1074
|
+
SUBSCRIPTION_MISCONFIGURED = 4
|
1075
|
+
end
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
# WebhookConfig describes the configuration of a trigger that
|
1079
|
+
# creates a build whenever a webhook is sent to a trigger's webhook URL.
|
1080
|
+
# @!attribute [rw] secret
|
1081
|
+
# @return [::String]
|
1082
|
+
# Required. Resource name for the secret required as a URL parameter.
|
1083
|
+
# @!attribute [rw] state
|
1084
|
+
# @return [::Google::Cloud::Build::V1::WebhookConfig::State]
|
1085
|
+
# Potential issues with the underlying Pub/Sub subscription configuration.
|
1086
|
+
# Only populated on get requests.
|
1087
|
+
class WebhookConfig
|
1088
|
+
include ::Google::Protobuf::MessageExts
|
1089
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1090
|
+
|
1091
|
+
# Enumerates potential issues with the Secret Manager secret provided by the
|
1092
|
+
# user.
|
1093
|
+
module State
|
1094
|
+
# The webhook auth configuration not been checked.
|
1095
|
+
STATE_UNSPECIFIED = 0
|
1096
|
+
|
1097
|
+
# The auth configuration is properly setup.
|
1098
|
+
OK = 1
|
1099
|
+
|
1100
|
+
# The secret provided in auth_method has been deleted.
|
1101
|
+
SECRET_DELETED = 2
|
1102
|
+
end
|
1103
|
+
end
|
1104
|
+
|
869
1105
|
# PullRequestFilter contains filter properties for matching GitHub Pull
|
870
1106
|
# Requests.
|
871
1107
|
# @!attribute [rw] branch
|
@@ -893,6 +1129,10 @@ module Google
|
|
893
1129
|
# Enforce that repository owners or collaborators must comment on Pull
|
894
1130
|
# Requests before builds are triggered.
|
895
1131
|
COMMENTS_ENABLED = 1
|
1132
|
+
|
1133
|
+
# Enforce that repository owners or collaborators must comment on external
|
1134
|
+
# contributors' Pull Requests before builds are triggered.
|
1135
|
+
COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY = 2
|
896
1136
|
end
|
897
1137
|
end
|
898
1138
|
|
@@ -919,6 +1159,10 @@ module Google
|
|
919
1159
|
end
|
920
1160
|
|
921
1161
|
# Request to create a new `BuildTrigger`.
|
1162
|
+
# @!attribute [rw] parent
|
1163
|
+
# @return [::String]
|
1164
|
+
# The parent resource where this trigger will be created.
|
1165
|
+
# Format: `projects/{project}/locations/{location}`
|
922
1166
|
# @!attribute [rw] project_id
|
923
1167
|
# @return [::String]
|
924
1168
|
# Required. ID of the project for which to configure automatic builds.
|
@@ -931,6 +1175,10 @@ module Google
|
|
931
1175
|
end
|
932
1176
|
|
933
1177
|
# Returns the `BuildTrigger` with the specified ID.
|
1178
|
+
# @!attribute [rw] name
|
1179
|
+
# @return [::String]
|
1180
|
+
# The name of the `Trigger` to retrieve.
|
1181
|
+
# Format: `projects/{project}/locations/{location}/triggers/{trigger}`
|
934
1182
|
# @!attribute [rw] project_id
|
935
1183
|
# @return [::String]
|
936
1184
|
# Required. ID of the project that owns the trigger.
|
@@ -943,6 +1191,10 @@ module Google
|
|
943
1191
|
end
|
944
1192
|
|
945
1193
|
# Request to list existing `BuildTriggers`.
|
1194
|
+
# @!attribute [rw] parent
|
1195
|
+
# @return [::String]
|
1196
|
+
# The parent of the collection of `Triggers`.
|
1197
|
+
# Format: `projects/{project}/locations/{location}`
|
946
1198
|
# @!attribute [rw] project_id
|
947
1199
|
# @return [::String]
|
948
1200
|
# Required. ID of the project for which to list BuildTriggers.
|
@@ -970,6 +1222,10 @@ module Google
|
|
970
1222
|
end
|
971
1223
|
|
972
1224
|
# Request to delete a `BuildTrigger`.
|
1225
|
+
# @!attribute [rw] name
|
1226
|
+
# @return [::String]
|
1227
|
+
# The name of the `Trigger` to delete.
|
1228
|
+
# Format: `projects/{project}/locations/{location}/triggers/{trigger}`
|
973
1229
|
# @!attribute [rw] project_id
|
974
1230
|
# @return [::String]
|
975
1231
|
# Required. ID of the project that owns the trigger.
|
@@ -1037,7 +1293,7 @@ module Google
|
|
1037
1293
|
# Option to specify a `WorkerPool` for the build.
|
1038
1294
|
# Format: projects/\\{project}/locations/\\{location}/workerPools/\\{workerPool}
|
1039
1295
|
#
|
1040
|
-
# This field is
|
1296
|
+
# This field is in beta and is available only to restricted users.
|
1041
1297
|
# @!attribute [rw] logging
|
1042
1298
|
# @return [::Google::Cloud::Build::V1::BuildOptions::LoggingMode]
|
1043
1299
|
# Option to specify the logging mode, which determines if and where build
|
@@ -1092,6 +1348,12 @@ module Google
|
|
1092
1348
|
|
1093
1349
|
# Highcpu machine with 32 CPUs.
|
1094
1350
|
N1_HIGHCPU_32 = 2
|
1351
|
+
|
1352
|
+
# Highcpu e2 machine with 8 CPUs.
|
1353
|
+
E2_HIGHCPU_8 = 5
|
1354
|
+
|
1355
|
+
# Highcpu e2 machine with 32 CPUs.
|
1356
|
+
E2_HIGHCPU_32 = 6
|
1095
1357
|
end
|
1096
1358
|
|
1097
1359
|
# Specifies the behavior when there is an error in the substitution checks.
|
@@ -1138,11 +1400,40 @@ module Google
|
|
1138
1400
|
CLOUD_LOGGING_ONLY = 5
|
1139
1401
|
|
1140
1402
|
# Turn off all logging. No build logs will be captured.
|
1141
|
-
# Next ID: 6
|
1142
1403
|
NONE = 4
|
1143
1404
|
end
|
1144
1405
|
end
|
1145
1406
|
|
1407
|
+
# ReceiveTriggerWebhookRequest [Experimental] is the request object accepted by
|
1408
|
+
# the ReceiveTriggerWebhook method.
|
1409
|
+
# @!attribute [rw] name
|
1410
|
+
# @return [::String]
|
1411
|
+
# The name of the `ReceiveTriggerWebhook` to retrieve.
|
1412
|
+
# Format: `projects/{project}/locations/{location}/triggers/{trigger}`
|
1413
|
+
# @!attribute [rw] body
|
1414
|
+
# @return [::Google::Api::HttpBody]
|
1415
|
+
# HTTP request body.
|
1416
|
+
# @!attribute [rw] project_id
|
1417
|
+
# @return [::String]
|
1418
|
+
# Project in which the specified trigger lives
|
1419
|
+
# @!attribute [rw] trigger
|
1420
|
+
# @return [::String]
|
1421
|
+
# Name of the trigger to run the payload against
|
1422
|
+
# @!attribute [rw] secret
|
1423
|
+
# @return [::String]
|
1424
|
+
# Secret token used for authorization if an OAuth token isn't provided.
|
1425
|
+
class ReceiveTriggerWebhookRequest
|
1426
|
+
include ::Google::Protobuf::MessageExts
|
1427
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1428
|
+
end
|
1429
|
+
|
1430
|
+
# ReceiveTriggerWebhookResponse [Experimental] is the response object for the
|
1431
|
+
# ReceiveTriggerWebhook method.
|
1432
|
+
class ReceiveTriggerWebhookResponse
|
1433
|
+
include ::Google::Protobuf::MessageExts
|
1434
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1435
|
+
end
|
1436
|
+
|
1146
1437
|
# Configuration for a WorkerPool to run the builds.
|
1147
1438
|
#
|
1148
1439
|
# Workers are machines that Cloud Build uses to run your builds. By default,
|