google-apis-cloudbuild_v1 0.38.0 → 0.39.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1171,6 +1171,294 @@ module Google
1171
1171
  execute_or_queue_command(command, &block)
1172
1172
  end
1173
1173
 
1174
+ # Creates a new `GitLabConfig`. This API is experimental
1175
+ # @param [String] parent
1176
+ # Required. Name of the parent resource.
1177
+ # @param [Google::Apis::CloudbuildV1::GitLabConfig] git_lab_config_object
1178
+ # @param [String] gitlab_config_id
1179
+ # Optional. The ID to use for the GitLabConfig, which will become the final
1180
+ # component of the GitLabConfig’s resource name. gitlab_config_id must meet the
1181
+ # following requirements: + They must contain only alphanumeric characters and
1182
+ # dashes. + They can be 1-64 characters long. + They must begin and end with an
1183
+ # alphanumeric character
1184
+ # @param [String] fields
1185
+ # Selector specifying which fields to include in a partial response.
1186
+ # @param [String] quota_user
1187
+ # Available to use for quota purposes for server-side applications. Can be any
1188
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1189
+ # @param [Google::Apis::RequestOptions] options
1190
+ # Request-specific options
1191
+ #
1192
+ # @yield [result, err] Result & error if block supplied
1193
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
1194
+ # @yieldparam err [StandardError] error object if request failed
1195
+ #
1196
+ # @return [Google::Apis::CloudbuildV1::Operation]
1197
+ #
1198
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1199
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1200
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1201
+ def create_project_location_git_lab_config(parent, git_lab_config_object = nil, gitlab_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1202
+ command = make_simple_command(:post, 'v1/{+parent}/gitLabConfigs', options)
1203
+ command.request_representation = Google::Apis::CloudbuildV1::GitLabConfig::Representation
1204
+ command.request_object = git_lab_config_object
1205
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
1206
+ command.response_class = Google::Apis::CloudbuildV1::Operation
1207
+ command.params['parent'] = parent unless parent.nil?
1208
+ command.query['gitlabConfigId'] = gitlab_config_id unless gitlab_config_id.nil?
1209
+ command.query['fields'] = fields unless fields.nil?
1210
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1211
+ execute_or_queue_command(command, &block)
1212
+ end
1213
+
1214
+ # Delete a `GitLabConfig`. This API is experimental
1215
+ # @param [String] name
1216
+ # Required. The config resource name.
1217
+ # @param [String] fields
1218
+ # Selector specifying which fields to include in a partial response.
1219
+ # @param [String] quota_user
1220
+ # Available to use for quota purposes for server-side applications. Can be any
1221
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1222
+ # @param [Google::Apis::RequestOptions] options
1223
+ # Request-specific options
1224
+ #
1225
+ # @yield [result, err] Result & error if block supplied
1226
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
1227
+ # @yieldparam err [StandardError] error object if request failed
1228
+ #
1229
+ # @return [Google::Apis::CloudbuildV1::Operation]
1230
+ #
1231
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1232
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1233
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1234
+ def delete_project_location_git_lab_config(name, fields: nil, quota_user: nil, options: nil, &block)
1235
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1236
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
1237
+ command.response_class = Google::Apis::CloudbuildV1::Operation
1238
+ command.params['name'] = name unless name.nil?
1239
+ command.query['fields'] = fields unless fields.nil?
1240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1241
+ execute_or_queue_command(command, &block)
1242
+ end
1243
+
1244
+ # Retrieves a `GitLabConfig`. This API is experimental
1245
+ # @param [String] name
1246
+ # Required. The config resource name.
1247
+ # @param [String] fields
1248
+ # Selector specifying which fields to include in a partial response.
1249
+ # @param [String] quota_user
1250
+ # Available to use for quota purposes for server-side applications. Can be any
1251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1252
+ # @param [Google::Apis::RequestOptions] options
1253
+ # Request-specific options
1254
+ #
1255
+ # @yield [result, err] Result & error if block supplied
1256
+ # @yieldparam result [Google::Apis::CloudbuildV1::GitLabConfig] parsed result object
1257
+ # @yieldparam err [StandardError] error object if request failed
1258
+ #
1259
+ # @return [Google::Apis::CloudbuildV1::GitLabConfig]
1260
+ #
1261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1264
+ def get_project_location_git_lab_config(name, fields: nil, quota_user: nil, options: nil, &block)
1265
+ command = make_simple_command(:get, 'v1/{+name}', options)
1266
+ command.response_representation = Google::Apis::CloudbuildV1::GitLabConfig::Representation
1267
+ command.response_class = Google::Apis::CloudbuildV1::GitLabConfig
1268
+ command.params['name'] = name unless name.nil?
1269
+ command.query['fields'] = fields unless fields.nil?
1270
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1271
+ execute_or_queue_command(command, &block)
1272
+ end
1273
+
1274
+ # List all `GitLabConfigs` for a given project. This API is experimental
1275
+ # @param [String] parent
1276
+ # Required. Name of the parent resource
1277
+ # @param [Fixnum] page_size
1278
+ # The maximum number of configs to return. The service may return fewer than
1279
+ # this value. If unspecified, at most 50 configs will be returned. The maximum
1280
+ # value is 1000;, values above 1000 will be coerced to 1000.
1281
+ # @param [String] page_token
1282
+ # A page token, received from a previous ‘ListGitlabConfigsRequest’ call.
1283
+ # Provide this to retrieve the subsequent page. When paginating, all other
1284
+ # parameters provided to ‘ListGitlabConfigsRequest’ must match the call that
1285
+ # provided the page token.
1286
+ # @param [String] fields
1287
+ # Selector specifying which fields to include in a partial response.
1288
+ # @param [String] quota_user
1289
+ # Available to use for quota purposes for server-side applications. Can be any
1290
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1291
+ # @param [Google::Apis::RequestOptions] options
1292
+ # Request-specific options
1293
+ #
1294
+ # @yield [result, err] Result & error if block supplied
1295
+ # @yieldparam result [Google::Apis::CloudbuildV1::ListGitLabConfigsResponse] parsed result object
1296
+ # @yieldparam err [StandardError] error object if request failed
1297
+ #
1298
+ # @return [Google::Apis::CloudbuildV1::ListGitLabConfigsResponse]
1299
+ #
1300
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1301
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1302
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1303
+ def list_project_location_git_lab_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1304
+ command = make_simple_command(:get, 'v1/{+parent}/gitLabConfigs', options)
1305
+ command.response_representation = Google::Apis::CloudbuildV1::ListGitLabConfigsResponse::Representation
1306
+ command.response_class = Google::Apis::CloudbuildV1::ListGitLabConfigsResponse
1307
+ command.params['parent'] = parent unless parent.nil?
1308
+ command.query['pageSize'] = page_size unless page_size.nil?
1309
+ command.query['pageToken'] = page_token unless page_token.nil?
1310
+ command.query['fields'] = fields unless fields.nil?
1311
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1312
+ execute_or_queue_command(command, &block)
1313
+ end
1314
+
1315
+ # Updates an existing `GitLabConfig`. This API is experimental
1316
+ # @param [String] name
1317
+ # The resource name for the config.
1318
+ # @param [Google::Apis::CloudbuildV1::GitLabConfig] git_lab_config_object
1319
+ # @param [String] update_mask
1320
+ # Update mask for the resource. If this is set, the server will only update the
1321
+ # fields specified in the field mask. Otherwise, a full update of the mutable
1322
+ # resource fields will be performed.
1323
+ # @param [String] fields
1324
+ # Selector specifying which fields to include in a partial response.
1325
+ # @param [String] quota_user
1326
+ # Available to use for quota purposes for server-side applications. Can be any
1327
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1328
+ # @param [Google::Apis::RequestOptions] options
1329
+ # Request-specific options
1330
+ #
1331
+ # @yield [result, err] Result & error if block supplied
1332
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
1333
+ # @yieldparam err [StandardError] error object if request failed
1334
+ #
1335
+ # @return [Google::Apis::CloudbuildV1::Operation]
1336
+ #
1337
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1338
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1339
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1340
+ def patch_project_location_git_lab_config(name, git_lab_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1341
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1342
+ command.request_representation = Google::Apis::CloudbuildV1::GitLabConfig::Representation
1343
+ command.request_object = git_lab_config_object
1344
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
1345
+ command.response_class = Google::Apis::CloudbuildV1::Operation
1346
+ command.params['name'] = name unless name.nil?
1347
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1348
+ command.query['fields'] = fields unless fields.nil?
1349
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1350
+ execute_or_queue_command(command, &block)
1351
+ end
1352
+
1353
+ # Remove a GitLab repository from a given GitLabConfig's connected repositories.
1354
+ # This API is experimental.
1355
+ # @param [String] config
1356
+ # Required. The name of the `GitLabConfig` to remove a connected repository.
1357
+ # Format: `projects/`project`/locations/`location`/gitLabConfigs/`config``
1358
+ # @param [Google::Apis::CloudbuildV1::RemoveGitLabConnectedRepositoryRequest] remove_git_lab_connected_repository_request_object
1359
+ # @param [String] fields
1360
+ # Selector specifying which fields to include in a partial response.
1361
+ # @param [String] quota_user
1362
+ # Available to use for quota purposes for server-side applications. Can be any
1363
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1364
+ # @param [Google::Apis::RequestOptions] options
1365
+ # Request-specific options
1366
+ #
1367
+ # @yield [result, err] Result & error if block supplied
1368
+ # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
1369
+ # @yieldparam err [StandardError] error object if request failed
1370
+ #
1371
+ # @return [Google::Apis::CloudbuildV1::Empty]
1372
+ #
1373
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1374
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1375
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1376
+ def remove_git_lab_config_git_lab_connected_repository(config, remove_git_lab_connected_repository_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1377
+ command = make_simple_command(:post, 'v1/{+config}:removeGitLabConnectedRepository', options)
1378
+ command.request_representation = Google::Apis::CloudbuildV1::RemoveGitLabConnectedRepositoryRequest::Representation
1379
+ command.request_object = remove_git_lab_connected_repository_request_object
1380
+ command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
1381
+ command.response_class = Google::Apis::CloudbuildV1::Empty
1382
+ command.params['config'] = config unless config.nil?
1383
+ command.query['fields'] = fields unless fields.nil?
1384
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1385
+ execute_or_queue_command(command, &block)
1386
+ end
1387
+
1388
+ # Batch connecting GitLab repositories to Cloud Build. This API is experimental.
1389
+ # @param [String] parent
1390
+ # The name of the `GitLabConfig` that adds connected repositories. Format: `
1391
+ # projects/`project`/locations/`location`/gitLabConfigs/`config``
1392
+ # @param [Google::Apis::CloudbuildV1::BatchCreateGitLabConnectedRepositoriesRequest] batch_create_git_lab_connected_repositories_request_object
1393
+ # @param [String] fields
1394
+ # Selector specifying which fields to include in a partial response.
1395
+ # @param [String] quota_user
1396
+ # Available to use for quota purposes for server-side applications. Can be any
1397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1398
+ # @param [Google::Apis::RequestOptions] options
1399
+ # Request-specific options
1400
+ #
1401
+ # @yield [result, err] Result & error if block supplied
1402
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
1403
+ # @yieldparam err [StandardError] error object if request failed
1404
+ #
1405
+ # @return [Google::Apis::CloudbuildV1::Operation]
1406
+ #
1407
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1408
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1409
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1410
+ def batch_connected_repository_create_git_lab_connected_repositories(parent, batch_create_git_lab_connected_repositories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1411
+ command = make_simple_command(:post, 'v1/{+parent}/connectedRepositories:batchCreate', options)
1412
+ command.request_representation = Google::Apis::CloudbuildV1::BatchCreateGitLabConnectedRepositoriesRequest::Representation
1413
+ command.request_object = batch_create_git_lab_connected_repositories_request_object
1414
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
1415
+ command.response_class = Google::Apis::CloudbuildV1::Operation
1416
+ command.params['parent'] = parent unless parent.nil?
1417
+ command.query['fields'] = fields unless fields.nil?
1418
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1419
+ execute_or_queue_command(command, &block)
1420
+ end
1421
+
1422
+ # List all repositories for a given `GitLabConfig`. This API is experimental
1423
+ # @param [String] parent
1424
+ # Required. Name of the parent resource.
1425
+ # @param [Fixnum] page_size
1426
+ # The maximum number of repositories to return. The service may return fewer
1427
+ # than this value.
1428
+ # @param [String] page_token
1429
+ # A page token, received from a previous ListGitLabRepositoriesRequest` call.
1430
+ # Provide this to retrieve the subsequent page. When paginating, all other
1431
+ # parameters provided to `ListGitLabRepositoriesRequest` must match the call
1432
+ # that provided the page token.
1433
+ # @param [String] fields
1434
+ # Selector specifying which fields to include in a partial response.
1435
+ # @param [String] quota_user
1436
+ # Available to use for quota purposes for server-side applications. Can be any
1437
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1438
+ # @param [Google::Apis::RequestOptions] options
1439
+ # Request-specific options
1440
+ #
1441
+ # @yield [result, err] Result & error if block supplied
1442
+ # @yieldparam result [Google::Apis::CloudbuildV1::ListGitLabRepositoriesResponse] parsed result object
1443
+ # @yieldparam err [StandardError] error object if request failed
1444
+ #
1445
+ # @return [Google::Apis::CloudbuildV1::ListGitLabRepositoriesResponse]
1446
+ #
1447
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1448
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1449
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1450
+ def list_project_location_git_lab_config_repos(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1451
+ command = make_simple_command(:get, 'v1/{+parent}/repos', options)
1452
+ command.response_representation = Google::Apis::CloudbuildV1::ListGitLabRepositoriesResponse::Representation
1453
+ command.response_class = Google::Apis::CloudbuildV1::ListGitLabRepositoriesResponse
1454
+ command.params['parent'] = parent unless parent.nil?
1455
+ command.query['pageSize'] = page_size unless page_size.nil?
1456
+ command.query['pageToken'] = page_token unless page_token.nil?
1457
+ command.query['fields'] = fields unless fields.nil?
1458
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1459
+ execute_or_queue_command(command, &block)
1460
+ end
1461
+
1174
1462
  # Create an association between a GCP project and a GitHub Enterprise server.
1175
1463
  # @param [String] parent
1176
1464
  # Name of the parent project. For example: projects/`$project_number` or
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudbuild_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.39.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: 2022-09-05 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: 0.9.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: 0.9.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudbuild_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.39.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudbuild_v1
63
63
  post_install_message:
64
64
  rdoc_options: []