google-apis-developerconnect_v1 0.29.0 → 0.31.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,195 @@ 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 in the format `projects/*/
1212
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1213
+ # @param [String] base_sha
1214
+ # Required. The base commit SHA or ref.
1215
+ # @param [String] head_sha
1216
+ # Required. The head commit SHA or ref.
1217
+ # @param [Array<String>, String] path_filters
1218
+ # Optional. Path patterns or exact paths to filter returned files. When `
1219
+ # path_filters` is specified, `FileDiff.patch` is populated for all matching
1220
+ # files (use `["**"]` to include patches for all changed files). When `
1221
+ # path_filters` is omitted or empty, the full list of `FileDiff` is returned
1222
+ # without patch diffs (`FileDiff.patch` is empty).
1223
+ # @param [String] fields
1224
+ # Selector specifying which fields to include in a partial response.
1225
+ # @param [String] quota_user
1226
+ # Available to use for quota purposes for server-side applications. Can be any
1227
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1228
+ # @param [Google::Apis::RequestOptions] options
1229
+ # Request-specific options
1230
+ #
1231
+ # @yield [result, err] Result & error if block supplied
1232
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::DiffGitRepositoryLinkCommitResponse] parsed result object
1233
+ # @yieldparam err [StandardError] error object if request failed
1234
+ #
1235
+ # @return [Google::Apis::DeveloperconnectV1::DiffGitRepositoryLinkCommitResponse]
1236
+ #
1237
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1238
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1239
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1240
+ 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)
1241
+ command = make_simple_command(:get, 'v1/{+name}:diffCommit', options)
1242
+ command.response_representation = Google::Apis::DeveloperconnectV1::DiffGitRepositoryLinkCommitResponse::Representation
1243
+ command.response_class = Google::Apis::DeveloperconnectV1::DiffGitRepositoryLinkCommitResponse
1244
+ command.params['name'] = name unless name.nil?
1245
+ command.query['baseSha'] = base_sha unless base_sha.nil?
1246
+ command.query['headSha'] = head_sha unless head_sha.nil?
1247
+ command.query['pathFilters'] = path_filters unless path_filters.nil?
1248
+ command.query['fields'] = fields unless fields.nil?
1249
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1250
+ execute_or_queue_command(command, &block)
1251
+ end
1252
+
1253
+ # Fetch Commit details from a Git repository link.
1254
+ # @param [String] name
1255
+ # Required. The resource name of the GitRepositoryLink in the format `projects/*/
1256
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1257
+ # @param [String] commit_sha
1258
+ # Required. The commit SHA, or symbolic revision (for example, branch name, tag,
1259
+ # or Git reference).
1260
+ # @param [Array<String>, String] path_filters
1261
+ # Optional. Path patterns or exact paths to filter returned files (only
1262
+ # applicable in `FULL` view). When `path_filters` is specified, `FileDiff.patch`
1263
+ # is populated for all matching files (use `["**"]` to include patches for all
1264
+ # changed files). When `path_filters` is omitted or empty, the full list of `
1265
+ # FileDiff` is returned without patch diffs (`FileDiff.patch` is empty).
1266
+ # @param [String] view
1267
+ # Optional. The level of commit details to return in the response. Defaults to `
1268
+ # FULL` if unspecified. In `FULL` view, `files` metadata (paths and statuses)
1269
+ # are returned; `path_filters` must also be specified to populate line patch
1270
+ # hunks.
1271
+ # @param [String] fields
1272
+ # Selector specifying which fields to include in a partial response.
1273
+ # @param [String] quota_user
1274
+ # Available to use for quota purposes for server-side applications. Can be any
1275
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1276
+ # @param [Google::Apis::RequestOptions] options
1277
+ # Request-specific options
1278
+ #
1279
+ # @yield [result, err] Result & error if block supplied
1280
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitResponse] parsed result object
1281
+ # @yieldparam err [StandardError] error object if request failed
1282
+ #
1283
+ # @return [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitResponse]
1284
+ #
1285
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1286
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1287
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1288
+ 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)
1289
+ command = make_simple_command(:get, 'v1/{+name}:fetchCommit', options)
1290
+ command.response_representation = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitResponse::Representation
1291
+ command.response_class = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitResponse
1292
+ command.params['name'] = name unless name.nil?
1293
+ command.query['commitSha'] = commit_sha unless commit_sha.nil?
1294
+ command.query['pathFilters'] = path_filters unless path_filters.nil?
1295
+ command.query['view'] = view unless view.nil?
1296
+ command.query['fields'] = fields unless fields.nil?
1297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1298
+ execute_or_queue_command(command, &block)
1299
+ end
1300
+
1301
+ # Fetch a list of Commits from a Git repository link.
1302
+ # @param [String] name
1303
+ # Required. The resource name of the GitRepositoryLink in the format `projects/*/
1304
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1305
+ # @param [Fixnum] page_size
1306
+ # Optional. Number of results to return in the list. Default is 50. Max is 100.
1307
+ # @param [String] page_token
1308
+ # Optional. A page token, received from a previous `
1309
+ # FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
1310
+ # subsequent page. When paginating, all other parameters provided to `
1311
+ # FetchGitRepositoryLinkCommitList` must match the call that provided the page
1312
+ # token.
1313
+ # @param [String] ref
1314
+ # Optional. The commit SHA, or symbolic revision (for example, branch name, tag,
1315
+ # or Git reference) from which to start listing commits.
1316
+ # @param [String] view
1317
+ # Optional. The level of commit details to return in the response. Only `BASIC`
1318
+ # is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to `BASIC` if
1319
+ # unspecified. Use `FetchGitRepositoryLinkCommit` to get file diffs for a single
1320
+ # commit.
1321
+ # @param [String] fields
1322
+ # Selector specifying which fields to include in a partial response.
1323
+ # @param [String] quota_user
1324
+ # Available to use for quota purposes for server-side applications. Can be any
1325
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1326
+ # @param [Google::Apis::RequestOptions] options
1327
+ # Request-specific options
1328
+ #
1329
+ # @yield [result, err] Result & error if block supplied
1330
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitListResponse] parsed result object
1331
+ # @yieldparam err [StandardError] error object if request failed
1332
+ #
1333
+ # @return [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitListResponse]
1334
+ #
1335
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1336
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1337
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1338
+ 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)
1339
+ command = make_simple_command(:get, 'v1/{+name}:fetchCommitList', options)
1340
+ command.response_representation = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitListResponse::Representation
1341
+ command.response_class = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkCommitListResponse
1342
+ command.params['name'] = name unless name.nil?
1343
+ command.query['pageSize'] = page_size unless page_size.nil?
1344
+ command.query['pageToken'] = page_token unless page_token.nil?
1345
+ command.query['ref'] = ref unless ref.nil?
1346
+ command.query['view'] = view unless view.nil?
1347
+ command.query['fields'] = fields unless fields.nil?
1348
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1349
+ execute_or_queue_command(command, &block)
1350
+ end
1351
+
1352
+ # Fetches blame information for a file or line range in a file.
1353
+ # @param [String] name
1354
+ # Required. The resource name of the GitRepositoryLink in the format `projects/*/
1355
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1356
+ # @param [Fixnum] first_line
1357
+ # Optional. The 1-indexed starting line number of the range to blame (inclusive).
1358
+ # If not specified, blame begins at line 1.
1359
+ # @param [Fixnum] last_line
1360
+ # Optional. The 1-indexed ending line number of the range to blame (inclusive).
1361
+ # If not specified, blame extends to the end of the file.
1362
+ # @param [String] path
1363
+ # Required. The file path within the repository.
1364
+ # @param [String] ref
1365
+ # Required. The SCM commit SHA, or symbolic revision (for example, branch name,
1366
+ # tag) from which to fetch the blame.
1367
+ # @param [String] fields
1368
+ # Selector specifying which fields to include in a partial response.
1369
+ # @param [String] quota_user
1370
+ # Available to use for quota purposes for server-side applications. Can be any
1371
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1372
+ # @param [Google::Apis::RequestOptions] options
1373
+ # Request-specific options
1374
+ #
1375
+ # @yield [result, err] Result & error if block supplied
1376
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkFileBlameResponse] parsed result object
1377
+ # @yieldparam err [StandardError] error object if request failed
1378
+ #
1379
+ # @return [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkFileBlameResponse]
1380
+ #
1381
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1382
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1383
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1384
+ 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)
1385
+ command = make_simple_command(:get, 'v1/{+name}:fetchFileBlame', options)
1386
+ command.response_representation = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkFileBlameResponse::Representation
1387
+ command.response_class = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkFileBlameResponse
1388
+ command.params['name'] = name unless name.nil?
1389
+ command.query['firstLine'] = first_line unless first_line.nil?
1390
+ command.query['lastLine'] = last_line unless last_line.nil?
1391
+ command.query['path'] = path unless path.nil?
1392
+ command.query['ref'] = ref unless ref.nil?
1393
+ command.query['fields'] = fields unless fields.nil?
1394
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1395
+ execute_or_queue_command(command, &block)
1396
+ end
1397
+
1141
1398
  # Fetch the list of branches or tags for a given repository.
