google-apis-developerconnect_v1 0.29.0 → 0.30.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.
@@ -323,9 +323,9 @@ module Google
323
323
  # @param [String] parent
324
324
  # Required. Parent value for ListAccountConnectorsRequest
325
325
  # @param [String] filter
326
- # Optional. Filtering results
326
+ # Optional. Filtering results.
327
327
  # @param [String] order_by
328
- # Optional. Hint for how to order the results
328
+ # Optional. Hint for how to order the results.
329
329
  # @param [Fixnum] page_size
330
330
  # Optional. Requested page size. Server may return fewer items than requested.
331
331
  # If unspecified, server will pick an appropriate default.
@@ -616,9 +616,9 @@ module Google
616
616
  # @param [String] parent
617
617
  # Required. Parent value for ListUsersRequest
618
618
  # @param [String] filter
619
- # Optional. Filtering results
619
+ # Optional. Filtering results.
620
620
  # @param [String] order_by
621
- # Optional. Hint for how to order the results
621
+ # Optional. Hint for how to order the results.
622
622
  # @param [Fixnum] page_size
623
623
  # Optional. Requested page size. Server may return fewer items than requested.
624
624
  # If unspecified, server will pick an appropriate default.
@@ -691,8 +691,8 @@ module Google
691
691
  # Required. Value for parent.
692
692
  # @param [Google::Apis::DeveloperconnectV1::Connection] connection_object
693
693
  # @param [String] connection_id
694
- # Required. Id of the requesting object If auto-generating Id server-side,
695
- # remove this field and connection_id from the method_signature of Create RPC
694
+ # Required. The ID to use for the connection, which becomes the final component
695
+ # of the connection's resource name.
696
696
  # @param [String] request_id
697
697
  # Optional. An optional request ID to identify requests. Specify a unique
698
698
  # request ID so that if you must retry your request, the server will know to
@@ -894,9 +894,9 @@ module Google
894
894
  # @param [String] parent
895
895
  # Required. Parent value for ListConnectionsRequest
896
896
  # @param [String] filter
897
- # Optional. Filtering results
897
+ # Optional. Filtering results.
898
898
  # @param [String] order_by
899
- # Optional. Hint for how to order the results
899
+ # Optional. Hint for how to order the results.
900
900
  # @param [Fixnum] page_size
901
901
  # Optional. Requested page size. Server may return fewer items than requested.
902
902
  # If unspecified, server will pick an appropriate default.
@@ -1030,6 +1030,74 @@ module Google
1030
1030
  execute_or_queue_command(command, &block)
1031
1031
  end
1032
1032
 
1033
+ # Add a comment to a Pull Request.
1034
+ # @param [String] name
1035
+ # Required. The resource name of the GitRepositoryLink in the format `projects/*/
1036
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1037
+ # @param [Google::Apis::DeveloperconnectV1::AddGitRepositoryLinkPullRequestCommentRequest] add_git_repository_link_pull_request_comment_request_object
1038
+ # @param [String] fields
1039
+ # Selector specifying which fields to include in a partial response.
1040
+ # @param [String] quota_user
1041
+ # Available to use for quota purposes for server-side applications. Can be any
1042
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1043
+ # @param [Google::Apis::RequestOptions] options
1044
+ # Request-specific options
1045
+ #
1046
+ # @yield [result, err] Result & error if block supplied
1047
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::PullRequestComment] parsed result object
1048
+ # @yieldparam err [StandardError] error object if request failed
1049
+ #
1050
+ # @return [Google::Apis::DeveloperconnectV1::PullRequestComment]
1051
+ #
1052
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1053
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1054
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1055
+ def add_project_location_connection_git_repository_link_pull_request_comment(name, add_git_repository_link_pull_request_comment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1056
+ command = make_simple_command(:post, 'v1/{+name}:addPullRequestComment', options)
1057
+ command.request_representation = Google::Apis::DeveloperconnectV1::AddGitRepositoryLinkPullRequestCommentRequest::Representation
1058
+ command.request_object = add_git_repository_link_pull_request_comment_request_object
1059
+ command.response_representation = Google::Apis::DeveloperconnectV1::PullRequestComment::Representation
1060
+ command.response_class = Google::Apis::DeveloperconnectV1::PullRequestComment
1061
+ command.params['name'] = name unless name.nil?
1062
+ command.query['fields'] = fields unless fields.nil?
1063
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1064
+ execute_or_queue_command(command, &block)
1065
+ end
1066
+
1067
+ # Add a review comment (inline on diff) to a Pull Request.
1068
+ # @param [String] name
1069
+ # Required. The resource name of the GitRepositoryLink in the format `projects/*/
1070
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1071
+ # @param [Google::Apis::DeveloperconnectV1::AddGitRepositoryLinkPullRequestReviewCommentRequest] add_git_repository_link_pull_request_review_comment_request_object
1072
+ # @param [String] fields
1073
+ # Selector specifying which fields to include in a partial response.
1074
+ # @param [String] quota_user
1075
+ # Available to use for quota purposes for server-side applications. Can be any
1076
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1077
+ # @param [Google::Apis::RequestOptions] options
1078
+ # Request-specific options
1079
+ #
1080
+ # @yield [result, err] Result & error if block supplied
1081
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::PullRequestReviewComment] parsed result object
1082
+ # @yieldparam err [StandardError] error object if request failed
1083
+ #
1084
+ # @return [Google::Apis::DeveloperconnectV1::PullRequestReviewComment]
1085
+ #
1086
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1087
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1088
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1089
+ def add_project_location_connection_git_repository_link_pull_request_review_comment(name, add_git_repository_link_pull_request_review_comment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1090
+ command = make_simple_command(:post, 'v1/{+name}:addPullRequestReviewComment', options)
1091
+ command.request_representation = Google::Apis::DeveloperconnectV1::AddGitRepositoryLinkPullRequestReviewCommentRequest::Representation
1092
+ command.request_object = add_git_repository_link_pull_request_review_comment_request_object
1093
+ command.response_representation = Google::Apis::DeveloperconnectV1::PullRequestReviewComment::Representation
1094
+ command.response_class = Google::Apis::DeveloperconnectV1::PullRequestReviewComment
1095
+ command.params['name'] = name unless name.nil?
1096
+ command.query['fields'] = fields unless fields.nil?
1097
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1098
+ execute_or_queue_command(command, &block)
1099
+ end
1100
+
1033
1101
  # Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect
1034
1102
  # will configure the Git Repository to send webhook events to Developer Connect.
1035
1103
  # Connections that use Firebase GitHub Application will have events forwarded to
@@ -1138,6 +1206,194 @@ module Google
1138
1206
  execute_or_queue_command(command, &block)
1139
1207
  end
1140
1208
 
1209
+ # Diff commits for a GitRepositoryLink.
1210
+ # @param [String] name
1211
+ # Required. The resource name of the GitRepositoryLink.
1212
+ # @param [String] base_sha
1213
+ # Required. The base commit SHA or ref.
1214
+ # @param [String] head_sha
1215
+ # Required. The head commit SHA or ref.
1216
+ # @param [Array<String>, String] path_filters
1217
+ # Optional. Path patterns or exact paths to filter returned files. When `
1218
+ # path_filters` is specified, `FileDiff.patch` is populated for all matching
1219
+ # files (use `["**"]` to include patches for all changed files). When `
1220
+ # path_filters` is omitted or empty, the full list of `FileDiff` is returned
1221
+ # without patch diffs (`FileDiff.patch` is empty).
1222
+ # @param [String] fields
1223
+ # Selector specifying which fields to include in a partial response.
1224
+ # @param [String] quota_user
1225
+ # Available to use for quota purposes for server-side applications. Can be any
1226
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1227
+ # @param [Google::Apis::RequestOptions] options
1228
+ # Request-specific options
1229
+ #
1230
+ # @yield [result, err] Result & error if block supplied
1231
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::DiffGitRepositoryLinkCommitResponse] parsed result object
1232
+ # @yieldparam err [StandardError] error object if request failed
1233
+ #
1234
+ # @return [Google::Apis::DeveloperconnectV1::DiffGitRepositoryLinkCommitResponse]
1235
+ #
1236
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1237
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1238
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1239
+ def diff_project_location_connection_git_repository_link_commit(name, base_sha: nil, head_sha: nil, path_filters: nil, fields: nil, quota_user: nil, options: nil, &block)
1240
+ command = make_simple_command(:get, 'v1/{+name}:diffCommit', options)
1241
+ command.response_representation = Google::Apis::DeveloperconnectV1::DiffGitRepositoryLinkCommitResponse::Representation
1242
+ command.response_class = Google::Apis::DeveloperconnectV1::DiffGitRepositoryLinkCommitResponse
1243
+ command.params['name'] = name unless name.nil?
1244
+ command.query['baseSha'] = base_sha unless base_sha.nil?
1245
+ command.query['headSha'] = head_sha unless head_sha.nil?
1246
+ command.query['pathFilters'] = path_filters unless path_filters.nil?
1247
+ command.query['fields'] = fields unless fields.nil?
1248
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1249
+ execute_or_queue_command(command, &block)
1250
+ end
1251
+
1252
+ # Fetch Commit details from a Git repository link.
1253
+ # @param [String] name
1254
+ # Required. The resource name of the GitRepositoryLink in the format `projects/*/
1255
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1256
+ # @param [String] commit_sha
1257
+ # Required. The commit SHA, or symbolic revision (for example, branch name, tag,
1258
+ # or Git reference).
1259
+ # @param [Array<String>, String] path_filters
1260
+ # Optional. Path patterns or exact paths to filter returned files (only
1261
+ # applicable in `FULL` view). When `path_filters` is specified, `FileDiff.patch`
1262
+ # is populated for all matching files (use `["**"]` to include patches for all
1263
+ # changed files). When `path_filters` is omitted or empty, the full list of `
1264
+ # FileDiff` is returned without patch diffs (`FileDiff.patch` is empty).
1265
+ # @param [String] view
1266
+ # Optional. The level of commit details to return in the response. Defaults to `
1267
+ # FULL` if unspecified. In `FULL` view, `files` metadata (paths and statuses)
1268
+ # are returned; `path_filters` must also be specified to populate line patch
1269
+ # hunks.
1270
+ # @param [String] fields
1271
+ # Selector specifying which fields to include in a partial response.
1272
+ # @param [String] quota_user
1273
+ # Available to use for quota purposes for server-side applications. Can be any
1274
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1275
+ # @param [Google::Apis::RequestOptions] options
1276
+ # Request-specific options
1277
+ #
1278
+ # @yield [result, err] Result & error if block supplied
1279
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitResponse] parsed result object
1280
+ # @yieldparam err [StandardError] error object if request failed
1281
+ #
1282
+ # @return [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitResponse]
1283
+ #
1284
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1285
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1286
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1287
+ def fetch_project_location_connection_git_repository_link_commit(name, commit_sha: nil, path_filters: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1288
+ command = make_simple_command(:get, 'v1/{+name}:fetchCommit', options)
1289
+ command.response_representation = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitResponse::Representation
1290
+ command.response_class = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitResponse
1291
+ command.params['name'] = name unless name.nil?
1292
+ command.query['commitSha'] = commit_sha unless commit_sha.nil?
1293
+ command.query['pathFilters'] = path_filters unless path_filters.nil?
1294
+ command.query['view'] = view unless view.nil?
1295
+ command.query['fields'] = fields unless fields.nil?
1296
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1297
+ execute_or_queue_command(command, &block)
1298
+ end
1299
+
1300
+ # Fetch a list of Commits from a Git repository link.
1301
+ # @param [String] name
1302
+ # Required. The resource name of the GitRepositoryLink in the format `projects/*/
1303
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1304
+ # @param [Fixnum] page_size
1305
+ # Optional. Number of results to return in the list. Default is 50. Max is 100.
1306
+ # @param [String] page_token
1307
+ # Optional. A page token, received from a previous `
1308
+ # FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
1309
+ # subsequent page. When paginating, all other parameters provided to `
1310
+ # FetchGitRepositoryLinkCommitList` must match the call that provided the page
1311
+ # token.
1312
+ # @param [String] ref
1313
+ # Optional. The commit SHA, or symbolic revision (for example, branch name, tag,
1314
+ # or Git reference) from which to start listing commits.
1315
+ # @param [String] view
1316
+ # Optional. The level of commit details to return in the response. Only `BASIC`
1317
+ # is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to `BASIC` if
1318
+ # unspecified. Use `FetchGitRepositoryLinkCommit` to get file diffs for a single
1319
+ # commit.
1320
+ # @param [String] fields
1321
+ # Selector specifying which fields to include in a partial response.
1322
+ # @param [String] quota_user
1323
+ # Available to use for quota purposes for server-side applications. Can be any
1324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1325
+ # @param [Google::Apis::RequestOptions] options
1326
+ # Request-specific options
1327
+ #
1328
+ # @yield [result, err] Result & error if block supplied
1329
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitListResponse] parsed result object
1330
+ # @yieldparam err [StandardError] error object if request failed
1331
+ #
1332
+ # @return [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitListResponse]
1333
+ #
1334
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1335
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1336
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1337
+ def fetch_project_location_connection_git_repository_link_commit_list(name, page_size: nil, page_token: nil, ref: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1338
+ command = make_simple_command(:get, 'v1/{+name}:fetchCommitList', options)
1339
+ command.response_representation = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitListResponse::Representation
1340
+ command.response_class = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitListResponse
1341
+ command.params['name'] = name unless name.nil?
1342
+ command.query['pageSize'] = page_size unless page_size.nil?
1343
+ command.query['pageToken'] = page_token unless page_token.nil?
1344
+ command.query['ref'] = ref unless ref.nil?
1345
+ command.query['view'] = view unless view.nil?
1346
+ command.query['fields'] = fields unless fields.nil?
1347
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1348
+ execute_or_queue_command(command, &block)
1349
+ end
1350
+
1351
+ # Fetches blame information for a file or line range in a file.
1352
+ # @param [String] name
1353
+ # Required. The resource name of the GitRepositoryLink in the format `projects/*/
1354
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1355
+ # @param [Fixnum] first_line
1356
+ # Optional. The 1-indexed starting line number of the range to blame (inclusive).
1357
+ # If not specified, blame begins at line 1.
1358
+ # @param [Fixnum] last_line
1359
+ # Optional. The 1-indexed ending line number of the range to blame (inclusive).
1360
+ # If not specified, blame extends to the end of the file.
1361
+ # @param [String] path
1362
+ # Required. The file path within the repository.
1363
+ # @param [String] ref
1364
+ # Required. The SCM commit SHA, or symbolic revision (for example, branch name,
1365
+ # tag) from which to fetch the blame.
1366
+ # @param [String] fields
1367
+ # Selector specifying which fields to include in a partial response.
1368
+ # @param [String] quota_user
1369
+ # Available to use for quota purposes for server-side applications. Can be any
1370
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1371
+ # @param [Google::Apis::RequestOptions] options
1372
+ # Request-specific options
1373
+ #
1374
+ # @yield [result, err] Result & error if block supplied
1375
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkFileBlameResponse] parsed result object
1376
+ # @yieldparam err [StandardError] error object if request failed
1377
+ #
1378
+ # @return [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkFileBlameResponse]
1379
+ #
1380
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1381
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1382
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1383
+ def fetch_project_location_connection_git_repository_link_file_blame(name, first_line: nil, last_line: nil, path: nil, ref: nil, fields: nil, quota_user: nil, options: nil, &block)
1384
+ command = make_simple_command(:get, 'v1/{+name}:fetchFileBlame', options)
1385
+ command.response_representation = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkFileBlameResponse::Representation
1386
+ command.response_class = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkFileBlameResponse
1387
+ command.params['name'] = name unless name.nil?
1388
+ command.query['firstLine'] = first_line unless first_line.nil?
1389
+ command.query['lastLine'] = last_line unless last_line.nil?
1390
+ command.query['path'] = path unless path.nil?
1391
+ command.query['ref'] = ref unless ref.nil?
1392
+ command.query['fields'] = fields unless fields.nil?
1393
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1394
+ execute_or_queue_command(command, &block)
1395
+ end
1396
+
1141
1397
  # Fetch the list of branches or tags for a given repository.
1142
1398
  # @param [String] git_repository_link
1143
1399
  # Required. The resource name of GitRepositoryLink in the format `projects/*/
@@ -1178,6 +1434,90 @@ module Google
1178
1434
  execute_or_queue_command(command, &block)
1179
1435
  end
1180
1436
 
1437
+ # Fetch Pull Request details from a Git repository link.
1438
+ # @param [String] name
1439
+ # Required. The resource name of the GitRepositoryLink in the format `projects/*/
1440
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1441
+ # @param [String] pull_request_id
1442
+ # Required. The ID of the Pull Request.
1443
+ # @param [String] fields
1444
+ # Selector specifying which fields to include in a partial response.
1445
+ # @param [String] quota_user
1446
+ # Available to use for quota purposes for server-side applications. Can be any
1447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1448
+ # @param [Google::Apis::RequestOptions] options
1449
+ # Request-specific options
1450
+ #
1451
+ # @yield [result, err] Result & error if block supplied
1452
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::PullRequest] parsed result object
1453
+ # @yieldparam err [StandardError] error object if request failed
1454
+ #
1455
+ # @return [Google::Apis::DeveloperconnectV1::PullRequest]
1456
+ #
1457
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1458
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1459
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1460
+ def fetch_project_location_connection_git_repository_link_pull_request(name, pull_request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1461
+ command = make_simple_command(:get, 'v1/{+name}:fetchPullRequest', options)
1462
+ command.response_representation = Google::Apis::DeveloperconnectV1::PullRequest::Representation
1463
+ command.response_class = Google::Apis::DeveloperconnectV1::PullRequest
1464
+ command.params['name'] = name unless name.nil?
1465
+ command.query['pullRequestId'] = pull_request_id unless pull_request_id.nil?
1466
+ command.query['fields'] = fields unless fields.nil?
1467
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1468
+ execute_or_queue_command(command, &block)
1469
+ end
1470
+
1471
+ # Fetches a list of Pull Requests from the remote repository.
1472
+ # @param [String] name
1473
+ # Required. The GitRepositoryLink resource name in the format `projects/*/
1474
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1475
+ # @param [String] filter
1476
+ # Optional. A filter expression that filters the pull requests returned in the
1477
+ # response. Only a single equality comparison on `state` is supported, for
1478
+ # example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and `MERGED`.
1479
+ # `DECLINED` is only supported for SCM providers that support declining pull
1480
+ # requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub Enterprise, GitLab,
1481
+ # and GitLab Enterprise. Other values or expressions return `INVALID_ARGUMENT`.
1482
+ # Defaults to `state = "OPEN"` if unspecified.
1483
+ # @param [Fixnum] page_size
1484
+ # Optional. Number of results to return in the list. Default is 20. Max is 100.
1485
+ # A page may contain fewer than `page_size` results even when more results are
1486
+ # available; use `next_page_token` to check for more pages.
1487
+ # @param [String] page_token
1488
+ # Optional. A page token, received from a previous `
1489
+ # FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
1490
+ # subsequent page.
1491
+ # @param [String] fields
1492
+ # Selector specifying which fields to include in a partial response.
1493
+ # @param [String] quota_user
1494
+ # Available to use for quota purposes for server-side applications. Can be any
1495
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1496
+ # @param [Google::Apis::RequestOptions] options
1497
+ # Request-specific options
1498
+ #
1499
+ # @yield [result, err] Result & error if block supplied
1500
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkPullRequestListResponse] parsed result object
1501
+ # @yieldparam err [StandardError] error object if request failed
1502
+ #
1503
+ # @return [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkPullRequestListResponse]
1504
+ #
1505
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1506
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1507
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1508
+ def fetch_project_location_connection_git_repository_link_pull_request_list(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1509
+ command = make_simple_command(:get, 'v1/{+name}:fetchPullRequestList', options)
1510
+ command.response_representation = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkPullRequestListResponse::Representation
1511
+ command.response_class = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkPullRequestListResponse
1512
+ command.params['name'] = name unless name.nil?
1513
+ command.query['filter'] = filter unless filter.nil?
1514
+ command.query['pageSize'] = page_size unless page_size.nil?
1515
+ command.query['pageToken'] = page_token unless page_token.nil?
1516
+ command.query['fields'] = fields unless fields.nil?
1517
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1518
+ execute_or_queue_command(command, &block)
1519
+ end
1520
+
1181
1521
  # Fetches read token of a given gitRepositoryLink.
1182
1522
  # @param [String] git_repository_link
1183
1523
  # Required. The resource name of the gitRepositoryLink in the format `projects/*/
@@ -1278,11 +1618,11 @@ module Google
1278
1618
 
1279
1619
  # Lists GitRepositoryLinks in a given project, location, and connection.
1280
1620
  # @param [String] parent
1281
- # Required. Parent value for ListGitRepositoryLinksRequest
1621
+ # Required. Parent value for ListGitRepositoryLinksRequest.
1282
1622
  # @param [String] filter
1283
- # Optional. Filtering results
1623
+ # Optional. Filtering results.
1284
1624
  # @param [String] order_by
1285
- # Optional. Hint for how to order the results
1625
+ # Optional. Hint for how to order the results.
1286
1626
  # @param [Fixnum] page_size
1287
1627
  # Optional. Requested page size. Server may return fewer items than requested.
1288
1628
  # If unspecified, server will pick an appropriate default.
@@ -1319,6 +1659,76 @@ module Google
1319
1659
  execute_or_queue_command(command, &block)
1320
1660
  end
1321
1661
 
1662
+ # Modifies a Pull Request in the remote SCM repository associated with a
1663
+ # GitRepositoryLink.
1664
+ # @param [String] name
1665
+ # Required. The GitRepositoryLink resource name in the format `projects/*/
1666
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1667
+ # @param [Google::Apis::DeveloperconnectV1::ModifyGitRepositoryLinkPullRequestRequest] modify_git_repository_link_pull_request_request_object
1668
+ # @param [String] fields
1669
+ # Selector specifying which fields to include in a partial response.
1670
+ # @param [String] quota_user
1671
+ # Available to use for quota purposes for server-side applications. Can be any
1672
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1673
+ # @param [Google::Apis::RequestOptions] options
1674
+ # Request-specific options
1675
+ #
1676
+ # @yield [result, err] Result & error if block supplied
1677
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::PullRequest] parsed result object
1678
+ # @yieldparam err [StandardError] error object if request failed
1679
+ #
1680
+ # @return [Google::Apis::DeveloperconnectV1::PullRequest]
1681
+ #
1682
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1683
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1684
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1685
+ def modify_project_location_connection_git_repository_link_pull_request(name, modify_git_repository_link_pull_request_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1686
+ command = make_simple_command(:post, 'v1/{+name}:modifyPullRequest', options)
1687
+ command.request_representation = Google::Apis::DeveloperconnectV1::ModifyGitRepositoryLinkPullRequestRequest::Representation
1688
+ command.request_object = modify_git_repository_link_pull_request_request_object
1689
+ command.response_representation = Google::Apis::DeveloperconnectV1::PullRequest::Representation
1690
+ command.response_class = Google::Apis::DeveloperconnectV1::PullRequest
1691
+ command.params['name'] = name unless name.nil?
1692
+ command.query['fields'] = fields unless fields.nil?
1693
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1694
+ execute_or_queue_command(command, &block)
1695
+ end
1696
+
1697
+ # Opens a Pull Request in the remote SCM repository associated with a
1698
+ # GitRepositoryLink.
1699
+ # @param [String] name
1700
+ # Required. The GitRepositoryLink resource name in the format `projects/*/
1701
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1702
+ # @param [Google::Apis::DeveloperconnectV1::OpenGitRepositoryLinkPullRequestRequest] open_git_repository_link_pull_request_request_object
1703
+ # @param [String] fields
1704
+ # Selector specifying which fields to include in a partial response.
1705
+ # @param [String] quota_user
1706
+ # Available to use for quota purposes for server-side applications. Can be any
1707
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1708
+ # @param [Google::Apis::RequestOptions] options
1709
+ # Request-specific options
1710
+ #
1711
+ # @yield [result, err] Result & error if block supplied
1712
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::PullRequest] parsed result object
1713
+ # @yieldparam err [StandardError] error object if request failed
1714
+ #
1715
+ # @return [Google::Apis::DeveloperconnectV1::PullRequest]
1716
+ #
1717
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1718
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1719
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1720
+ def open_project_location_connection_git_repository_link_pull_request(name, open_git_repository_link_pull_request_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1721
+ command = make_simple_command(:post, 'v1/{+name}:openPullRequest', options)
1722
+ command.request_representation = Google::Apis::DeveloperconnectV1::OpenGitRepositoryLinkPullRequestRequest::Representation
1723
+ command.request_object = open_git_repository_link_pull_request_request_object
1724
+ command.response_representation = Google::Apis::DeveloperconnectV1::PullRequest::Representation
1725
+ command.response_class = Google::Apis::DeveloperconnectV1::PullRequest
1726
+ command.params['name'] = name unless name.nil?
1727
+ command.query['fields'] = fields unless fields.nil?
1728
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1729
+ execute_or_queue_command(command, &block)
1730
+ end
1731
+
1322
1732
  # ProcessBitbucketCloudWebhook is called by the external Bitbucket Cloud
1323
1733
  # instances for notifying events.
1324
1734
  # @param [String] name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-developerconnect_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-developerconnect_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-developerconnect_v1/v0.29.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-developerconnect_v1/v0.30.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-developerconnect_v1
62
62
  rdoc_options: []
63
63
  require_paths: