google-cloud-build-v1 0.8.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/build/v1/cloud_build/client.rb +256 -89
- data/lib/google/cloud/build/v1/cloud_build/operations.rb +30 -21
- data/lib/google/cloud/build/v1/cloud_build/paths.rb +36 -0
- data/lib/google/cloud/build/v1/version.rb +1 -1
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_pb.rb +122 -33
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_services_pb.rb +15 -18
- data/proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb +393 -124
- metadata +4 -4
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
# end
|
494
|
+
# @example
|
495
|
+
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# The hostname or hostname:port of the service endpoint.
|
@@ -144,6 +144,23 @@ module Google
|
|
144
144
|
"projects/#{project}/locations/#{location}"
|
145
145
|
end
|
146
146
|
|
147
|
+
##
|
148
|
+
# Create a fully-qualified Network resource string.
|
149
|
+
#
|
150
|
+
# The resource will be in the following format:
|
151
|
+
#
|
152
|
+
# `projects/{project}/global/networks/{network}`
|
153
|
+
#
|
154
|
+
# @param project [String]
|
155
|
+
# @param network [String]
|
156
|
+
#
|
157
|
+
# @return [::String]
|
158
|
+
def network_path project:, network:
|
159
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
160
|
+
|
161
|
+
"projects/#{project}/global/networks/#{network}"
|
162
|
+
end
|
163
|
+
|
147
164
|
##
|
148
165
|
# Create a fully-qualified Project resource string.
|
149
166
|
#
|
@@ -228,6 +245,25 @@ module Google
|
|
228
245
|
"projects/#{project}/topics/#{topic}"
|
229
246
|
end
|
230
247
|
|
248
|
+
##
|
249
|
+
# Create a fully-qualified WorkerPool resource string.
|
250
|
+
#
|
251
|
+
# The resource will be in the following format:
|
252
|
+
#
|
253
|
+
# `projects/{project}/locations/{location}/workerPools/{worker_pool}`
|
254
|
+
#
|
255
|
+
# @param project [String]
|
256
|
+
# @param location [String]
|
257
|
+
# @param worker_pool [String]
|
258
|
+
#
|
259
|
+
# @return [::String]
|
260
|
+
def worker_pool_path project:, location:, worker_pool:
|
261
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
262
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
263
|
+
|
264
|
+
"projects/#{project}/locations/#{location}/workerPools/#{worker_pool}"
|
265
|
+
end
|
266
|
+
|
231
267
|
extend self
|
232
268
|
end
|
233
269
|
end
|
@@ -116,9 +116,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
116
116
|
repeated :tags, :string, 31
|
117
117
|
repeated :secrets, :message, 32, "google.devtools.cloudbuild.v1.Secret"
|
118
118
|
map :timing, :string, :message, 33, "google.devtools.cloudbuild.v1.TimeSpan"
|
119
|
+
optional :approval, :message, 44, "google.devtools.cloudbuild.v1.BuildApproval"
|
119
120
|
optional :service_account, :string, 42
|
120
121
|
optional :available_secrets, :message, 47, "google.devtools.cloudbuild.v1.Secrets"
|
121
122
|
repeated :warnings, :message, 49, "google.devtools.cloudbuild.v1.Build.Warning"
|
123
|
+
optional :failure_info, :message, 51, "google.devtools.cloudbuild.v1.Build.FailureInfo"
|
122
124
|
end
|
123
125
|
add_message "google.devtools.cloudbuild.v1.Build.Warning" do
|
124
126
|
optional :text, :string, 1
|
@@ -130,8 +132,22 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
130
132
|
value :WARNING, 2
|
131
133
|
value :ALERT, 3
|
132
134
|
end
|
135
|
+
add_message "google.devtools.cloudbuild.v1.Build.FailureInfo" do
|
136
|
+
optional :type, :enum, 1, "google.devtools.cloudbuild.v1.Build.FailureInfo.FailureType"
|
137
|
+
optional :detail, :string, 2
|
138
|
+
end
|
139
|
+
add_enum "google.devtools.cloudbuild.v1.Build.FailureInfo.FailureType" do
|
140
|
+
value :FAILURE_TYPE_UNSPECIFIED, 0
|
141
|
+
value :PUSH_FAILED, 1
|
142
|
+
value :PUSH_IMAGE_NOT_FOUND, 2
|
143
|
+
value :PUSH_NOT_AUTHORIZED, 3
|
144
|
+
value :LOGGING_FAILURE, 4
|
145
|
+
value :USER_BUILD_STEP, 5
|
146
|
+
value :FETCH_SOURCE_FAILED, 6
|
147
|
+
end
|
133
148
|
add_enum "google.devtools.cloudbuild.v1.Build.Status" do
|
134
149
|
value :STATUS_UNKNOWN, 0
|
150
|
+
value :PENDING, 10
|
135
151
|
value :QUEUED, 1
|
136
152
|
value :WORKING, 2
|
137
153
|
value :SUCCESS, 3
|
@@ -217,6 +233,37 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
217
233
|
optional :project_id, :string, 1
|
218
234
|
optional :id, :string, 2
|
219
235
|
end
|
236
|
+
add_message "google.devtools.cloudbuild.v1.ApproveBuildRequest" do
|
237
|
+
optional :name, :string, 1
|
238
|
+
optional :approval_result, :message, 2, "google.devtools.cloudbuild.v1.ApprovalResult"
|
239
|
+
end
|
240
|
+
add_message "google.devtools.cloudbuild.v1.BuildApproval" do
|
241
|
+
optional :state, :enum, 1, "google.devtools.cloudbuild.v1.BuildApproval.State"
|
242
|
+
optional :config, :message, 2, "google.devtools.cloudbuild.v1.ApprovalConfig"
|
243
|
+
optional :result, :message, 3, "google.devtools.cloudbuild.v1.ApprovalResult"
|
244
|
+
end
|
245
|
+
add_enum "google.devtools.cloudbuild.v1.BuildApproval.State" do
|
246
|
+
value :STATE_UNSPECIFIED, 0
|
247
|
+
value :PENDING, 1
|
248
|
+
value :APPROVED, 2
|
249
|
+
value :REJECTED, 3
|
250
|
+
value :CANCELLED, 5
|
251
|
+
end
|
252
|
+
add_message "google.devtools.cloudbuild.v1.ApprovalConfig" do
|
253
|
+
optional :approval_required, :bool, 1
|
254
|
+
end
|
255
|
+
add_message "google.devtools.cloudbuild.v1.ApprovalResult" do
|
256
|
+
optional :approver_account, :string, 2
|
257
|
+
optional :approval_time, :message, 3, "google.protobuf.Timestamp"
|
258
|
+
optional :decision, :enum, 4, "google.devtools.cloudbuild.v1.ApprovalResult.Decision"
|
259
|
+
optional :comment, :string, 5
|
260
|
+
optional :url, :string, 6
|
261
|
+
end
|
262
|
+
add_enum "google.devtools.cloudbuild.v1.ApprovalResult.Decision" do
|
263
|
+
value :DECISION_UNSPECIFIED, 0
|
264
|
+
value :APPROVED, 1
|
265
|
+
value :REJECTED, 2
|
266
|
+
end
|
220
267
|
add_message "google.devtools.cloudbuild.v1.BuildTrigger" do
|
221
268
|
optional :resource_name, :string, 34
|
222
269
|
optional :id, :string, 1
|
@@ -330,11 +377,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
330
377
|
optional :dynamic_substitutions, :bool, 17
|
331
378
|
optional :log_streaming_option, :enum, 5, "google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption"
|
332
379
|
optional :worker_pool, :string, 7
|
380
|
+
optional :pool, :message, 19, "google.devtools.cloudbuild.v1.BuildOptions.PoolOption"
|
333
381
|
optional :logging, :enum, 11, "google.devtools.cloudbuild.v1.BuildOptions.LoggingMode"
|
334
382
|
repeated :env, :string, 12
|
335
383
|
repeated :secret_env, :string, 13
|
336
384
|
repeated :volumes, :message, 14, "google.devtools.cloudbuild.v1.Volume"
|
337
385
|
end
|
386
|
+
add_message "google.devtools.cloudbuild.v1.BuildOptions.PoolOption" do
|
387
|
+
optional :name, :string, 1
|
388
|
+
end
|
338
389
|
add_enum "google.devtools.cloudbuild.v1.BuildOptions.VerifyOption" do
|
339
390
|
value :NOT_VERIFIED, 0
|
340
391
|
value :VERIFIED, 1
|
@@ -373,61 +424,86 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
373
424
|
add_message "google.devtools.cloudbuild.v1.ReceiveTriggerWebhookResponse" do
|
374
425
|
end
|
375
426
|
add_message "google.devtools.cloudbuild.v1.WorkerPool" do
|
376
|
-
optional :name, :string,
|
377
|
-
optional :
|
378
|
-
optional :
|
379
|
-
|
380
|
-
optional :
|
381
|
-
|
382
|
-
optional :
|
383
|
-
optional :
|
384
|
-
optional :
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
value :
|
391
|
-
value :US_EAST1, 3
|
392
|
-
value :US_EAST4, 4
|
393
|
-
end
|
394
|
-
add_enum "google.devtools.cloudbuild.v1.WorkerPool.Status" do
|
395
|
-
value :STATUS_UNSPECIFIED, 0
|
427
|
+
optional :name, :string, 1
|
428
|
+
optional :display_name, :string, 2
|
429
|
+
optional :uid, :string, 3
|
430
|
+
map :annotations, :string, :string, 4
|
431
|
+
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
432
|
+
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
433
|
+
optional :delete_time, :message, 7, "google.protobuf.Timestamp"
|
434
|
+
optional :state, :enum, 8, "google.devtools.cloudbuild.v1.WorkerPool.State"
|
435
|
+
optional :etag, :string, 11
|
436
|
+
oneof :config do
|
437
|
+
optional :private_pool_v1_config, :message, 12, "google.devtools.cloudbuild.v1.PrivatePoolV1Config"
|
438
|
+
end
|
439
|
+
end
|
440
|
+
add_enum "google.devtools.cloudbuild.v1.WorkerPool.State" do
|
441
|
+
value :STATE_UNSPECIFIED, 0
|
396
442
|
value :CREATING, 1
|
397
443
|
value :RUNNING, 2
|
398
444
|
value :DELETING, 3
|
399
445
|
value :DELETED, 4
|
400
446
|
end
|
401
|
-
add_message "google.devtools.cloudbuild.v1.
|
447
|
+
add_message "google.devtools.cloudbuild.v1.PrivatePoolV1Config" do
|
448
|
+
optional :worker_config, :message, 1, "google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig"
|
449
|
+
optional :network_config, :message, 2, "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig"
|
450
|
+
end
|
451
|
+
add_message "google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig" do
|
402
452
|
optional :machine_type, :string, 1
|
403
453
|
optional :disk_size_gb, :int64, 2
|
404
|
-
optional :network, :message, 3, "google.devtools.cloudbuild.v1.Network"
|
405
|
-
optional :tag, :string, 4
|
406
454
|
end
|
407
|
-
add_message "google.devtools.cloudbuild.v1.
|
408
|
-
optional :
|
409
|
-
optional :
|
410
|
-
|
455
|
+
add_message "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig" do
|
456
|
+
optional :peered_network, :string, 1
|
457
|
+
optional :egress_option, :enum, 2, "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption"
|
458
|
+
end
|
459
|
+
add_enum "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption" do
|
460
|
+
value :EGRESS_OPTION_UNSPECIFIED, 0
|
461
|
+
value :NO_PUBLIC_EGRESS, 1
|
462
|
+
value :PUBLIC_EGRESS, 2
|
411
463
|
end
|
412
464
|
add_message "google.devtools.cloudbuild.v1.CreateWorkerPoolRequest" do
|
413
465
|
optional :parent, :string, 1
|
414
466
|
optional :worker_pool, :message, 2, "google.devtools.cloudbuild.v1.WorkerPool"
|
467
|
+
optional :worker_pool_id, :string, 3
|
468
|
+
optional :validate_only, :bool, 4
|
415
469
|
end
|
416
470
|
add_message "google.devtools.cloudbuild.v1.GetWorkerPoolRequest" do
|
417
471
|
optional :name, :string, 1
|
418
472
|
end
|
419
473
|
add_message "google.devtools.cloudbuild.v1.DeleteWorkerPoolRequest" do
|
420
474
|
optional :name, :string, 1
|
475
|
+
optional :etag, :string, 2
|
476
|
+
optional :allow_missing, :bool, 3
|
477
|
+
optional :validate_only, :bool, 4
|
421
478
|
end
|
422
479
|
add_message "google.devtools.cloudbuild.v1.UpdateWorkerPoolRequest" do
|
423
|
-
optional :
|
424
|
-
optional :
|
480
|
+
optional :worker_pool, :message, 1, "google.devtools.cloudbuild.v1.WorkerPool"
|
481
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
482
|
+
optional :validate_only, :bool, 4
|
425
483
|
end
|
426
484
|
add_message "google.devtools.cloudbuild.v1.ListWorkerPoolsRequest" do
|
427
485
|
optional :parent, :string, 1
|
486
|
+
optional :page_size, :int32, 2
|
487
|
+
optional :page_token, :string, 3
|
428
488
|
end
|
429
489
|
add_message "google.devtools.cloudbuild.v1.ListWorkerPoolsResponse" do
|
430
490
|
repeated :worker_pools, :message, 1, "google.devtools.cloudbuild.v1.WorkerPool"
|
491
|
+
optional :next_page_token, :string, 2
|
492
|
+
end
|
493
|
+
add_message "google.devtools.cloudbuild.v1.CreateWorkerPoolOperationMetadata" do
|
494
|
+
optional :worker_pool, :string, 1
|
495
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
496
|
+
optional :complete_time, :message, 3, "google.protobuf.Timestamp"
|
497
|
+
end
|
498
|
+
add_message "google.devtools.cloudbuild.v1.UpdateWorkerPoolOperationMetadata" do
|
499
|
+
optional :worker_pool, :string, 1
|
500
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
501
|
+
optional :complete_time, :message, 3, "google.protobuf.Timestamp"
|
502
|
+
end
|
503
|
+
add_message "google.devtools.cloudbuild.v1.DeleteWorkerPoolOperationMetadata" do
|
504
|
+
optional :worker_pool, :string, 1
|
505
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
506
|
+
optional :complete_time, :message, 3, "google.protobuf.Timestamp"
|
431
507
|
end
|
432
508
|
end
|
433
509
|
end
|
@@ -450,6 +526,8 @@ module Google
|
|
450
526
|
Build = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build").msgclass
|
451
527
|
Build::Warning = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Warning").msgclass
|
452
528
|
Build::Warning::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Warning.Priority").enummodule
|
529
|
+
Build::FailureInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.FailureInfo").msgclass
|
530
|
+
Build::FailureInfo::FailureType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.FailureInfo.FailureType").enummodule
|
453
531
|
Build::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Status").enummodule
|
454
532
|
Artifacts = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts").msgclass
|
455
533
|
Artifacts::ArtifactObjects = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects").msgclass
|
@@ -468,6 +546,12 @@ module Google
|
|
468
546
|
ListBuildsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ListBuildsRequest").msgclass
|
469
547
|
ListBuildsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ListBuildsResponse").msgclass
|
470
548
|
CancelBuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.CancelBuildRequest").msgclass
|
549
|
+
ApproveBuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ApproveBuildRequest").msgclass
|
550
|
+
BuildApproval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildApproval").msgclass
|
551
|
+
BuildApproval::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildApproval.State").enummodule
|
552
|
+
ApprovalConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ApprovalConfig").msgclass
|
553
|
+
ApprovalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ApprovalResult").msgclass
|
554
|
+
ApprovalResult::Decision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ApprovalResult.Decision").enummodule
|
471
555
|
BuildTrigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildTrigger").msgclass
|
472
556
|
GitHubEventsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.GitHubEventsConfig").msgclass
|
473
557
|
PubsubConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PubsubConfig").msgclass
|
@@ -484,6 +568,7 @@ module Google
|
|
484
568
|
DeleteBuildTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.DeleteBuildTriggerRequest").msgclass
|
485
569
|
UpdateBuildTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.UpdateBuildTriggerRequest").msgclass
|
486
570
|
BuildOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions").msgclass
|
571
|
+
BuildOptions::PoolOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.PoolOption").msgclass
|
487
572
|
BuildOptions::VerifyOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.VerifyOption").enummodule
|
488
573
|
BuildOptions::MachineType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.MachineType").enummodule
|
489
574
|
BuildOptions::SubstitutionOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption").enummodule
|
@@ -492,16 +577,20 @@ module Google
|
|
492
577
|
ReceiveTriggerWebhookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ReceiveTriggerWebhookRequest").msgclass
|
493
578
|
ReceiveTriggerWebhookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ReceiveTriggerWebhookResponse").msgclass
|
494
579
|
WorkerPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WorkerPool").msgclass
|
495
|
-
WorkerPool::
|
496
|
-
|
497
|
-
WorkerConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WorkerConfig").msgclass
|
498
|
-
|
580
|
+
WorkerPool::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WorkerPool.State").enummodule
|
581
|
+
PrivatePoolV1Config = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PrivatePoolV1Config").msgclass
|
582
|
+
PrivatePoolV1Config::WorkerConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig").msgclass
|
583
|
+
PrivatePoolV1Config::NetworkConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig").msgclass
|
584
|
+
PrivatePoolV1Config::NetworkConfig::EgressOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption").enummodule
|
499
585
|
CreateWorkerPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.CreateWorkerPoolRequest").msgclass
|
500
586
|
GetWorkerPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.GetWorkerPoolRequest").msgclass
|
501
587
|
DeleteWorkerPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.DeleteWorkerPoolRequest").msgclass
|
502
588
|
UpdateWorkerPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.UpdateWorkerPoolRequest").msgclass
|
503
589
|
ListWorkerPoolsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ListWorkerPoolsRequest").msgclass
|
504
590
|
ListWorkerPoolsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ListWorkerPoolsResponse").msgclass
|
591
|
+
CreateWorkerPoolOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.CreateWorkerPoolOperationMetadata").msgclass
|
592
|
+
UpdateWorkerPoolOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.UpdateWorkerPoolOperationMetadata").msgclass
|
593
|
+
DeleteWorkerPoolOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.DeleteWorkerPoolOperationMetadata").msgclass
|
505
594
|
end
|
506
595
|
end
|
507
596
|
end
|
@@ -86,6 +86,13 @@ module Google
|
|
86
86
|
# object, which may or may not be available depending on the bucket's
|
87
87
|
# lifecycle management settings.
|
88
88
|
rpc :RetryBuild, ::Google::Cloud::Build::V1::RetryBuildRequest, ::Google::Longrunning::Operation
|
89
|
+
# Approves or rejects a pending build.
|
90
|
+
#
|
91
|
+
# If approved, the returned LRO will be analogous to the LRO returned from
|
92
|
+
# a CreateBuild call.
|
93
|
+
#
|
94
|
+
# If rejected, the returned LRO will be immediately done.
|
95
|
+
rpc :ApproveBuild, ::Google::Cloud::Build::V1::ApproveBuildRequest, ::Google::Longrunning::Operation
|
89
96
|
# Creates a new `BuildTrigger`.
|
90
97
|
#
|
91
98
|
# This API is experimental.
|
@@ -111,25 +118,15 @@ module Google
|
|
111
118
|
# ReceiveTriggerWebhook [Experimental] is called when the API receives a
|
112
119
|
# webhook request targeted at a specific trigger.
|
113
120
|
rpc :ReceiveTriggerWebhook, ::Google::Cloud::Build::V1::ReceiveTriggerWebhookRequest, ::Google::Cloud::Build::V1::ReceiveTriggerWebhookResponse
|
114
|
-
# Creates a `WorkerPool
|
115
|
-
|
116
|
-
#
|
117
|
-
rpc :CreateWorkerPool, ::Google::Cloud::Build::V1::CreateWorkerPoolRequest, ::Google::Cloud::Build::V1::WorkerPool
|
118
|
-
# Returns information about a `WorkerPool`.
|
119
|
-
#
|
120
|
-
# This API is experimental.
|
121
|
+
# Creates a `WorkerPool`.
|
122
|
+
rpc :CreateWorkerPool, ::Google::Cloud::Build::V1::CreateWorkerPoolRequest, ::Google::Longrunning::Operation
|
123
|
+
# Returns details of a `WorkerPool`.
|
121
124
|
rpc :GetWorkerPool, ::Google::Cloud::Build::V1::GetWorkerPoolRequest, ::Google::Cloud::Build::V1::WorkerPool
|
122
|
-
# Deletes a `WorkerPool
|
123
|
-
|
124
|
-
#
|
125
|
-
rpc :
|
126
|
-
#
|
127
|
-
#
|
128
|
-
# This API is experimental.
|
129
|
-
rpc :UpdateWorkerPool, ::Google::Cloud::Build::V1::UpdateWorkerPoolRequest, ::Google::Cloud::Build::V1::WorkerPool
|
130
|
-
# List project's `WorkerPools`.
|
131
|
-
#
|
132
|
-
# This API is experimental.
|
125
|
+
# Deletes a `WorkerPool`.
|
126
|
+
rpc :DeleteWorkerPool, ::Google::Cloud::Build::V1::DeleteWorkerPoolRequest, ::Google::Longrunning::Operation
|
127
|
+
# Updates a `WorkerPool`.
|
128
|
+
rpc :UpdateWorkerPool, ::Google::Cloud::Build::V1::UpdateWorkerPoolRequest, ::Google::Longrunning::Operation
|
129
|
+
# Lists `WorkerPool`s.
|
133
130
|
rpc :ListWorkerPools, ::Google::Cloud::Build::V1::ListWorkerPoolsRequest, ::Google::Cloud::Build::V1::ListWorkerPoolsResponse
|
134
131
|
end
|
135
132
|
|