1142
1399
  # @param [String] git_repository_link
1143
1400
  # Required. The resource name of GitRepositoryLink in the format `projects/*/
@@ -1178,6 +1435,90 @@ module Google
1178
1435
  execute_or_queue_command(command, &block)
1179
1436
  end
1180
1437
 
1438
+ # Fetch Pull Request details from a Git repository link.
1439
+ # @param [String] name
1440
+ # Required. The resource name of the GitRepositoryLink in the format `projects/*/
1441
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1442
+ # @param [String] pull_request_id
1443
+ # Required. The ID of the Pull Request.
1444
+ # @param [String] fields
1445
+ # Selector specifying which fields to include in a partial response.
1446
+ # @param [String] quota_user
1447
+ # Available to use for quota purposes for server-side applications. Can be any
1448
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1449
+ # @param [Google::Apis::RequestOptions] options
1450
+ # Request-specific options
1451
+ #
1452
+ # @yield [result, err] Result & error if block supplied
1453
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::PullRequest] parsed result object
1454
+ # @yieldparam err [StandardError] error object if request failed
1455
+ #
1456
+ # @return [Google::Apis::DeveloperconnectV1::PullRequest]
1457
+ #
1458
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1459
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1460
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1461
+ def fetch_project_location_connection_git_repository_link_pull_request(name, pull_request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1462
+ command = make_simple_command(:get, 'v1/{+name}:fetchPullRequest', options)
1463
+ command.response_representation = Google::Apis::DeveloperconnectV1::PullRequest::Representation
1464
+ command.response_class = Google::Apis::DeveloperconnectV1::PullRequest
1465
+ command.params['name'] = name unless name.nil?
1466
+ command.query['pullRequestId'] = pull_request_id unless pull_request_id.nil?
1467
+ command.query['fields'] = fields unless fields.nil?
1468
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1469
+ execute_or_queue_command(command, &block)
1470
+ end
1471
+
1472
+ # Fetches a list of Pull Requests from the remote repository.
1473
+ # @param [String] name
1474
+ # Required. The GitRepositoryLink resource name in the format `projects/*/
1475
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1476
+ # @param [String] filter
1477
+ # Optional. A filter expression that filters the pull requests returned in the
1478
+ # response. Only a single equality comparison on `state` is supported, for
1479
+ # example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and `MERGED`.
1480
+ # `DECLINED` is only supported for SCM providers that support declining pull
1481
+ # requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub Enterprise, GitLab,
1482
+ # and GitLab Enterprise. Other values or expressions return `INVALID_ARGUMENT`.
1483
+ # Defaults to `state = "OPEN"` if unspecified.
1484
+ # @param [Fixnum] page_size
1485
+ # Optional. Number of results to return in the list. Default is 20. Max is 100.
1486
+ # A page may contain fewer than `page_size` results even when more results are
1487
+ # available; use `next_page_token` to check for more pages.
1488
+ # @param [String] page_token
1489
+ # Optional. A page token, received from a previous `
1490
+ # FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
1491
+ # subsequent page.
1492
+ # @param [String] fields
1493
+ # Selector specifying which fields to include in a partial response.
1494
+ # @param [String] quota_user
1495
+ # Available to use for quota purposes for server-side applications. Can be any
1496
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1497
+ # @param [Google::Apis::RequestOptions] options
1498
+ # Request-specific options
1499
+ #
1500
+ # @yield [result, err] Result & error if block supplied
1501
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkPullRequestListResponse] parsed result object
1502
+ # @yieldparam err [StandardError] error object if request failed
1503
+ #
1504
+ # @return [Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkPullRequestListResponse]
1505
+ #
1506
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1507
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1508
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1509
+ 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)
1510
+ command = make_simple_command(:get, 'v1/{+name}:fetchPullRequestList', options)
1511
+ command.response_representation = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkPullRequestListResponse::Representation
1512
+ command.response_class = Google::Apis::DeveloperconnectV1::FetchGitRepositoryLinkPullRequestListResponse
1513
+ command.params['name'] = name unless name.nil?
1514
+ command.query['filter'] = filter unless filter.nil?
1515
+ command.query['pageSize'] = page_size unless page_size.nil?
1516
+ command.query['pageToken'] = page_token unless page_token.nil?
1517
+ command.query['fields'] = fields unless fields.nil?
1518
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1519
+ execute_or_queue_command(command, &block)
1520
+ end
1521
+
1181
1522
  # Fetches read token of a given gitRepositoryLink.
1182
1523
  # @param [String] git_repository_link
1183
1524
  # Required. The resource name of the gitRepositoryLink in the format `projects/*/
@@ -1278,11 +1619,11 @@ module Google
1278
1619
 
1279
1620
  # Lists GitRepositoryLinks in a given project, location, and connection.
1280
1621
  # @param [String] parent
1281
- # Required. Parent value for ListGitRepositoryLinksRequest
1622
+ # Required. Parent value for ListGitRepositoryLinksRequest.
1282
1623
  # @param [String] filter
1283
- # Optional. Filtering results
1624
+ # Optional. Filtering results.
1284
1625
  # @param [String] order_by
1285
- # Optional. Hint for how to order the results
1626
+ # Optional. Hint for how to order the results.
1286
1627
  # @param [Fixnum] page_size
1287
1628
  # Optional. Requested page size. Server may return fewer items than requested.
1288
1629
  # If unspecified, server will pick an appropriate default.
@@ -1319,6 +1660,76 @@ module Google
1319
1660
  execute_or_queue_command(command, &block)
1320
1661
  end
1321
1662
 
1663
+ # Modifies a Pull Request in the remote SCM repository associated with a
1664
+ # GitRepositoryLink.
1665
+ # @param [String] name
1666
+ # Required. The GitRepositoryLink resource name in the format `projects/*/
1667
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1668
+ # @param [Google::Apis::DeveloperconnectV1::ModifyGitRepositoryLinkPullRequestRequest] modify_git_repository_link_pull_request_request_object
1669
+ # @param [String] fields
1670
+ # Selector specifying which fields to include in a partial response.
1671
+ # @param [String] quota_user
1672
+ # Available to use for quota purposes for server-side applications. Can be any
1673
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1674
+ # @param [Google::Apis::RequestOptions] options
1675
+ # Request-specific options
1676
+ #
1677
+ # @yield [result, err] Result & error if block supplied
1678
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::PullRequest] parsed result object
1679
+ # @yieldparam err [StandardError] error object if request failed
1680
+ #
1681
+ # @return [Google::Apis::DeveloperconnectV1::PullRequest]
1682
+ #
1683
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1684
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1685
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1686
+ 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)
1687
+ command = make_simple_command(:post, 'v1/{+name}:modifyPullRequest', options)
1688
+ command.request_representation = Google::Apis::DeveloperconnectV1::ModifyGitRepositoryLinkPullRequestRequest::Representation
1689
+ command.request_object = modify_git_repository_link_pull_request_request_object
1690
+ command.response_representation = Google::Apis::DeveloperconnectV1::PullRequest::Representation
1691
+ command.response_class = Google::Apis::DeveloperconnectV1::PullRequest
1692
+ command.params['name'] = name unless name.nil?
1693
+ command.query['fields'] = fields unless fields.nil?
1694
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1695
+ execute_or_queue_command(command, &block)
1696
+ end
1697
+
1698
+ # Opens a Pull Request in the remote SCM repository associated with a
1699
+ # GitRepositoryLink.
1700
+ # @param [String] name
1701
+ # Required. The GitRepositoryLink resource name in the format `projects/*/
1702
+ # locations/*/connections/*/gitRepositoryLinks/*`.
1703
+ # @param [Google::Apis::DeveloperconnectV1::OpenGitRepositoryLinkPullRequestRequest] open_git_repository_link_pull_request_request_object
1704
+ # @param [String] fields
1705
+ # Selector specifying which fields to include in a partial response.
1706
+ # @param [String] quota_user
1707
+ # Available to use for quota purposes for server-side applications. Can be any
1708
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1709
+ # @param [Google::Apis::RequestOptions] options
1710
+ # Request-specific options
1711
+ #
1712
+ # @yield [result, err] Result & error if block supplied
1713
+ # @yieldparam result [Google::Apis::DeveloperconnectV1::PullRequest] parsed result object
1714
+ # @yieldparam err [StandardError] error object if request failed
1715
+ #
1716
+ # @return [Google::Apis::DeveloperconnectV1::PullRequest]
1717
+ #
1718
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1719
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1720
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1721
+ 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)
1722
+ command = make_simple_command(:post, 'v1/{+name}:openPullRequest', options)
1723
+ command.request_representation = Google::Apis::DeveloperconnectV1::OpenGitRepositoryLinkPullRequestRequest::Representation
1724
+ command.request_object = open_git_repository_link_pull_request_request_object
1725
+ command.response_representation = Google::Apis::DeveloperconnectV1::PullRequest::Representation
1726
+ command.response_class = Google::Apis::DeveloperconnectV1::PullRequest
1727
+ command.params['name'] = name unless name.nil?
1728
+ command.query['fields'] = fields unless fields.nil?
1729
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1730
+ execute_or_queue_command(command, &block)
1731
+ end
1732
+
1322
1733
  # ProcessBitbucketCloudWebhook is called by the external Bitbucket Cloud
1323
1734
  # instances for notifying events.
1324
1735
  # @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.31.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.31.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: