google-cloud-build-v1 0.8.1 → 0.9.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 +94 -38
- 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 +83 -33
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_services_pb.rb +8 -18
- data/proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb +286 -123
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 250b682a118dc351f44f5d77ee7b28ee7408d705a2eea2c655f2329d6a35ef41
|
4
|
+
data.tar.gz: 0a59fde0694287e54abaccd1355a73ebaae409a78e3d4e7fd93573627eaf0cea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49970a22f3b61969d431b1844a0a66c0f8632b2c46a299c88673197a508ed285af7299e7eb2f43232102a5cecb609495deafae54ff7224be95eb004078822f1e
|
7
|
+
data.tar.gz: 64d460cdf291c78aeb9e04cfee9cc3518efceb175b1b9298e174c0985da9d2d0656a8d9c1441cc84e75f150d987c34ba7040457a11a9f1f3c90b34b3d4b4927e
|
@@ -1154,9 +1154,7 @@ module Google
|
|
1154
1154
|
end
|
1155
1155
|
|
1156
1156
|
##
|
1157
|
-
# Creates a `WorkerPool
|
1158
|
-
#
|
1159
|
-
# This API is experimental.
|
1157
|
+
# Creates a `WorkerPool`.
|
1160
1158
|
#
|
1161
1159
|
# @overload create_worker_pool(request, options = nil)
|
1162
1160
|
# Pass arguments to `create_worker_pool` via a request object, either of type
|
@@ -1168,21 +1166,31 @@ module Google
|
|
1168
1166
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1169
1167
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1170
1168
|
#
|
1171
|
-
# @overload create_worker_pool(parent: nil, worker_pool: nil)
|
1169
|
+
# @overload create_worker_pool(parent: nil, worker_pool: nil, worker_pool_id: nil, validate_only: nil)
|
1172
1170
|
# Pass arguments to `create_worker_pool` via keyword arguments. Note that at
|
1173
1171
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1174
1172
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1175
1173
|
#
|
1176
1174
|
# @param parent [::String]
|
1177
|
-
#
|
1175
|
+
# Required. The parent resource where this worker pool will be created.
|
1176
|
+
# Format: `projects/{project}/locations/{location}`.
|
1178
1177
|
# @param worker_pool [::Google::Cloud::Build::V1::WorkerPool, ::Hash]
|
1179
|
-
# `WorkerPool` resource to create.
|
1178
|
+
# Required. `WorkerPool` resource to create.
|
1179
|
+
# @param worker_pool_id [::String]
|
1180
|
+
# Required. Immutable. The ID to use for the `WorkerPool`, which will become
|
1181
|
+
# the final component of the resource name.
|
1182
|
+
#
|
1183
|
+
# This value should be 1-63 characters, and valid characters
|
1184
|
+
# are /[a-z][0-9]-/.
|
1185
|
+
# @param validate_only [::Boolean]
|
1186
|
+
# If set, validate the request and preview the response, but do not actually
|
1187
|
+
# post it.
|
1180
1188
|
#
|
1181
1189
|
# @yield [response, operation] Access the result along with the RPC operation
|
1182
|
-
# @yieldparam response [::
|
1190
|
+
# @yieldparam response [::Gapic::Operation]
|
1183
1191
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1184
1192
|
#
|
1185
|
-
# @return [::
|
1193
|
+
# @return [::Gapic::Operation]
|
1186
1194
|
#
|
1187
1195
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1188
1196
|
#
|
@@ -1203,6 +1211,12 @@ module Google
|
|
1203
1211
|
gapic_version: ::Google::Cloud::Build::V1::VERSION
|
1204
1212
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1205
1213
|
|
1214
|
+
header_params = {
|
1215
|
+
"parent" => request.parent
|
1216
|
+
}
|
1217
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1218
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1219
|
+
|
1206
1220
|
options.apply_defaults timeout: @config.rpcs.create_worker_pool.timeout,
|
1207
1221
|
metadata: metadata,
|
1208
1222
|
retry_policy: @config.rpcs.create_worker_pool.retry_policy
|
@@ -1210,6 +1224,7 @@ module Google
|
|
1210
1224
|
retry_policy: @config.retry_policy
|
1211
1225
|
|
1212
1226
|
@cloud_build_stub.call_rpc :create_worker_pool, request, options: options do |response, operation|
|
1227
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1213
1228
|
yield response, operation if block_given?
|
1214
1229
|
return response
|
1215
1230
|
end
|
@@ -1218,9 +1233,7 @@ module Google
|
|
1218
1233
|
end
|
1219
1234
|
|
1220
1235
|
##
|
1221
|
-
# Returns
|
1222
|
-
#
|
1223
|
-
# This API is experimental.
|
1236
|
+
# Returns details of a `WorkerPool`.
|
1224
1237
|
#
|
1225
1238
|
# @overload get_worker_pool(request, options = nil)
|
1226
1239
|
# Pass arguments to `get_worker_pool` via a request object, either of type
|
@@ -1238,8 +1251,8 @@ module Google
|
|
1238
1251
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1239
1252
|
#
|
1240
1253
|
# @param name [::String]
|
1241
|
-
# The
|
1242
|
-
#
|
1254
|
+
# Required. The name of the `WorkerPool` to retrieve.
|
1255
|
+
# Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.
|
1243
1256
|
#
|
1244
1257
|
# @yield [response, operation] Access the result along with the RPC operation
|
1245
1258
|
# @yieldparam response [::Google::Cloud::Build::V1::WorkerPool]
|
@@ -1266,6 +1279,12 @@ module Google
|
|
1266
1279
|
gapic_version: ::Google::Cloud::Build::V1::VERSION
|
1267
1280
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1268
1281
|
|
1282
|
+
header_params = {
|
1283
|
+
"name" => request.name
|
1284
|
+
}
|
1285
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1286
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1287
|
+
|
1269
1288
|
options.apply_defaults timeout: @config.rpcs.get_worker_pool.timeout,
|
1270
1289
|
metadata: metadata,
|
1271
1290
|
retry_policy: @config.rpcs.get_worker_pool.retry_policy
|
@@ -1281,9 +1300,7 @@ module Google
|
|
1281
1300
|
end
|
1282
1301
|
|
1283
1302
|
##
|
1284
|
-
# Deletes a `WorkerPool
|
1285
|
-
#
|
1286
|
-
# This API is experimental.
|
1303
|
+
# Deletes a `WorkerPool`.
|
1287
1304
|
#
|
1288
1305
|
# @overload delete_worker_pool(request, options = nil)
|
1289
1306
|
# Pass arguments to `delete_worker_pool` via a request object, either of type
|
@@ -1295,20 +1312,30 @@ module Google
|
|
1295
1312
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1296
1313
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1297
1314
|
#
|
1298
|
-
# @overload delete_worker_pool(name: nil)
|
1315
|
+
# @overload delete_worker_pool(name: nil, etag: nil, allow_missing: nil, validate_only: nil)
|
1299
1316
|
# Pass arguments to `delete_worker_pool` via keyword arguments. Note that at
|
1300
1317
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1301
1318
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1302
1319
|
#
|
1303
1320
|
# @param name [::String]
|
1304
|
-
# The
|
1305
|
-
#
|
1321
|
+
# Required. The name of the `WorkerPool` to delete.
|
1322
|
+
# Format:
|
1323
|
+
# `projects/{project}/locations/{workerPool}/workerPools/{workerPool}`.
|
1324
|
+
# @param etag [::String]
|
1325
|
+
# Optional. If this is provided, it must match the server's etag on the
|
1326
|
+
# workerpool for the request to be processed.
|
1327
|
+
# @param allow_missing [::Boolean]
|
1328
|
+
# If set to true, and the `WorkerPool` is not found, the request will succeed
|
1329
|
+
# but no action will be taken on the server.
|
1330
|
+
# @param validate_only [::Boolean]
|
1331
|
+
# If set, validate the request and preview the response, but do not actually
|
1332
|
+
# post it.
|
1306
1333
|
#
|
1307
1334
|
# @yield [response, operation] Access the result along with the RPC operation
|
1308
|
-
# @yieldparam response [::
|
1335
|
+
# @yieldparam response [::Gapic::Operation]
|
1309
1336
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1310
1337
|
#
|
1311
|
-
# @return [::
|
1338
|
+
# @return [::Gapic::Operation]
|
1312
1339
|
#
|
1313
1340
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1314
1341
|
#
|
@@ -1329,6 +1356,12 @@ module Google
|
|
1329
1356
|
gapic_version: ::Google::Cloud::Build::V1::VERSION
|
1330
1357
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1331
1358
|
|
1359
|
+
header_params = {
|
1360
|
+
"name" => request.name
|
1361
|
+
}
|
1362
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1363
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1364
|
+
|
1332
1365
|
options.apply_defaults timeout: @config.rpcs.delete_worker_pool.timeout,
|
1333
1366
|
metadata: metadata,
|
1334
1367
|
retry_policy: @config.rpcs.delete_worker_pool.retry_policy
|
@@ -1336,6 +1369,7 @@ module Google
|
|
1336
1369
|
retry_policy: @config.retry_policy
|
1337
1370
|
|
1338
1371
|
@cloud_build_stub.call_rpc :delete_worker_pool, request, options: options do |response, operation|
|
1372
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1339
1373
|
yield response, operation if block_given?
|
1340
1374
|
return response
|
1341
1375
|
end
|
@@ -1344,9 +1378,7 @@ module Google
|
|
1344
1378
|
end
|
1345
1379
|
|
1346
1380
|
##
|
1347
|
-
#
|
1348
|
-
#
|
1349
|
-
# This API is experimental.
|
1381
|
+
# Updates a `WorkerPool`.
|
1350
1382
|
#
|
1351
1383
|
# @overload update_worker_pool(request, options = nil)
|
1352
1384
|
# Pass arguments to `update_worker_pool` via a request object, either of type
|
@@ -1358,22 +1390,27 @@ module Google
|
|
1358
1390
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1359
1391
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1360
1392
|
#
|
1361
|
-
# @overload update_worker_pool(
|
1393
|
+
# @overload update_worker_pool(worker_pool: nil, update_mask: nil, validate_only: nil)
|
1362
1394
|
# Pass arguments to `update_worker_pool` via keyword arguments. Note that at
|
1363
1395
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1364
1396
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1365
1397
|
#
|
1366
|
-
# @param name [::String]
|
1367
|
-
# The field will contain name of the resource requested, for example:
|
1368
|
-
# "projects/project-1/workerPools/workerpool-name"
|
1369
1398
|
# @param worker_pool [::Google::Cloud::Build::V1::WorkerPool, ::Hash]
|
1370
|
-
# `WorkerPool`
|
1399
|
+
# Required. The `WorkerPool` to update.
|
1400
|
+
#
|
1401
|
+
# The `name` field is used to identify the `WorkerPool` to update.
|
1402
|
+
# Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.
|
1403
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1404
|
+
# A mask specifying which fields in `worker_pool` to update.
|
1405
|
+
# @param validate_only [::Boolean]
|
1406
|
+
# If set, validate the request and preview the response, but do not actually
|
1407
|
+
# post it.
|
1371
1408
|
#
|
1372
1409
|
# @yield [response, operation] Access the result along with the RPC operation
|
1373
|
-
# @yieldparam response [::
|
1410
|
+
# @yieldparam response [::Gapic::Operation]
|
1374
1411
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1375
1412
|
#
|
1376
|
-
# @return [::
|
1413
|
+
# @return [::Gapic::Operation]
|
1377
1414
|
#
|
1378
1415
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1379
1416
|
#
|
@@ -1394,6 +1431,12 @@ module Google
|
|
1394
1431
|
gapic_version: ::Google::Cloud::Build::V1::VERSION
|
1395
1432
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1396
1433
|
|
1434
|
+
header_params = {
|
1435
|
+
"worker_pool.name" => request.worker_pool.name
|
1436
|
+
}
|
1437
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1438
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1439
|
+
|
1397
1440
|
options.apply_defaults timeout: @config.rpcs.update_worker_pool.timeout,
|
1398
1441
|
metadata: metadata,
|
1399
1442
|
retry_policy: @config.rpcs.update_worker_pool.retry_policy
|
@@ -1401,6 +1444,7 @@ module Google
|
|
1401
1444
|
retry_policy: @config.retry_policy
|
1402
1445
|
|
1403
1446
|
@cloud_build_stub.call_rpc :update_worker_pool, request, options: options do |response, operation|
|
1447
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1404
1448
|
yield response, operation if block_given?
|
1405
1449
|
return response
|
1406
1450
|
end
|
@@ -1409,9 +1453,7 @@ module Google
|
|
1409
1453
|
end
|
1410
1454
|
|
1411
1455
|
##
|
1412
|
-
#
|
1413
|
-
#
|
1414
|
-
# This API is experimental.
|
1456
|
+
# Lists `WorkerPool`s.
|
1415
1457
|
#
|
1416
1458
|
# @overload list_worker_pools(request, options = nil)
|
1417
1459
|
# Pass arguments to `list_worker_pools` via a request object, either of type
|
@@ -1423,19 +1465,26 @@ module Google
|
|
1423
1465
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1424
1466
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1425
1467
|
#
|
1426
|
-
# @overload list_worker_pools(parent: nil)
|
1468
|
+
# @overload list_worker_pools(parent: nil, page_size: nil, page_token: nil)
|
1427
1469
|
# Pass arguments to `list_worker_pools` via keyword arguments. Note that at
|
1428
1470
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1429
1471
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1430
1472
|
#
|
1431
1473
|
# @param parent [::String]
|
1432
|
-
#
|
1474
|
+
# Required. The parent of the collection of `WorkerPools`.
|
1475
|
+
# Format: `projects/{project}/locations/{location}`.
|
1476
|
+
# @param page_size [::Integer]
|
1477
|
+
# The maximum number of `WorkerPool`s to return. The service may return
|
1478
|
+
# fewer than this value. If omitted, the server will use a sensible default.
|
1479
|
+
# @param page_token [::String]
|
1480
|
+
# A page token, received from a previous `ListWorkerPools` call. Provide this
|
1481
|
+
# to retrieve the subsequent page.
|
1433
1482
|
#
|
1434
1483
|
# @yield [response, operation] Access the result along with the RPC operation
|
1435
|
-
# @yieldparam response [::Google::Cloud::Build::V1::
|
1484
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Build::V1::WorkerPool>]
|
1436
1485
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1437
1486
|
#
|
1438
|
-
# @return [::Google::Cloud::Build::V1::
|
1487
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Build::V1::WorkerPool>]
|
1439
1488
|
#
|
1440
1489
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1441
1490
|
#
|
@@ -1456,6 +1505,12 @@ module Google
|
|
1456
1505
|
gapic_version: ::Google::Cloud::Build::V1::VERSION
|
1457
1506
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1458
1507
|
|
1508
|
+
header_params = {
|
1509
|
+
"parent" => request.parent
|
1510
|
+
}
|
1511
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1512
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1513
|
+
|
1459
1514
|
options.apply_defaults timeout: @config.rpcs.list_worker_pools.timeout,
|
1460
1515
|
metadata: metadata,
|
1461
1516
|
retry_policy: @config.rpcs.list_worker_pools.retry_policy
|
@@ -1463,6 +1518,7 @@ module Google
|
|
1463
1518
|
retry_policy: @config.retry_policy
|
1464
1519
|
|
1465
1520
|
@cloud_build_stub.call_rpc :list_worker_pools, request, options: options do |response, operation|
|
1521
|
+
response = ::Gapic::PagedEnumerable.new @cloud_build_stub, :list_worker_pools, request, response, operation, options
|
1466
1522
|
yield response, operation if block_given?
|
1467
1523
|
return response
|
1468
1524
|
end
|
@@ -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
|
@@ -119,6 +119,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
119
119
|
optional :service_account, :string, 42
|
120
120
|
optional :available_secrets, :message, 47, "google.devtools.cloudbuild.v1.Secrets"
|
121
121
|
repeated :warnings, :message, 49, "google.devtools.cloudbuild.v1.Build.Warning"
|
122
|
+
optional :failure_info, :message, 51, "google.devtools.cloudbuild.v1.Build.FailureInfo"
|
122
123
|
end
|
123
124
|
add_message "google.devtools.cloudbuild.v1.Build.Warning" do
|
124
125
|
optional :text, :string, 1
|
@@ -130,6 +131,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
130
131
|
value :WARNING, 2
|
131
132
|
value :ALERT, 3
|
132
133
|
end
|
134
|
+
add_message "google.devtools.cloudbuild.v1.Build.FailureInfo" do
|
135
|
+
optional :type, :enum, 1, "google.devtools.cloudbuild.v1.Build.FailureInfo.FailureType"
|
136
|
+
optional :detail, :string, 2
|
137
|
+
end
|
138
|
+
add_enum "google.devtools.cloudbuild.v1.Build.FailureInfo.FailureType" do
|
139
|
+
value :FAILURE_TYPE_UNSPECIFIED, 0
|
140
|
+
value :PUSH_FAILED, 1
|
141
|
+
value :PUSH_IMAGE_NOT_FOUND, 2
|
142
|
+
value :PUSH_NOT_AUTHORIZED, 3
|
143
|
+
value :LOGGING_FAILURE, 4
|
144
|
+
value :USER_BUILD_STEP, 5
|
145
|
+
value :FETCH_SOURCE_FAILED, 6
|
146
|
+
end
|
133
147
|
add_enum "google.devtools.cloudbuild.v1.Build.Status" do
|
134
148
|
value :STATUS_UNKNOWN, 0
|
135
149
|
value :QUEUED, 1
|
@@ -330,11 +344,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
330
344
|
optional :dynamic_substitutions, :bool, 17
|
331
345
|
optional :log_streaming_option, :enum, 5, "google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption"
|
332
346
|
optional :worker_pool, :string, 7
|
347
|
+
optional :pool, :message, 19, "google.devtools.cloudbuild.v1.BuildOptions.PoolOption"
|
333
348
|
optional :logging, :enum, 11, "google.devtools.cloudbuild.v1.BuildOptions.LoggingMode"
|
334
349
|
repeated :env, :string, 12
|
335
350
|
repeated :secret_env, :string, 13
|
336
351
|
repeated :volumes, :message, 14, "google.devtools.cloudbuild.v1.Volume"
|
337
352
|
end
|
353
|
+
add_message "google.devtools.cloudbuild.v1.BuildOptions.PoolOption" do
|
354
|
+
optional :name, :string, 1
|
355
|
+
end
|
338
356
|
add_enum "google.devtools.cloudbuild.v1.BuildOptions.VerifyOption" do
|
339
357
|
value :NOT_VERIFIED, 0
|
340
358
|
value :VERIFIED, 1
|
@@ -373,61 +391,86 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
373
391
|
add_message "google.devtools.cloudbuild.v1.ReceiveTriggerWebhookResponse" do
|
374
392
|
end
|
375
393
|
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
|
394
|
+
optional :name, :string, 1
|
395
|
+
optional :display_name, :string, 2
|
396
|
+
optional :uid, :string, 3
|
397
|
+
map :annotations, :string, :string, 4
|
398
|
+
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
399
|
+
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
400
|
+
optional :delete_time, :message, 7, "google.protobuf.Timestamp"
|
401
|
+
optional :state, :enum, 8, "google.devtools.cloudbuild.v1.WorkerPool.State"
|
402
|
+
optional :etag, :string, 11
|
403
|
+
oneof :config do
|
404
|
+
optional :private_pool_v1_config, :message, 12, "google.devtools.cloudbuild.v1.PrivatePoolV1Config"
|
405
|
+
end
|
406
|
+
end
|
407
|
+
add_enum "google.devtools.cloudbuild.v1.WorkerPool.State" do
|
408
|
+
value :STATE_UNSPECIFIED, 0
|
396
409
|
value :CREATING, 1
|
397
410
|
value :RUNNING, 2
|
398
411
|
value :DELETING, 3
|
399
412
|
value :DELETED, 4
|
400
413
|
end
|
401
|
-
add_message "google.devtools.cloudbuild.v1.
|
414
|
+
add_message "google.devtools.cloudbuild.v1.PrivatePoolV1Config" do
|
415
|
+
optional :worker_config, :message, 1, "google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig"
|
416
|
+
optional :network_config, :message, 2, "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig"
|
417
|
+
end
|
418
|
+
add_message "google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig" do
|
402
419
|
optional :machine_type, :string, 1
|
403
420
|
optional :disk_size_gb, :int64, 2
|
404
|
-
optional :network, :message, 3, "google.devtools.cloudbuild.v1.Network"
|
405
|
-
optional :tag, :string, 4
|
406
421
|
end
|
407
|
-
add_message "google.devtools.cloudbuild.v1.
|
408
|
-
optional :
|
409
|
-
optional :
|
410
|
-
|
422
|
+
add_message "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig" do
|
423
|
+
optional :peered_network, :string, 1
|
424
|
+
optional :egress_option, :enum, 2, "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption"
|
425
|
+
end
|
426
|
+
add_enum "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption" do
|
427
|
+
value :EGRESS_OPTION_UNSPECIFIED, 0
|
428
|
+
value :NO_PUBLIC_EGRESS, 1
|
429
|
+
value :PUBLIC_EGRESS, 2
|
411
430
|
end
|
412
431
|
add_message "google.devtools.cloudbuild.v1.CreateWorkerPoolRequest" do
|
413
432
|
optional :parent, :string, 1
|
414
433
|
optional :worker_pool, :message, 2, "google.devtools.cloudbuild.v1.WorkerPool"
|
434
|
+
optional :worker_pool_id, :string, 3
|
435
|
+
optional :validate_only, :bool, 4
|
415
436
|
end
|
416
437
|
add_message "google.devtools.cloudbuild.v1.GetWorkerPoolRequest" do
|
417
438
|
optional :name, :string, 1
|
418
439
|
end
|
419
440
|
add_message "google.devtools.cloudbuild.v1.DeleteWorkerPoolRequest" do
|
420
441
|
optional :name, :string, 1
|
442
|
+
optional :etag, :string, 2
|
443
|
+
optional :allow_missing, :bool, 3
|
444
|
+
optional :validate_only, :bool, 4
|
421
445
|
end
|
422
446
|
add_message "google.devtools.cloudbuild.v1.UpdateWorkerPoolRequest" do
|
423
|
-
optional :
|
424
|
-
optional :
|
447
|
+
optional :worker_pool, :message, 1, "google.devtools.cloudbuild.v1.WorkerPool"
|
448
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
449
|
+
optional :validate_only, :bool, 4
|
425
450
|
end
|
426
451
|
add_message "google.devtools.cloudbuild.v1.ListWorkerPoolsRequest" do
|
427
452
|
optional :parent, :string, 1
|
453
|
+
optional :page_size, :int32, 2
|
454
|
+
optional :page_token, :string, 3
|
428
455
|
end
|
429
456
|
add_message "google.devtools.cloudbuild.v1.ListWorkerPoolsResponse" do
|
430
457
|
repeated :worker_pools, :message, 1, "google.devtools.cloudbuild.v1.WorkerPool"
|
458
|
+
optional :next_page_token, :string, 2
|
459
|
+
end
|
460
|
+
add_message "google.devtools.cloudbuild.v1.CreateWorkerPoolOperationMetadata" do
|
461
|
+
optional :worker_pool, :string, 1
|
462
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
463
|
+
optional :complete_time, :message, 3, "google.protobuf.Timestamp"
|
464
|
+
end
|
465
|
+
add_message "google.devtools.cloudbuild.v1.UpdateWorkerPoolOperationMetadata" do
|
466
|
+
optional :worker_pool, :string, 1
|
467
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
468
|
+
optional :complete_time, :message, 3, "google.protobuf.Timestamp"
|
469
|
+
end
|
470
|
+
add_message "google.devtools.cloudbuild.v1.DeleteWorkerPoolOperationMetadata" do
|
471
|
+
optional :worker_pool, :string, 1
|
472
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
473
|
+
optional :complete_time, :message, 3, "google.protobuf.Timestamp"
|
431
474
|
end
|
432
475
|
end
|
433
476
|
end
|
@@ -450,6 +493,8 @@ module Google
|
|
450
493
|
Build = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build").msgclass
|
451
494
|
Build::Warning = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Warning").msgclass
|
452
495
|
Build::Warning::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Warning.Priority").enummodule
|
496
|
+
Build::FailureInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.FailureInfo").msgclass
|
497
|
+
Build::FailureInfo::FailureType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.FailureInfo.FailureType").enummodule
|
453
498
|
Build::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Status").enummodule
|
454
499
|
Artifacts = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts").msgclass
|
455
500
|
Artifacts::ArtifactObjects = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects").msgclass
|
@@ -484,6 +529,7 @@ module Google
|
|
484
529
|
DeleteBuildTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.DeleteBuildTriggerRequest").msgclass
|
485
530
|
UpdateBuildTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.UpdateBuildTriggerRequest").msgclass
|
486
531
|
BuildOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions").msgclass
|
532
|
+
BuildOptions::PoolOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.PoolOption").msgclass
|
487
533
|
BuildOptions::VerifyOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.VerifyOption").enummodule
|
488
534
|
BuildOptions::MachineType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.MachineType").enummodule
|
489
535
|
BuildOptions::SubstitutionOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption").enummodule
|
@@ -492,16 +538,20 @@ module Google
|
|
492
538
|
ReceiveTriggerWebhookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ReceiveTriggerWebhookRequest").msgclass
|
493
539
|
ReceiveTriggerWebhookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ReceiveTriggerWebhookResponse").msgclass
|
494
540
|
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
|
-
|
541
|
+
WorkerPool::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WorkerPool.State").enummodule
|
542
|
+
PrivatePoolV1Config = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PrivatePoolV1Config").msgclass
|
543
|
+
PrivatePoolV1Config::WorkerConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PrivatePoolV1Config.WorkerConfig").msgclass
|
544
|
+
PrivatePoolV1Config::NetworkConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig").msgclass
|
545
|
+
PrivatePoolV1Config::NetworkConfig::EgressOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption").enummodule
|
499
546
|
CreateWorkerPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.CreateWorkerPoolRequest").msgclass
|
500
547
|
GetWorkerPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.GetWorkerPoolRequest").msgclass
|
501
548
|
DeleteWorkerPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.DeleteWorkerPoolRequest").msgclass
|
502
549
|
UpdateWorkerPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.UpdateWorkerPoolRequest").msgclass
|
503
550
|
ListWorkerPoolsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ListWorkerPoolsRequest").msgclass
|
504
551
|
ListWorkerPoolsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ListWorkerPoolsResponse").msgclass
|
552
|
+
CreateWorkerPoolOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.CreateWorkerPoolOperationMetadata").msgclass
|
553
|
+
UpdateWorkerPoolOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.UpdateWorkerPoolOperationMetadata").msgclass
|
554
|
+
DeleteWorkerPoolOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.DeleteWorkerPoolOperationMetadata").msgclass
|
505
555
|
end
|
506
556
|
end
|
507
557
|
end
|
@@ -111,25 +111,15 @@ module Google
|
|
111
111
|
# ReceiveTriggerWebhook [Experimental] is called when the API receives a
|
112
112
|
# webhook request targeted at a specific trigger.
|
113
113
|
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.
|
114
|
+
# Creates a `WorkerPool`.
|
115
|
+
rpc :CreateWorkerPool, ::Google::Cloud::Build::V1::CreateWorkerPoolRequest, ::Google::Longrunning::Operation
|
116
|
+
# Returns details of a `WorkerPool`.
|
121
117
|
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.
|
118
|
+
# Deletes a `WorkerPool`.
|
119
|
+
rpc :DeleteWorkerPool, ::Google::Cloud::Build::V1::DeleteWorkerPoolRequest, ::Google::Longrunning::Operation
|
120
|
+
# Updates a `WorkerPool`.
|
121
|
+
rpc :UpdateWorkerPool, ::Google::Cloud::Build::V1::UpdateWorkerPoolRequest, ::Google::Longrunning::Operation
|
122
|
+
# Lists `WorkerPool`s.
|
133
123
|
rpc :ListWorkerPools, ::Google::Cloud::Build::V1::ListWorkerPoolsRequest, ::Google::Cloud::Build::V1::ListWorkerPoolsResponse
|
134
124
|
end
|
135
125
|
|
@@ -489,6 +489,9 @@ module Google
|
|
489
489
|
# @return [::Array<::Google::Cloud::Build::V1::Build::Warning>]
|
490
490
|
# Output only. Non-fatal problems encountered during the execution of the
|
491
491
|
# build.
|
492
|
+
# @!attribute [r] failure_info
|
493
|
+
# @return [::Google::Cloud::Build::V1::Build::FailureInfo]
|
494
|
+
# Output only. Contains information about the build when status=FAILURE.
|
492
495
|
class Build
|
493
496
|
include ::Google::Protobuf::MessageExts
|
494
497
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -520,6 +523,43 @@ module Google
|
|
520
523
|
end
|
521
524
|
end
|
522
525
|
|
526
|
+
# A fatal problem encountered during the execution of the build.
|
527
|
+
# @!attribute [rw] type
|
528
|
+
# @return [::Google::Cloud::Build::V1::Build::FailureInfo::FailureType]
|
529
|
+
# The name of the failure.
|
530
|
+
# @!attribute [rw] detail
|
531
|
+
# @return [::String]
|
532
|
+
# Explains the failure issue in more detail using hard-coded text.
|
533
|
+
class FailureInfo
|
534
|
+
include ::Google::Protobuf::MessageExts
|
535
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
536
|
+
|
537
|
+
# The name of a fatal problem encountered during the execution of the
|
538
|
+
# build.
|
539
|
+
module FailureType
|
540
|
+
# Type unspecified
|
541
|
+
FAILURE_TYPE_UNSPECIFIED = 0
|
542
|
+
|
543
|
+
# Unable to push the image to the repository.
|
544
|
+
PUSH_FAILED = 1
|
545
|
+
|
546
|
+
# Final image not found.
|
547
|
+
PUSH_IMAGE_NOT_FOUND = 2
|
548
|
+
|
549
|
+
# Unauthorized push of the final image.
|
550
|
+
PUSH_NOT_AUTHORIZED = 3
|
551
|
+
|
552
|
+
# Backend logging failures. Should retry.
|
553
|
+
LOGGING_FAILURE = 4
|
554
|
+
|
555
|
+
# A build step has failed.
|
556
|
+
USER_BUILD_STEP = 5
|
557
|
+
|
558
|
+
# The source fetching has failed.
|
559
|
+
FETCH_SOURCE_FAILED = 6
|
560
|
+
end
|
561
|
+
end
|
562
|
+
|
523
563
|
# @!attribute [rw] key
|
524
564
|
# @return [::String]
|
525
565
|
# @!attribute [rw] value
|
@@ -1290,10 +1330,14 @@ module Google
|
|
1290
1330
|
# Storage.
|
1291
1331
|
# @!attribute [rw] worker_pool
|
1292
1332
|
# @return [::String]
|
1293
|
-
#
|
1294
|
-
#
|
1333
|
+
# This field deprecated; please use `pool.name` instead.
|
1334
|
+
# @!attribute [rw] pool
|
1335
|
+
# @return [::Google::Cloud::Build::V1::BuildOptions::PoolOption]
|
1336
|
+
# Optional. Specification for execution on a `WorkerPool`.
|
1295
1337
|
#
|
1296
|
-
#
|
1338
|
+
# See [running builds in a private
|
1339
|
+
# pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
|
1340
|
+
# for more information.
|
1297
1341
|
# @!attribute [rw] logging
|
1298
1342
|
# @return [::Google::Cloud::Build::V1::BuildOptions::LoggingMode]
|
1299
1343
|
# Option to specify the logging mode, which determines if and where build
|
@@ -1327,6 +1371,23 @@ module Google
|
|
1327
1371
|
include ::Google::Protobuf::MessageExts
|
1328
1372
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1329
1373
|
|
1374
|
+
# Details about how a build should be executed on a `WorkerPool`.
|
1375
|
+
#
|
1376
|
+
# See [running builds in a private
|
1377
|
+
# pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool)
|
1378
|
+
# for more information.
|
1379
|
+
# @!attribute [rw] name
|
1380
|
+
# @return [::String]
|
1381
|
+
# The `WorkerPool` resource to execute the build on.
|
1382
|
+
# You must have `cloudbuild.workerpools.use` on the project hosting the
|
1383
|
+
# WorkerPool.
|
1384
|
+
#
|
1385
|
+
# Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId}
|
1386
|
+
class PoolOption
|
1387
|
+
include ::Google::Protobuf::MessageExts
|
1388
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1389
|
+
end
|
1390
|
+
|
1330
1391
|
# Specifies the manner in which the build should be verified, if at all.
|
1331
1392
|
module VerifyOption
|
1332
1393
|
# Not a verifiable build. (default)
|
@@ -1434,78 +1495,77 @@ module Google
|
|
1434
1495
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1435
1496
|
end
|
1436
1497
|
|
1437
|
-
# Configuration for a WorkerPool
|
1498
|
+
# Configuration for a `WorkerPool`.
|
1438
1499
|
#
|
1439
|
-
#
|
1440
|
-
#
|
1441
|
-
#
|
1442
|
-
#
|
1443
|
-
#
|
1444
|
-
#
|
1500
|
+
# Cloud Build owns and maintains a pool of workers for general use and have no
|
1501
|
+
# access to a project's private network. By default, builds submitted to
|
1502
|
+
# Cloud Build will use a worker from this pool.
|
1503
|
+
#
|
1504
|
+
# If your build needs access to resources on a private network,
|
1505
|
+
# create and use a `WorkerPool` to run your builds. Private `WorkerPool`s give
|
1506
|
+
# your builds access to any single VPC network that you
|
1507
|
+
# administer, including any on-prem resources connected to that VPC
|
1508
|
+
# network. For an overview of private pools, see
|
1509
|
+
# [Private pools
|
1510
|
+
# overview](https://cloud.google.com/build/docs/private-pools/private-pools-overview).
|
1511
|
+
# @!attribute [r] name
|
1445
1512
|
# @return [::String]
|
1446
|
-
#
|
1447
|
-
#
|
1513
|
+
# Output only. The resource name of the `WorkerPool`, with format
|
1514
|
+
# `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
|
1515
|
+
# The value of `{worker_pool}` is provided by `worker_pool_id` in
|
1516
|
+
# `CreateWorkerPool` request and the value of `{location}` is determined by
|
1517
|
+
# the endpoint accessed.
|
1518
|
+
# @!attribute [rw] display_name
|
1448
1519
|
# @return [::String]
|
1449
|
-
#
|
1450
|
-
#
|
1520
|
+
# A user-specified, human-readable name for the `WorkerPool`. If provided,
|
1521
|
+
# this value must be 1-63 characters.
|
1522
|
+
# @!attribute [r] uid
|
1451
1523
|
# @return [::String]
|
1452
|
-
# Output only.
|
1453
|
-
#
|
1454
|
-
#
|
1455
|
-
#
|
1456
|
-
#
|
1457
|
-
#
|
1458
|
-
# @!attribute [rw] worker_config
|
1459
|
-
# @return [::Google::Cloud::Build::V1::WorkerConfig]
|
1460
|
-
# Configuration to be used for a creating workers in the `WorkerPool`.
|
1461
|
-
# @!attribute [rw] regions
|
1462
|
-
# @return [::Array<::Google::Cloud::Build::V1::WorkerPool::Region>]
|
1463
|
-
# List of regions to create the `WorkerPool`. Regions can't be empty.
|
1464
|
-
# If Cloud Build adds a new GCP region in the future, the existing
|
1465
|
-
# `WorkerPool` will not be enabled in the new region automatically;
|
1466
|
-
# you must add the new region to the `regions` field to enable the
|
1467
|
-
# `WorkerPool` in that region.
|
1468
|
-
# @!attribute [rw] create_time
|
1524
|
+
# Output only. A unique identifier for the `WorkerPool`.
|
1525
|
+
# @!attribute [rw] annotations
|
1526
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
1527
|
+
# User specified annotations. See https://google.aip.dev/128#annotations
|
1528
|
+
# for more details such as format and size limitations.
|
1529
|
+
# @!attribute [r] create_time
|
1469
1530
|
# @return [::Google::Protobuf::Timestamp]
|
1470
1531
|
# Output only. Time at which the request to create the `WorkerPool` was
|
1471
1532
|
# received.
|
1472
|
-
# @!attribute [
|
1533
|
+
# @!attribute [r] update_time
|
1473
1534
|
# @return [::Google::Protobuf::Timestamp]
|
1474
1535
|
# Output only. Time at which the request to update the `WorkerPool` was
|
1475
1536
|
# received.
|
1476
|
-
# @!attribute [
|
1537
|
+
# @!attribute [r] delete_time
|
1477
1538
|
# @return [::Google::Protobuf::Timestamp]
|
1478
1539
|
# Output only. Time at which the request to delete the `WorkerPool` was
|
1479
1540
|
# received.
|
1480
|
-
# @!attribute [
|
1481
|
-
# @return [::Google::Cloud::Build::V1::WorkerPool::
|
1482
|
-
# Output only. WorkerPool
|
1541
|
+
# @!attribute [r] state
|
1542
|
+
# @return [::Google::Cloud::Build::V1::WorkerPool::State]
|
1543
|
+
# Output only. `WorkerPool` state.
|
1544
|
+
# @!attribute [rw] private_pool_v1_config
|
1545
|
+
# @return [::Google::Cloud::Build::V1::PrivatePoolV1Config]
|
1546
|
+
# Private Pool using a v1 configuration.
|
1547
|
+
# @!attribute [r] etag
|
1548
|
+
# @return [::String]
|
1549
|
+
# Output only. Checksum computed by the server. May be sent on update and
|
1550
|
+
# delete requests to ensure that the client has an up-to-date value before
|
1551
|
+
# proceeding.
|
1483
1552
|
class WorkerPool
|
1484
1553
|
include ::Google::Protobuf::MessageExts
|
1485
1554
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1486
1555
|
|
1487
|
-
#
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
# us-west1 region
|
1496
|
-
US_WEST1 = 2
|
1497
|
-
|
1498
|
-
# us-east1 region
|
1499
|
-
US_EAST1 = 3
|
1500
|
-
|
1501
|
-
# us-east4 region
|
1502
|
-
US_EAST4 = 4
|
1556
|
+
# @!attribute [rw] key
|
1557
|
+
# @return [::String]
|
1558
|
+
# @!attribute [rw] value
|
1559
|
+
# @return [::String]
|
1560
|
+
class AnnotationsEntry
|
1561
|
+
include ::Google::Protobuf::MessageExts
|
1562
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1503
1563
|
end
|
1504
1564
|
|
1505
|
-
# `WorkerPool
|
1506
|
-
module
|
1507
|
-
#
|
1508
|
-
|
1565
|
+
# State of the `WorkerPool`.
|
1566
|
+
module State
|
1567
|
+
# State of the `WorkerPool` is unknown.
|
1568
|
+
STATE_UNSPECIFIED = 0
|
1509
1569
|
|
1510
1570
|
# `WorkerPool` is being created.
|
1511
1571
|
CREATING = 1
|
@@ -1521,71 +1581,90 @@ module Google
|
|
1521
1581
|
end
|
1522
1582
|
end
|
1523
1583
|
|
1524
|
-
#
|
1525
|
-
#
|
1526
|
-
#
|
1527
|
-
#
|
1528
|
-
#
|
1529
|
-
#
|
1530
|
-
#
|
1531
|
-
|
1532
|
-
# `machine_type` is overridden if you specify a different machine type in
|
1533
|
-
# `build_options`. In this case, the VM specified in the `build_options`
|
1534
|
-
# will be created on demand at build time. For more information see
|
1535
|
-
# https://cloud.google.com/cloud-build/docs/speeding-up-builds#using_custom_virtual_machine_sizes
|
1536
|
-
# @!attribute [rw] disk_size_gb
|
1537
|
-
# @return [::Integer]
|
1538
|
-
# Size of the disk attached to the worker, in GB.
|
1539
|
-
# See https://cloud.google.com/compute/docs/disks/
|
1540
|
-
# If `0` is specified, Cloud Build will use a standard disk size.
|
1541
|
-
# `disk_size` is overridden if you specify a different disk size in
|
1542
|
-
# `build_options`. In this case, a VM with a disk size specified in the
|
1543
|
-
# `build_options` will be created on demand at build time. For more
|
1544
|
-
# information see
|
1545
|
-
# https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.builds#buildoptions
|
1546
|
-
# @!attribute [rw] network
|
1547
|
-
# @return [::Google::Cloud::Build::V1::Network]
|
1548
|
-
# The network definition used to create the worker.
|
1549
|
-
# If this section is left empty, the workers will be created in
|
1550
|
-
# WorkerPool.project_id on the default network.
|
1551
|
-
# @!attribute [rw] tag
|
1552
|
-
# @return [::String]
|
1553
|
-
# The tag applied to the worker, and the same tag used by the firewall rule.
|
1554
|
-
# It is used to identify the Cloud Build workers among other VMs.
|
1555
|
-
# The default value for tag is `worker`.
|
1556
|
-
class WorkerConfig
|
1584
|
+
# Configuration for a V1 `PrivatePool`.
|
1585
|
+
# @!attribute [rw] worker_config
|
1586
|
+
# @return [::Google::Cloud::Build::V1::PrivatePoolV1Config::WorkerConfig]
|
1587
|
+
# Machine configuration for the workers in the pool.
|
1588
|
+
# @!attribute [rw] network_config
|
1589
|
+
# @return [::Google::Cloud::Build::V1::PrivatePoolV1Config::NetworkConfig]
|
1590
|
+
# Network configuration for the pool.
|
1591
|
+
class PrivatePoolV1Config
|
1557
1592
|
include ::Google::Protobuf::MessageExts
|
1558
1593
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1559
|
-
end
|
1560
1594
|
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1595
|
+
# Defines the configuration to be used for creating workers in
|
1596
|
+
# the pool.
|
1597
|
+
# @!attribute [rw] machine_type
|
1598
|
+
# @return [::String]
|
1599
|
+
# Machine type of a worker, such as `e2-medium`.
|
1600
|
+
# See [Worker pool config
|
1601
|
+
# file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema).
|
1602
|
+
# If left blank, Cloud Build will use a sensible default.
|
1603
|
+
# @!attribute [rw] disk_size_gb
|
1604
|
+
# @return [::Integer]
|
1605
|
+
# Size of the disk attached to the worker, in GB.
|
1606
|
+
# See [Worker pool config
|
1607
|
+
# file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema).
|
1608
|
+
# Specify a value of up to 1000. If `0` is specified, Cloud Build will use
|
1609
|
+
# a standard disk size.
|
1610
|
+
class WorkerConfig
|
1611
|
+
include ::Google::Protobuf::MessageExts
|
1612
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1613
|
+
end
|
1614
|
+
|
1615
|
+
# Defines the network configuration for the pool.
|
1616
|
+
# @!attribute [rw] peered_network
|
1617
|
+
# @return [::String]
|
1618
|
+
# Required. Immutable. The network definition that the workers are peered
|
1619
|
+
# to. If this section is left empty, the workers will be peered to
|
1620
|
+
# `WorkerPool.project_id` on the service producer network. Must be in the
|
1621
|
+
# format `projects/{project}/global/networks/{network}`, where `{project}`
|
1622
|
+
# is a project number, such as `12345`, and `{network}` is the name of a
|
1623
|
+
# VPC network in the project. See
|
1624
|
+
# [Understanding network configuration
|
1625
|
+
# options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
|
1626
|
+
# @!attribute [rw] egress_option
|
1627
|
+
# @return [::Google::Cloud::Build::V1::PrivatePoolV1Config::NetworkConfig::EgressOption]
|
1628
|
+
# Option to configure network egress for the workers.
|
1629
|
+
class NetworkConfig
|
1630
|
+
include ::Google::Protobuf::MessageExts
|
1631
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1632
|
+
|
1633
|
+
# Defines the egress option for the pool.
|
1634
|
+
module EgressOption
|
1635
|
+
# If set, defaults to PUBLIC_EGRESS.
|
1636
|
+
EGRESS_OPTION_UNSPECIFIED = 0
|
1637
|
+
|
1638
|
+
# If set, workers are created without any public address, which prevents
|
1639
|
+
# network egress to public IPs unless a network proxy is configured.
|
1640
|
+
NO_PUBLIC_EGRESS = 1
|
1641
|
+
|
1642
|
+
# If set, workers are created with a public address which allows for
|
1643
|
+
# public internet egress.
|
1644
|
+
PUBLIC_EGRESS = 2
|
1645
|
+
end
|
1646
|
+
end
|
1580
1647
|
end
|
1581
1648
|
|
1582
1649
|
# Request to create a new `WorkerPool`.
|
1583
1650
|
# @!attribute [rw] parent
|
1584
1651
|
# @return [::String]
|
1585
|
-
#
|
1652
|
+
# Required. The parent resource where this worker pool will be created.
|
1653
|
+
# Format: `projects/{project}/locations/{location}`.
|
1586
1654
|
# @!attribute [rw] worker_pool
|
1587
1655
|
# @return [::Google::Cloud::Build::V1::WorkerPool]
|
1588
|
-
# `WorkerPool` resource to create.
|
1656
|
+
# Required. `WorkerPool` resource to create.
|
1657
|
+
# @!attribute [rw] worker_pool_id
|
1658
|
+
# @return [::String]
|
1659
|
+
# Required. Immutable. The ID to use for the `WorkerPool`, which will become
|
1660
|
+
# the final component of the resource name.
|
1661
|
+
#
|
1662
|
+
# This value should be 1-63 characters, and valid characters
|
1663
|
+
# are /[a-z][0-9]-/.
|
1664
|
+
# @!attribute [rw] validate_only
|
1665
|
+
# @return [::Boolean]
|
1666
|
+
# If set, validate the request and preview the response, but do not actually
|
1667
|
+
# post it.
|
1589
1668
|
class CreateWorkerPoolRequest
|
1590
1669
|
include ::Google::Protobuf::MessageExts
|
1591
1670
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1594,8 +1673,8 @@ module Google
|
|
1594
1673
|
# Request to get a `WorkerPool` with the specified name.
|
1595
1674
|
# @!attribute [rw] name
|
1596
1675
|
# @return [::String]
|
1597
|
-
# The
|
1598
|
-
#
|
1676
|
+
# Required. The name of the `WorkerPool` to retrieve.
|
1677
|
+
# Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.
|
1599
1678
|
class GetWorkerPoolRequest
|
1600
1679
|
include ::Google::Protobuf::MessageExts
|
1601
1680
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1604,30 +1683,58 @@ module Google
|
|
1604
1683
|
# Request to delete a `WorkerPool`.
|
1605
1684
|
# @!attribute [rw] name
|
1606
1685
|
# @return [::String]
|
1607
|
-
# The
|
1608
|
-
#
|
1686
|
+
# Required. The name of the `WorkerPool` to delete.
|
1687
|
+
# Format:
|
1688
|
+
# `projects/{project}/locations/{workerPool}/workerPools/{workerPool}`.
|
1689
|
+
# @!attribute [rw] etag
|
1690
|
+
# @return [::String]
|
1691
|
+
# Optional. If this is provided, it must match the server's etag on the
|
1692
|
+
# workerpool for the request to be processed.
|
1693
|
+
# @!attribute [rw] allow_missing
|
1694
|
+
# @return [::Boolean]
|
1695
|
+
# If set to true, and the `WorkerPool` is not found, the request will succeed
|
1696
|
+
# but no action will be taken on the server.
|
1697
|
+
# @!attribute [rw] validate_only
|
1698
|
+
# @return [::Boolean]
|
1699
|
+
# If set, validate the request and preview the response, but do not actually
|
1700
|
+
# post it.
|
1609
1701
|
class DeleteWorkerPoolRequest
|
1610
1702
|
include ::Google::Protobuf::MessageExts
|
1611
1703
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1612
1704
|
end
|
1613
1705
|
|
1614
1706
|
# Request to update a `WorkerPool`.
|
1615
|
-
# @!attribute [rw] name
|
1616
|
-
# @return [::String]
|
1617
|
-
# The field will contain name of the resource requested, for example:
|
1618
|
-
# "projects/project-1/workerPools/workerpool-name"
|
1619
1707
|
# @!attribute [rw] worker_pool
|
1620
1708
|
# @return [::Google::Cloud::Build::V1::WorkerPool]
|
1621
|
-
# `WorkerPool`
|
1709
|
+
# Required. The `WorkerPool` to update.
|
1710
|
+
#
|
1711
|
+
# The `name` field is used to identify the `WorkerPool` to update.
|
1712
|
+
# Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.
|
1713
|
+
# @!attribute [rw] update_mask
|
1714
|
+
# @return [::Google::Protobuf::FieldMask]
|
1715
|
+
# A mask specifying which fields in `worker_pool` to update.
|
1716
|
+
# @!attribute [rw] validate_only
|
1717
|
+
# @return [::Boolean]
|
1718
|
+
# If set, validate the request and preview the response, but do not actually
|
1719
|
+
# post it.
|
1622
1720
|
class UpdateWorkerPoolRequest
|
1623
1721
|
include ::Google::Protobuf::MessageExts
|
1624
1722
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1625
1723
|
end
|
1626
1724
|
|
1627
|
-
# Request to list `
|
1725
|
+
# Request to list `WorkerPool`s.
|
1628
1726
|
# @!attribute [rw] parent
|
1629
1727
|
# @return [::String]
|
1630
|
-
#
|
1728
|
+
# Required. The parent of the collection of `WorkerPools`.
|
1729
|
+
# Format: `projects/{project}/locations/{location}`.
|
1730
|
+
# @!attribute [rw] page_size
|
1731
|
+
# @return [::Integer]
|
1732
|
+
# The maximum number of `WorkerPool`s to return. The service may return
|
1733
|
+
# fewer than this value. If omitted, the server will use a sensible default.
|
1734
|
+
# @!attribute [rw] page_token
|
1735
|
+
# @return [::String]
|
1736
|
+
# A page token, received from a previous `ListWorkerPools` call. Provide this
|
1737
|
+
# to retrieve the subsequent page.
|
1631
1738
|
class ListWorkerPoolsRequest
|
1632
1739
|
include ::Google::Protobuf::MessageExts
|
1633
1740
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1636,11 +1743,67 @@ module Google
|
|
1636
1743
|
# Response containing existing `WorkerPools`.
|
1637
1744
|
# @!attribute [rw] worker_pools
|
1638
1745
|
# @return [::Array<::Google::Cloud::Build::V1::WorkerPool>]
|
1639
|
-
# `WorkerPools` for the project.
|
1746
|
+
# `WorkerPools` for the specified project.
|
1747
|
+
# @!attribute [rw] next_page_token
|
1748
|
+
# @return [::String]
|
1749
|
+
# Continuation token used to page through large result sets. Provide this
|
1750
|
+
# value in a subsequent ListWorkerPoolsRequest to return the next page of
|
1751
|
+
# results.
|
1640
1752
|
class ListWorkerPoolsResponse
|
1641
1753
|
include ::Google::Protobuf::MessageExts
|
1642
1754
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1643
1755
|
end
|
1756
|
+
|
1757
|
+
# Metadata for the `CreateWorkerPool` operation.
|
1758
|
+
# @!attribute [rw] worker_pool
|
1759
|
+
# @return [::String]
|
1760
|
+
# The resource name of the `WorkerPool` to create.
|
1761
|
+
# Format:
|
1762
|
+
# `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
|
1763
|
+
# @!attribute [rw] create_time
|
1764
|
+
# @return [::Google::Protobuf::Timestamp]
|
1765
|
+
# Time the operation was created.
|
1766
|
+
# @!attribute [rw] complete_time
|
1767
|
+
# @return [::Google::Protobuf::Timestamp]
|
1768
|
+
# Time the operation was completed.
|
1769
|
+
class CreateWorkerPoolOperationMetadata
|
1770
|
+
include ::Google::Protobuf::MessageExts
|
1771
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1772
|
+
end
|
1773
|
+
|
1774
|
+
# Metadata for the `UpdateWorkerPool` operation.
|
1775
|
+
# @!attribute [rw] worker_pool
|
1776
|
+
# @return [::String]
|
1777
|
+
# The resource name of the `WorkerPool` being updated.
|
1778
|
+
# Format:
|
1779
|
+
# `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
|
1780
|
+
# @!attribute [rw] create_time
|
1781
|
+
# @return [::Google::Protobuf::Timestamp]
|
1782
|
+
# Time the operation was created.
|
1783
|
+
# @!attribute [rw] complete_time
|
1784
|
+
# @return [::Google::Protobuf::Timestamp]
|
1785
|
+
# Time the operation was completed.
|
1786
|
+
class UpdateWorkerPoolOperationMetadata
|
1787
|
+
include ::Google::Protobuf::MessageExts
|
1788
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1789
|
+
end
|
1790
|
+
|
1791
|
+
# Metadata for the `DeleteWorkerPool` operation.
|
1792
|
+
# @!attribute [rw] worker_pool
|
1793
|
+
# @return [::String]
|
1794
|
+
# The resource name of the `WorkerPool` being deleted.
|
1795
|
+
# Format:
|
1796
|
+
# `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
|
1797
|
+
# @!attribute [rw] create_time
|
1798
|
+
# @return [::Google::Protobuf::Timestamp]
|
1799
|
+
# Time the operation was created.
|
1800
|
+
# @!attribute [rw] complete_time
|
1801
|
+
# @return [::Google::Protobuf::Timestamp]
|
1802
|
+
# Time the operation was completed.
|
1803
|
+
class DeleteWorkerPoolOperationMetadata
|
1804
|
+
include ::Google::Protobuf::MessageExts
|
1805
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1806
|
+
end
|
1644
1807
|
end
|
1645
1808
|
end
|
1646
1809
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-build-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|