google-cloud-developer_connect-v1 1.8.0 → 1.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/README.md +4 -6
- data/lib/google/cloud/developer_connect/v1/developer_connect/client.rb +1129 -89
- data/lib/google/cloud/developer_connect/v1/developer_connect/rest/client.rb +1053 -83
- data/lib/google/cloud/developer_connect/v1/developer_connect/rest/service_stub.rb +614 -0
- data/lib/google/cloud/developer_connect/v1/version.rb +1 -1
- data/lib/google/cloud/developerconnect/v1/developer_connect_pb.rb +27 -1
- data/lib/google/cloud/developerconnect/v1/developer_connect_services_pb.rb +22 -0
- data/proto_docs/google/cloud/developerconnect/v1/developer_connect.rb +521 -0
- metadata +1 -1
|
@@ -1320,37 +1320,750 @@ module Google
|
|
|
1320
1320
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1321
1321
|
end
|
|
1322
1322
|
|
|
1323
|
+
##
|
|
1324
|
+
# Opens a Pull Request in the remote SCM repository associated with a
|
|
1325
|
+
# GitRepositoryLink.
|
|
1326
|
+
#
|
|
1327
|
+
# @overload open_git_repository_link_pull_request(request, options = nil)
|
|
1328
|
+
# Pass arguments to `open_git_repository_link_pull_request` via a request object, either of type
|
|
1329
|
+
# {::Google::Cloud::DeveloperConnect::V1::OpenGitRepositoryLinkPullRequestRequest} or an equivalent Hash.
|
|
1330
|
+
#
|
|
1331
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::OpenGitRepositoryLinkPullRequestRequest, ::Hash]
|
|
1332
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1333
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1334
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1335
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1336
|
+
#
|
|
1337
|
+
# @overload open_git_repository_link_pull_request(name: nil, pull_request: nil)
|
|
1338
|
+
# Pass arguments to `open_git_repository_link_pull_request` via keyword arguments. Note that at
|
|
1339
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1340
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1341
|
+
#
|
|
1342
|
+
# @param name [::String]
|
|
1343
|
+
# Required. The GitRepositoryLink resource name in the format
|
|
1344
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1345
|
+
# @param pull_request [::Google::Cloud::DeveloperConnect::V1::PullRequest, ::Hash]
|
|
1346
|
+
# Required. The Pull Request details to open.
|
|
1347
|
+
# Input fields used: title, body, head_ref, base_ref.
|
|
1348
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1349
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
1350
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1351
|
+
#
|
|
1352
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
1353
|
+
#
|
|
1354
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1355
|
+
#
|
|
1356
|
+
# @example Basic example
|
|
1357
|
+
# require "google/cloud/developer_connect/v1"
|
|
1358
|
+
#
|
|
1359
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1360
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
1361
|
+
#
|
|
1362
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1363
|
+
# request = Google::Cloud::DeveloperConnect::V1::OpenGitRepositoryLinkPullRequestRequest.new
|
|
1364
|
+
#
|
|
1365
|
+
# # Call the open_git_repository_link_pull_request method.
|
|
1366
|
+
# result = client.open_git_repository_link_pull_request request
|
|
1367
|
+
#
|
|
1368
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::PullRequest.
|
|
1369
|
+
# p result
|
|
1370
|
+
#
|
|
1371
|
+
def open_git_repository_link_pull_request request, options = nil
|
|
1372
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1373
|
+
|
|
1374
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::OpenGitRepositoryLinkPullRequestRequest
|
|
1375
|
+
|
|
1376
|
+
# Converts hash and nil to an options object
|
|
1377
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1378
|
+
|
|
1379
|
+
# Customize the options with defaults
|
|
1380
|
+
call_metadata = @config.rpcs.open_git_repository_link_pull_request.metadata.to_h
|
|
1381
|
+
|
|
1382
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1383
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1384
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1385
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION,
|
|
1386
|
+
transports_version_send: [:rest]
|
|
1387
|
+
|
|
1388
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1389
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1390
|
+
|
|
1391
|
+
options.apply_defaults timeout: @config.rpcs.open_git_repository_link_pull_request.timeout,
|
|
1392
|
+
metadata: call_metadata,
|
|
1393
|
+
retry_policy: @config.rpcs.open_git_repository_link_pull_request.retry_policy
|
|
1394
|
+
|
|
1395
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1396
|
+
metadata: @config.metadata,
|
|
1397
|
+
retry_policy: @config.retry_policy
|
|
1398
|
+
|
|
1399
|
+
@developer_connect_stub.open_git_repository_link_pull_request request, options do |result, operation|
|
|
1400
|
+
yield result, operation if block_given?
|
|
1401
|
+
end
|
|
1402
|
+
rescue ::Gapic::Rest::Error => e
|
|
1403
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1404
|
+
end
|
|
1405
|
+
|
|
1323
1406
|
##
|
|
1324
1407
|
# FetchLinkableGitRepositories returns a list of git repositories from an SCM
|
|
1325
1408
|
# that are available to be added to a Connection.
|
|
1326
1409
|
#
|
|
1327
|
-
# @overload fetch_linkable_git_repositories(request, options = nil)
|
|
1328
|
-
# Pass arguments to `fetch_linkable_git_repositories` via a request object, either of type
|
|
1329
|
-
# {::Google::Cloud::DeveloperConnect::V1::FetchLinkableGitRepositoriesRequest} or an equivalent Hash.
|
|
1410
|
+
# @overload fetch_linkable_git_repositories(request, options = nil)
|
|
1411
|
+
# Pass arguments to `fetch_linkable_git_repositories` via a request object, either of type
|
|
1412
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchLinkableGitRepositoriesRequest} or an equivalent Hash.
|
|
1413
|
+
#
|
|
1414
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchLinkableGitRepositoriesRequest, ::Hash]
|
|
1415
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1416
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1417
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1418
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1419
|
+
#
|
|
1420
|
+
# @overload fetch_linkable_git_repositories(connection: nil, page_size: nil, page_token: nil)
|
|
1421
|
+
# Pass arguments to `fetch_linkable_git_repositories` via keyword arguments. Note that at
|
|
1422
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1423
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1424
|
+
#
|
|
1425
|
+
# @param connection [::String]
|
|
1426
|
+
# Required. The name of the Connection.
|
|
1427
|
+
# Format: `projects/*/locations/*/connections/*`.
|
|
1428
|
+
# @param page_size [::Integer]
|
|
1429
|
+
# Optional. Number of results to return in the list. Defaults to 20.
|
|
1430
|
+
# @param page_token [::String]
|
|
1431
|
+
# Optional. Page start.
|
|
1432
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1433
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DeveloperConnect::V1::LinkableGitRepository>]
|
|
1434
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1435
|
+
#
|
|
1436
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DeveloperConnect::V1::LinkableGitRepository>]
|
|
1437
|
+
#
|
|
1438
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1439
|
+
#
|
|
1440
|
+
# @example Basic example
|
|
1441
|
+
# require "google/cloud/developer_connect/v1"
|
|
1442
|
+
#
|
|
1443
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1444
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
1445
|
+
#
|
|
1446
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1447
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchLinkableGitRepositoriesRequest.new
|
|
1448
|
+
#
|
|
1449
|
+
# # Call the fetch_linkable_git_repositories method.
|
|
1450
|
+
# result = client.fetch_linkable_git_repositories request
|
|
1451
|
+
#
|
|
1452
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1453
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1454
|
+
# result.each do |item|
|
|
1455
|
+
# # Each element is of type ::Google::Cloud::DeveloperConnect::V1::LinkableGitRepository.
|
|
1456
|
+
# p item
|
|
1457
|
+
# end
|
|
1458
|
+
#
|
|
1459
|
+
def fetch_linkable_git_repositories request, options = nil
|
|
1460
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1461
|
+
|
|
1462
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchLinkableGitRepositoriesRequest
|
|
1463
|
+
|
|
1464
|
+
# Converts hash and nil to an options object
|
|
1465
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1466
|
+
|
|
1467
|
+
# Customize the options with defaults
|
|
1468
|
+
call_metadata = @config.rpcs.fetch_linkable_git_repositories.metadata.to_h
|
|
1469
|
+
|
|
1470
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1471
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1472
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1473
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION,
|
|
1474
|
+
transports_version_send: [:rest]
|
|
1475
|
+
|
|
1476
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1477
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1478
|
+
|
|
1479
|
+
options.apply_defaults timeout: @config.rpcs.fetch_linkable_git_repositories.timeout,
|
|
1480
|
+
metadata: call_metadata,
|
|
1481
|
+
retry_policy: @config.rpcs.fetch_linkable_git_repositories.retry_policy
|
|
1482
|
+
|
|
1483
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1484
|
+
metadata: @config.metadata,
|
|
1485
|
+
retry_policy: @config.retry_policy
|
|
1486
|
+
|
|
1487
|
+
@developer_connect_stub.fetch_linkable_git_repositories request, options do |result, operation|
|
|
1488
|
+
result = ::Gapic::Rest::PagedEnumerable.new @developer_connect_stub, :fetch_linkable_git_repositories, "linkable_git_repositories", request, result, options
|
|
1489
|
+
yield result, operation if block_given?
|
|
1490
|
+
throw :response, result
|
|
1491
|
+
end
|
|
1492
|
+
rescue ::Gapic::Rest::Error => e
|
|
1493
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1494
|
+
end
|
|
1495
|
+
|
|
1496
|
+
##
|
|
1497
|
+
# FetchGitHubInstallations returns the list of GitHub Installations that
|
|
1498
|
+
# are available to be added to a Connection.
|
|
1499
|
+
# For github.com, only installations accessible to the authorizer token
|
|
1500
|
+
# are returned. For GitHub Enterprise, all installations are returned.
|
|
1501
|
+
#
|
|
1502
|
+
# @overload fetch_git_hub_installations(request, options = nil)
|
|
1503
|
+
# Pass arguments to `fetch_git_hub_installations` via a request object, either of type
|
|
1504
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsRequest} or an equivalent Hash.
|
|
1505
|
+
#
|
|
1506
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsRequest, ::Hash]
|
|
1507
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1508
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1509
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1510
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1511
|
+
#
|
|
1512
|
+
# @overload fetch_git_hub_installations(connection: nil)
|
|
1513
|
+
# Pass arguments to `fetch_git_hub_installations` via keyword arguments. Note that at
|
|
1514
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1515
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1516
|
+
#
|
|
1517
|
+
# @param connection [::String]
|
|
1518
|
+
# Required. The resource name of the connection in the format
|
|
1519
|
+
# `projects/*/locations/*/connections/*`.
|
|
1520
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1521
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsResponse]
|
|
1522
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1523
|
+
#
|
|
1524
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsResponse]
|
|
1525
|
+
#
|
|
1526
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1527
|
+
#
|
|
1528
|
+
# @example Basic example
|
|
1529
|
+
# require "google/cloud/developer_connect/v1"
|
|
1530
|
+
#
|
|
1531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1532
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
1533
|
+
#
|
|
1534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1535
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsRequest.new
|
|
1536
|
+
#
|
|
1537
|
+
# # Call the fetch_git_hub_installations method.
|
|
1538
|
+
# result = client.fetch_git_hub_installations request
|
|
1539
|
+
#
|
|
1540
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsResponse.
|
|
1541
|
+
# p result
|
|
1542
|
+
#
|
|
1543
|
+
def fetch_git_hub_installations request, options = nil
|
|
1544
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1545
|
+
|
|
1546
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsRequest
|
|
1547
|
+
|
|
1548
|
+
# Converts hash and nil to an options object
|
|
1549
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1550
|
+
|
|
1551
|
+
# Customize the options with defaults
|
|
1552
|
+
call_metadata = @config.rpcs.fetch_git_hub_installations.metadata.to_h
|
|
1553
|
+
|
|
1554
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1555
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1556
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1557
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION,
|
|
1558
|
+
transports_version_send: [:rest]
|
|
1559
|
+
|
|
1560
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1561
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1562
|
+
|
|
1563
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_hub_installations.timeout,
|
|
1564
|
+
metadata: call_metadata,
|
|
1565
|
+
retry_policy: @config.rpcs.fetch_git_hub_installations.retry_policy
|
|
1566
|
+
|
|
1567
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1568
|
+
metadata: @config.metadata,
|
|
1569
|
+
retry_policy: @config.retry_policy
|
|
1570
|
+
|
|
1571
|
+
@developer_connect_stub.fetch_git_hub_installations request, options do |result, operation|
|
|
1572
|
+
yield result, operation if block_given?
|
|
1573
|
+
end
|
|
1574
|
+
rescue ::Gapic::Rest::Error => e
|
|
1575
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1576
|
+
end
|
|
1577
|
+
|
|
1578
|
+
##
|
|
1579
|
+
# Fetch the list of branches or tags for a given repository.
|
|
1580
|
+
#
|
|
1581
|
+
# @overload fetch_git_refs(request, options = nil)
|
|
1582
|
+
# Pass arguments to `fetch_git_refs` via a request object, either of type
|
|
1583
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitRefsRequest} or an equivalent Hash.
|
|
1584
|
+
#
|
|
1585
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitRefsRequest, ::Hash]
|
|
1586
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1587
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1588
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1589
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1590
|
+
#
|
|
1591
|
+
# @overload fetch_git_refs(git_repository_link: nil, ref_type: nil, page_size: nil, page_token: nil)
|
|
1592
|
+
# Pass arguments to `fetch_git_refs` via keyword arguments. Note that at
|
|
1593
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1594
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1595
|
+
#
|
|
1596
|
+
# @param git_repository_link [::String]
|
|
1597
|
+
# Required. The resource name of GitRepositoryLink in the format
|
|
1598
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1599
|
+
# @param ref_type [::Google::Cloud::DeveloperConnect::V1::FetchGitRefsRequest::RefType]
|
|
1600
|
+
# Required. Type of refs to fetch.
|
|
1601
|
+
# @param page_size [::Integer]
|
|
1602
|
+
# Optional. Number of results to return in the list. Default to 20.
|
|
1603
|
+
# @param page_token [::String]
|
|
1604
|
+
# Optional. Page start.
|
|
1605
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1606
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::FetchGitRefsResponse]
|
|
1607
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1608
|
+
#
|
|
1609
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitRefsResponse]
|
|
1610
|
+
#
|
|
1611
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1612
|
+
#
|
|
1613
|
+
# @example Basic example
|
|
1614
|
+
# require "google/cloud/developer_connect/v1"
|
|
1615
|
+
#
|
|
1616
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1617
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
1618
|
+
#
|
|
1619
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1620
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitRefsRequest.new
|
|
1621
|
+
#
|
|
1622
|
+
# # Call the fetch_git_refs method.
|
|
1623
|
+
# result = client.fetch_git_refs request
|
|
1624
|
+
#
|
|
1625
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::FetchGitRefsResponse.
|
|
1626
|
+
# p result
|
|
1627
|
+
#
|
|
1628
|
+
def fetch_git_refs request, options = nil
|
|
1629
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1630
|
+
|
|
1631
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitRefsRequest
|
|
1632
|
+
|
|
1633
|
+
# Converts hash and nil to an options object
|
|
1634
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1635
|
+
|
|
1636
|
+
# Customize the options with defaults
|
|
1637
|
+
call_metadata = @config.rpcs.fetch_git_refs.metadata.to_h
|
|
1638
|
+
|
|
1639
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1640
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1641
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1642
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION,
|
|
1643
|
+
transports_version_send: [:rest]
|
|
1644
|
+
|
|
1645
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1646
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1647
|
+
|
|
1648
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_refs.timeout,
|
|
1649
|
+
metadata: call_metadata,
|
|
1650
|
+
retry_policy: @config.rpcs.fetch_git_refs.retry_policy
|
|
1651
|
+
|
|
1652
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1653
|
+
metadata: @config.metadata,
|
|
1654
|
+
retry_policy: @config.retry_policy
|
|
1655
|
+
|
|
1656
|
+
@developer_connect_stub.fetch_git_refs request, options do |result, operation|
|
|
1657
|
+
yield result, operation if block_given?
|
|
1658
|
+
end
|
|
1659
|
+
rescue ::Gapic::Rest::Error => e
|
|
1660
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1661
|
+
end
|
|
1662
|
+
|
|
1663
|
+
##
|
|
1664
|
+
# Diff commits for a GitRepositoryLink.
|
|
1665
|
+
#
|
|
1666
|
+
# @overload diff_git_repository_link_commit(request, options = nil)
|
|
1667
|
+
# Pass arguments to `diff_git_repository_link_commit` via a request object, either of type
|
|
1668
|
+
# {::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitRequest} or an equivalent Hash.
|
|
1669
|
+
#
|
|
1670
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitRequest, ::Hash]
|
|
1671
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1672
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1673
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1674
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1675
|
+
#
|
|
1676
|
+
# @overload diff_git_repository_link_commit(name: nil, base_sha: nil, head_sha: nil, path_filters: nil)
|
|
1677
|
+
# Pass arguments to `diff_git_repository_link_commit` via keyword arguments. Note that at
|
|
1678
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1679
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1680
|
+
#
|
|
1681
|
+
# @param name [::String]
|
|
1682
|
+
# Required. The resource name of the GitRepositoryLink.
|
|
1683
|
+
# @param base_sha [::String]
|
|
1684
|
+
# Required. The base commit SHA or ref.
|
|
1685
|
+
# @param head_sha [::String]
|
|
1686
|
+
# Required. The head commit SHA or ref.
|
|
1687
|
+
# @param path_filters [::Array<::String>]
|
|
1688
|
+
# Optional. Path patterns or exact paths to filter returned files.
|
|
1689
|
+
# When `path_filters` is specified, `FileDiff.patch` is populated for all
|
|
1690
|
+
# matching files (use `["**"]` to include patches for all changed files).
|
|
1691
|
+
# When `path_filters` is omitted or empty, the full list of `FileDiff` is
|
|
1692
|
+
# returned without patch diffs (`FileDiff.patch` is empty).
|
|
1693
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1694
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitResponse]
|
|
1695
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1696
|
+
#
|
|
1697
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitResponse]
|
|
1698
|
+
#
|
|
1699
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1700
|
+
#
|
|
1701
|
+
# @example Basic example
|
|
1702
|
+
# require "google/cloud/developer_connect/v1"
|
|
1703
|
+
#
|
|
1704
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1705
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
1706
|
+
#
|
|
1707
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1708
|
+
# request = Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitRequest.new
|
|
1709
|
+
#
|
|
1710
|
+
# # Call the diff_git_repository_link_commit method.
|
|
1711
|
+
# result = client.diff_git_repository_link_commit request
|
|
1712
|
+
#
|
|
1713
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitResponse.
|
|
1714
|
+
# p result
|
|
1715
|
+
#
|
|
1716
|
+
def diff_git_repository_link_commit request, options = nil
|
|
1717
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1718
|
+
|
|
1719
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitRequest
|
|
1720
|
+
|
|
1721
|
+
# Converts hash and nil to an options object
|
|
1722
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1723
|
+
|
|
1724
|
+
# Customize the options with defaults
|
|
1725
|
+
call_metadata = @config.rpcs.diff_git_repository_link_commit.metadata.to_h
|
|
1726
|
+
|
|
1727
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1728
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1729
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1730
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION,
|
|
1731
|
+
transports_version_send: [:rest]
|
|
1732
|
+
|
|
1733
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1734
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1735
|
+
|
|
1736
|
+
options.apply_defaults timeout: @config.rpcs.diff_git_repository_link_commit.timeout,
|
|
1737
|
+
metadata: call_metadata,
|
|
1738
|
+
retry_policy: @config.rpcs.diff_git_repository_link_commit.retry_policy
|
|
1739
|
+
|
|
1740
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1741
|
+
metadata: @config.metadata,
|
|
1742
|
+
retry_policy: @config.retry_policy
|
|
1743
|
+
|
|
1744
|
+
@developer_connect_stub.diff_git_repository_link_commit request, options do |result, operation|
|
|
1745
|
+
yield result, operation if block_given?
|
|
1746
|
+
end
|
|
1747
|
+
rescue ::Gapic::Rest::Error => e
|
|
1748
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1749
|
+
end
|
|
1750
|
+
|
|
1751
|
+
##
|
|
1752
|
+
# Fetch Commit details from a Git repository link.
|
|
1753
|
+
#
|
|
1754
|
+
# @overload fetch_git_repository_link_commit(request, options = nil)
|
|
1755
|
+
# Pass arguments to `fetch_git_repository_link_commit` via a request object, either of type
|
|
1756
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitRequest} or an equivalent Hash.
|
|
1757
|
+
#
|
|
1758
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitRequest, ::Hash]
|
|
1759
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1760
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1761
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1763
|
+
#
|
|
1764
|
+
# @overload fetch_git_repository_link_commit(name: nil, commit_sha: nil, view: nil, path_filters: nil)
|
|
1765
|
+
# Pass arguments to `fetch_git_repository_link_commit` via keyword arguments. Note that at
|
|
1766
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1767
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1768
|
+
#
|
|
1769
|
+
# @param name [::String]
|
|
1770
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
1771
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1772
|
+
# @param commit_sha [::String]
|
|
1773
|
+
# Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or
|
|
1774
|
+
# Git reference).
|
|
1775
|
+
# @param view [::Google::Cloud::DeveloperConnect::V1::CommitView]
|
|
1776
|
+
# Optional. The level of commit details to return in the response.
|
|
1777
|
+
# Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths
|
|
1778
|
+
# and statuses) are returned; `path_filters` must also be specified to
|
|
1779
|
+
# populate line patch hunks.
|
|
1780
|
+
# @param path_filters [::Array<::String>]
|
|
1781
|
+
# Optional. Path patterns or exact paths to filter returned files (only
|
|
1782
|
+
# applicable in `FULL` view).
|
|
1783
|
+
# When `path_filters` is specified, `FileDiff.patch` is populated for all
|
|
1784
|
+
# matching files (use `["**"]` to include patches for all changed files).
|
|
1785
|
+
# When `path_filters` is omitted or empty, the full list of `FileDiff` is
|
|
1786
|
+
# returned without patch diffs (`FileDiff.patch` is empty).
|
|
1787
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1788
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitResponse]
|
|
1789
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1790
|
+
#
|
|
1791
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitResponse]
|
|
1792
|
+
#
|
|
1793
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1794
|
+
#
|
|
1795
|
+
# @example Basic example
|
|
1796
|
+
# require "google/cloud/developer_connect/v1"
|
|
1797
|
+
#
|
|
1798
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1799
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
1800
|
+
#
|
|
1801
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1802
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitRequest.new
|
|
1803
|
+
#
|
|
1804
|
+
# # Call the fetch_git_repository_link_commit method.
|
|
1805
|
+
# result = client.fetch_git_repository_link_commit request
|
|
1806
|
+
#
|
|
1807
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitResponse.
|
|
1808
|
+
# p result
|
|
1809
|
+
#
|
|
1810
|
+
def fetch_git_repository_link_commit request, options = nil
|
|
1811
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1812
|
+
|
|
1813
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitRequest
|
|
1814
|
+
|
|
1815
|
+
# Converts hash and nil to an options object
|
|
1816
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1817
|
+
|
|
1818
|
+
# Customize the options with defaults
|
|
1819
|
+
call_metadata = @config.rpcs.fetch_git_repository_link_commit.metadata.to_h
|
|
1820
|
+
|
|
1821
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1822
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1823
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1824
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION,
|
|
1825
|
+
transports_version_send: [:rest]
|
|
1826
|
+
|
|
1827
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1828
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1829
|
+
|
|
1830
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_repository_link_commit.timeout,
|
|
1831
|
+
metadata: call_metadata,
|
|
1832
|
+
retry_policy: @config.rpcs.fetch_git_repository_link_commit.retry_policy
|
|
1833
|
+
|
|
1834
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1835
|
+
metadata: @config.metadata,
|
|
1836
|
+
retry_policy: @config.retry_policy
|
|
1837
|
+
|
|
1838
|
+
@developer_connect_stub.fetch_git_repository_link_commit request, options do |result, operation|
|
|
1839
|
+
yield result, operation if block_given?
|
|
1840
|
+
end
|
|
1841
|
+
rescue ::Gapic::Rest::Error => e
|
|
1842
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1843
|
+
end
|
|
1844
|
+
|
|
1845
|
+
##
|
|
1846
|
+
# Fetch a list of Commits from a Git repository link.
|
|
1847
|
+
#
|
|
1848
|
+
# @overload fetch_git_repository_link_commit_list(request, options = nil)
|
|
1849
|
+
# Pass arguments to `fetch_git_repository_link_commit_list` via a request object, either of type
|
|
1850
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListRequest} or an equivalent Hash.
|
|
1851
|
+
#
|
|
1852
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListRequest, ::Hash]
|
|
1853
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1854
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1855
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1856
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1857
|
+
#
|
|
1858
|
+
# @overload fetch_git_repository_link_commit_list(name: nil, ref: nil, page_size: nil, page_token: nil, view: nil)
|
|
1859
|
+
# Pass arguments to `fetch_git_repository_link_commit_list` via keyword arguments. Note that at
|
|
1860
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1861
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1862
|
+
#
|
|
1863
|
+
# @param name [::String]
|
|
1864
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
1865
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1866
|
+
# @param ref [::String]
|
|
1867
|
+
# Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or
|
|
1868
|
+
# Git reference) from which to start listing commits.
|
|
1869
|
+
# @param page_size [::Integer]
|
|
1870
|
+
# Optional. Number of results to return in the list. Default is 50. Max is
|
|
1871
|
+
# 100.
|
|
1872
|
+
# @param page_token [::String]
|
|
1873
|
+
# Optional. A page token, received from a previous
|
|
1874
|
+
# `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
|
|
1875
|
+
# subsequent page.
|
|
1876
|
+
#
|
|
1877
|
+
# When paginating, all other parameters provided to
|
|
1878
|
+
# `FetchGitRepositoryLinkCommitList` must match the call that provided the
|
|
1879
|
+
# page token.
|
|
1880
|
+
# @param view [::Google::Cloud::DeveloperConnect::V1::CommitView]
|
|
1881
|
+
# Optional. The level of commit details to return in the response.
|
|
1882
|
+
# Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to
|
|
1883
|
+
# `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file
|
|
1884
|
+
# diffs for a single commit.
|
|
1885
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1886
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DeveloperConnect::V1::SCMCommit>]
|
|
1887
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1888
|
+
#
|
|
1889
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DeveloperConnect::V1::SCMCommit>]
|
|
1890
|
+
#
|
|
1891
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1892
|
+
#
|
|
1893
|
+
# @example Basic example
|
|
1894
|
+
# require "google/cloud/developer_connect/v1"
|
|
1895
|
+
#
|
|
1896
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1897
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
1898
|
+
#
|
|
1899
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1900
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListRequest.new
|
|
1901
|
+
#
|
|
1902
|
+
# # Call the fetch_git_repository_link_commit_list method.
|
|
1903
|
+
# result = client.fetch_git_repository_link_commit_list request
|
|
1904
|
+
#
|
|
1905
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1906
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1907
|
+
# result.each do |item|
|
|
1908
|
+
# # Each element is of type ::Google::Cloud::DeveloperConnect::V1::SCMCommit.
|
|
1909
|
+
# p item
|
|
1910
|
+
# end
|
|
1911
|
+
#
|
|
1912
|
+
def fetch_git_repository_link_commit_list request, options = nil
|
|
1913
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1914
|
+
|
|
1915
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListRequest
|
|
1916
|
+
|
|
1917
|
+
# Converts hash and nil to an options object
|
|
1918
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1919
|
+
|
|
1920
|
+
# Customize the options with defaults
|
|
1921
|
+
call_metadata = @config.rpcs.fetch_git_repository_link_commit_list.metadata.to_h
|
|
1922
|
+
|
|
1923
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1924
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1925
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1926
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION,
|
|
1927
|
+
transports_version_send: [:rest]
|
|
1928
|
+
|
|
1929
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1930
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1931
|
+
|
|
1932
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_repository_link_commit_list.timeout,
|
|
1933
|
+
metadata: call_metadata,
|
|
1934
|
+
retry_policy: @config.rpcs.fetch_git_repository_link_commit_list.retry_policy
|
|
1935
|
+
|
|
1936
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1937
|
+
metadata: @config.metadata,
|
|
1938
|
+
retry_policy: @config.retry_policy
|
|
1939
|
+
|
|
1940
|
+
@developer_connect_stub.fetch_git_repository_link_commit_list request, options do |result, operation|
|
|
1941
|
+
result = ::Gapic::Rest::PagedEnumerable.new @developer_connect_stub, :fetch_git_repository_link_commit_list, "commits", request, result, options
|
|
1942
|
+
yield result, operation if block_given?
|
|
1943
|
+
throw :response, result
|
|
1944
|
+
end
|
|
1945
|
+
rescue ::Gapic::Rest::Error => e
|
|
1946
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1947
|
+
end
|
|
1948
|
+
|
|
1949
|
+
##
|
|
1950
|
+
# Fetches blame information for a file or line range in a file.
|
|
1951
|
+
#
|
|
1952
|
+
# @overload fetch_git_repository_link_file_blame(request, options = nil)
|
|
1953
|
+
# Pass arguments to `fetch_git_repository_link_file_blame` via a request object, either of type
|
|
1954
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameRequest} or an equivalent Hash.
|
|
1955
|
+
#
|
|
1956
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameRequest, ::Hash]
|
|
1957
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1958
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1959
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1960
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1961
|
+
#
|
|
1962
|
+
# @overload fetch_git_repository_link_file_blame(name: nil, ref: nil, path: nil, first_line: nil, last_line: nil)
|
|
1963
|
+
# Pass arguments to `fetch_git_repository_link_file_blame` via keyword arguments. Note that at
|
|
1964
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1965
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1966
|
+
#
|
|
1967
|
+
# @param name [::String]
|
|
1968
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
1969
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1970
|
+
# @param ref [::String]
|
|
1971
|
+
# Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag)
|
|
1972
|
+
# from which to fetch the blame.
|
|
1973
|
+
# @param path [::String]
|
|
1974
|
+
# Required. The file path within the repository.
|
|
1975
|
+
# @param first_line [::Integer]
|
|
1976
|
+
# Optional. The 1-indexed starting line number of the range to blame
|
|
1977
|
+
# (inclusive). If not specified, blame begins at line 1.
|
|
1978
|
+
# @param last_line [::Integer]
|
|
1979
|
+
# Optional. The 1-indexed ending line number of the range to blame
|
|
1980
|
+
# (inclusive). If not specified, blame extends to the end of the file.
|
|
1981
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1982
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameResponse]
|
|
1983
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1984
|
+
#
|
|
1985
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameResponse]
|
|
1986
|
+
#
|
|
1987
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1988
|
+
#
|
|
1989
|
+
# @example Basic example
|
|
1990
|
+
# require "google/cloud/developer_connect/v1"
|
|
1991
|
+
#
|
|
1992
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1993
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
1994
|
+
#
|
|
1995
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1996
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameRequest.new
|
|
1997
|
+
#
|
|
1998
|
+
# # Call the fetch_git_repository_link_file_blame method.
|
|
1999
|
+
# result = client.fetch_git_repository_link_file_blame request
|
|
2000
|
+
#
|
|
2001
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameResponse.
|
|
2002
|
+
# p result
|
|
2003
|
+
#
|
|
2004
|
+
def fetch_git_repository_link_file_blame request, options = nil
|
|
2005
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2006
|
+
|
|
2007
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameRequest
|
|
2008
|
+
|
|
2009
|
+
# Converts hash and nil to an options object
|
|
2010
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2011
|
+
|
|
2012
|
+
# Customize the options with defaults
|
|
2013
|
+
call_metadata = @config.rpcs.fetch_git_repository_link_file_blame.metadata.to_h
|
|
2014
|
+
|
|
2015
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2016
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2017
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2018
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION,
|
|
2019
|
+
transports_version_send: [:rest]
|
|
2020
|
+
|
|
2021
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2022
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2023
|
+
|
|
2024
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_repository_link_file_blame.timeout,
|
|
2025
|
+
metadata: call_metadata,
|
|
2026
|
+
retry_policy: @config.rpcs.fetch_git_repository_link_file_blame.retry_policy
|
|
2027
|
+
|
|
2028
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2029
|
+
metadata: @config.metadata,
|
|
2030
|
+
retry_policy: @config.retry_policy
|
|
2031
|
+
|
|
2032
|
+
@developer_connect_stub.fetch_git_repository_link_file_blame request, options do |result, operation|
|
|
2033
|
+
yield result, operation if block_given?
|
|
2034
|
+
end
|
|
2035
|
+
rescue ::Gapic::Rest::Error => e
|
|
2036
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2037
|
+
end
|
|
2038
|
+
|
|
2039
|
+
##
|
|
2040
|
+
# Fetch Pull Request details from a Git repository link.
|
|
2041
|
+
#
|
|
2042
|
+
# @overload fetch_git_repository_link_pull_request(request, options = nil)
|
|
2043
|
+
# Pass arguments to `fetch_git_repository_link_pull_request` via a request object, either of type
|
|
2044
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestRequest} or an equivalent Hash.
|
|
1330
2045
|
#
|
|
1331
|
-
# @param request [::Google::Cloud::DeveloperConnect::V1::
|
|
2046
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestRequest, ::Hash]
|
|
1332
2047
|
# A request object representing the call parameters. Required. To specify no
|
|
1333
2048
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1334
2049
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1335
2050
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1336
2051
|
#
|
|
1337
|
-
# @overload
|
|
1338
|
-
# Pass arguments to `
|
|
2052
|
+
# @overload fetch_git_repository_link_pull_request(name: nil, pull_request_id: nil)
|
|
2053
|
+
# Pass arguments to `fetch_git_repository_link_pull_request` via keyword arguments. Note that at
|
|
1339
2054
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1340
2055
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1341
2056
|
#
|
|
1342
|
-
# @param
|
|
1343
|
-
# Required. The name of the
|
|
1344
|
-
#
|
|
1345
|
-
# @param
|
|
1346
|
-
#
|
|
1347
|
-
# @param page_token [::String]
|
|
1348
|
-
# Optional. Page start.
|
|
2057
|
+
# @param name [::String]
|
|
2058
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
2059
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
2060
|
+
# @param pull_request_id [::String]
|
|
2061
|
+
# Required. The ID of the Pull Request.
|
|
1349
2062
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1350
|
-
# @yieldparam result [::
|
|
2063
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
1351
2064
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1352
2065
|
#
|
|
1353
|
-
# @return [::
|
|
2066
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
1354
2067
|
#
|
|
1355
2068
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1356
2069
|
#
|
|
@@ -1361,28 +2074,24 @@ module Google
|
|
|
1361
2074
|
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
1362
2075
|
#
|
|
1363
2076
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1364
|
-
# request = Google::Cloud::DeveloperConnect::V1::
|
|
2077
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestRequest.new
|
|
1365
2078
|
#
|
|
1366
|
-
# # Call the
|
|
1367
|
-
# result = client.
|
|
2079
|
+
# # Call the fetch_git_repository_link_pull_request method.
|
|
2080
|
+
# result = client.fetch_git_repository_link_pull_request request
|
|
1368
2081
|
#
|
|
1369
|
-
# # The returned object is of type
|
|
1370
|
-
#
|
|
1371
|
-
# result.each do |item|
|
|
1372
|
-
# # Each element is of type ::Google::Cloud::DeveloperConnect::V1::LinkableGitRepository.
|
|
1373
|
-
# p item
|
|
1374
|
-
# end
|
|
2082
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::PullRequest.
|
|
2083
|
+
# p result
|
|
1375
2084
|
#
|
|
1376
|
-
def
|
|
2085
|
+
def fetch_git_repository_link_pull_request request, options = nil
|
|
1377
2086
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1378
2087
|
|
|
1379
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::
|
|
2088
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestRequest
|
|
1380
2089
|
|
|
1381
2090
|
# Converts hash and nil to an options object
|
|
1382
2091
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1383
2092
|
|
|
1384
2093
|
# Customize the options with defaults
|
|
1385
|
-
call_metadata = @config.rpcs.
|
|
2094
|
+
call_metadata = @config.rpcs.fetch_git_repository_link_pull_request.metadata.to_h
|
|
1386
2095
|
|
|
1387
2096
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1388
2097
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1393,52 +2102,51 @@ module Google
|
|
|
1393
2102
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1394
2103
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1395
2104
|
|
|
1396
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2105
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_repository_link_pull_request.timeout,
|
|
1397
2106
|
metadata: call_metadata,
|
|
1398
|
-
retry_policy: @config.rpcs.
|
|
2107
|
+
retry_policy: @config.rpcs.fetch_git_repository_link_pull_request.retry_policy
|
|
1399
2108
|
|
|
1400
2109
|
options.apply_defaults timeout: @config.timeout,
|
|
1401
2110
|
metadata: @config.metadata,
|
|
1402
2111
|
retry_policy: @config.retry_policy
|
|
1403
2112
|
|
|
1404
|
-
@developer_connect_stub.
|
|
1405
|
-
result = ::Gapic::Rest::PagedEnumerable.new @developer_connect_stub, :fetch_linkable_git_repositories, "linkable_git_repositories", request, result, options
|
|
2113
|
+
@developer_connect_stub.fetch_git_repository_link_pull_request request, options do |result, operation|
|
|
1406
2114
|
yield result, operation if block_given?
|
|
1407
|
-
throw :response, result
|
|
1408
2115
|
end
|
|
1409
2116
|
rescue ::Gapic::Rest::Error => e
|
|
1410
2117
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1411
2118
|
end
|
|
1412
2119
|
|
|
1413
2120
|
##
|
|
1414
|
-
#
|
|
1415
|
-
# are available to be added to a Connection.
|
|
1416
|
-
# For github.com, only installations accessible to the authorizer token
|
|
1417
|
-
# are returned. For GitHub Enterprise, all installations are returned.
|
|
2121
|
+
# Add a comment to a Pull Request.
|
|
1418
2122
|
#
|
|
1419
|
-
# @overload
|
|
1420
|
-
# Pass arguments to `
|
|
1421
|
-
# {::Google::Cloud::DeveloperConnect::V1::
|
|
2123
|
+
# @overload add_git_repository_link_pull_request_comment(request, options = nil)
|
|
2124
|
+
# Pass arguments to `add_git_repository_link_pull_request_comment` via a request object, either of type
|
|
2125
|
+
# {::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestCommentRequest} or an equivalent Hash.
|
|
1422
2126
|
#
|
|
1423
|
-
# @param request [::Google::Cloud::DeveloperConnect::V1::
|
|
2127
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestCommentRequest, ::Hash]
|
|
1424
2128
|
# A request object representing the call parameters. Required. To specify no
|
|
1425
2129
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1426
2130
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1427
2131
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1428
2132
|
#
|
|
1429
|
-
# @overload
|
|
1430
|
-
# Pass arguments to `
|
|
2133
|
+
# @overload add_git_repository_link_pull_request_comment(name: nil, pull_request_id: nil, comment: nil)
|
|
2134
|
+
# Pass arguments to `add_git_repository_link_pull_request_comment` via keyword arguments. Note that at
|
|
1431
2135
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1432
2136
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1433
2137
|
#
|
|
1434
|
-
# @param
|
|
1435
|
-
# Required. The resource name of the
|
|
1436
|
-
# `projects/*/locations/*/connections/*`.
|
|
2138
|
+
# @param name [::String]
|
|
2139
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
2140
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
2141
|
+
# @param pull_request_id [::String]
|
|
2142
|
+
# Required. The ID of the Pull Request.
|
|
2143
|
+
# @param comment [::Google::Cloud::DeveloperConnect::V1::PullRequestComment, ::Hash]
|
|
2144
|
+
# Required. The comment to add.
|
|
1437
2145
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1438
|
-
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::
|
|
2146
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::PullRequestComment]
|
|
1439
2147
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1440
2148
|
#
|
|
1441
|
-
# @return [::Google::Cloud::DeveloperConnect::V1::
|
|
2149
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequestComment]
|
|
1442
2150
|
#
|
|
1443
2151
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1444
2152
|
#
|
|
@@ -1449,24 +2157,24 @@ module Google
|
|
|
1449
2157
|
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
1450
2158
|
#
|
|
1451
2159
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1452
|
-
# request = Google::Cloud::DeveloperConnect::V1::
|
|
2160
|
+
# request = Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestCommentRequest.new
|
|
1453
2161
|
#
|
|
1454
|
-
# # Call the
|
|
1455
|
-
# result = client.
|
|
2162
|
+
# # Call the add_git_repository_link_pull_request_comment method.
|
|
2163
|
+
# result = client.add_git_repository_link_pull_request_comment request
|
|
1456
2164
|
#
|
|
1457
|
-
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::
|
|
2165
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::PullRequestComment.
|
|
1458
2166
|
# p result
|
|
1459
2167
|
#
|
|
1460
|
-
def
|
|
2168
|
+
def add_git_repository_link_pull_request_comment request, options = nil
|
|
1461
2169
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1462
2170
|
|
|
1463
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::
|
|
2171
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestCommentRequest
|
|
1464
2172
|
|
|
1465
2173
|
# Converts hash and nil to an options object
|
|
1466
2174
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1467
2175
|
|
|
1468
2176
|
# Customize the options with defaults
|
|
1469
|
-
call_metadata = @config.rpcs.
|
|
2177
|
+
call_metadata = @config.rpcs.add_git_repository_link_pull_request_comment.metadata.to_h
|
|
1470
2178
|
|
|
1471
2179
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1472
2180
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1477,15 +2185,15 @@ module Google
|
|
|
1477
2185
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1478
2186
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1479
2187
|
|
|
1480
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2188
|
+
options.apply_defaults timeout: @config.rpcs.add_git_repository_link_pull_request_comment.timeout,
|
|
1481
2189
|
metadata: call_metadata,
|
|
1482
|
-
retry_policy: @config.rpcs.
|
|
2190
|
+
retry_policy: @config.rpcs.add_git_repository_link_pull_request_comment.retry_policy
|
|
1483
2191
|
|
|
1484
2192
|
options.apply_defaults timeout: @config.timeout,
|
|
1485
2193
|
metadata: @config.metadata,
|
|
1486
2194
|
retry_policy: @config.retry_policy
|
|
1487
2195
|
|
|
1488
|
-
@developer_connect_stub.
|
|
2196
|
+
@developer_connect_stub.add_git_repository_link_pull_request_comment request, options do |result, operation|
|
|
1489
2197
|
yield result, operation if block_given?
|
|
1490
2198
|
end
|
|
1491
2199
|
rescue ::Gapic::Rest::Error => e
|
|
@@ -1493,37 +2201,223 @@ module Google
|
|
|
1493
2201
|
end
|
|
1494
2202
|
|
|
1495
2203
|
##
|
|
1496
|
-
#
|
|
2204
|
+
# Add a review comment (inline on diff) to a Pull Request.
|
|
1497
2205
|
#
|
|
1498
|
-
# @overload
|
|
1499
|
-
# Pass arguments to `
|
|
1500
|
-
# {::Google::Cloud::DeveloperConnect::V1::
|
|
2206
|
+
# @overload add_git_repository_link_pull_request_review_comment(request, options = nil)
|
|
2207
|
+
# Pass arguments to `add_git_repository_link_pull_request_review_comment` via a request object, either of type
|
|
2208
|
+
# {::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestReviewCommentRequest} or an equivalent Hash.
|
|
1501
2209
|
#
|
|
1502
|
-
# @param request [::Google::Cloud::DeveloperConnect::V1::
|
|
2210
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestReviewCommentRequest, ::Hash]
|
|
1503
2211
|
# A request object representing the call parameters. Required. To specify no
|
|
1504
2212
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1505
2213
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1506
2214
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1507
2215
|
#
|
|
1508
|
-
# @overload
|
|
1509
|
-
# Pass arguments to `
|
|
2216
|
+
# @overload add_git_repository_link_pull_request_review_comment(name: nil, pull_request_id: nil, comment: nil, commit_id: nil)
|
|
2217
|
+
# Pass arguments to `add_git_repository_link_pull_request_review_comment` via keyword arguments. Note that at
|
|
1510
2218
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1511
2219
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1512
2220
|
#
|
|
1513
|
-
# @param
|
|
1514
|
-
# Required. The resource name of GitRepositoryLink in the format
|
|
2221
|
+
# @param name [::String]
|
|
2222
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
1515
2223
|
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1516
|
-
# @param
|
|
1517
|
-
# Required.
|
|
2224
|
+
# @param pull_request_id [::String]
|
|
2225
|
+
# Required. The ID of the Pull Request.
|
|
2226
|
+
# @param comment [::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment, ::Hash]
|
|
2227
|
+
# Required. The review comment to add.
|
|
2228
|
+
# @param commit_id [::String]
|
|
2229
|
+
# Optional. The commit SHA to comment on. If not specified, defaults to the
|
|
2230
|
+
# HEAD commit of the Pull Request.
|
|
2231
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2232
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment]
|
|
2233
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2234
|
+
#
|
|
2235
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment]
|
|
2236
|
+
#
|
|
2237
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
2238
|
+
#
|
|
2239
|
+
# @example Basic example
|
|
2240
|
+
# require "google/cloud/developer_connect/v1"
|
|
2241
|
+
#
|
|
2242
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2243
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
2244
|
+
#
|
|
2245
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2246
|
+
# request = Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestReviewCommentRequest.new
|
|
2247
|
+
#
|
|
2248
|
+
# # Call the add_git_repository_link_pull_request_review_comment method.
|
|
2249
|
+
# result = client.add_git_repository_link_pull_request_review_comment request
|
|
2250
|
+
#
|
|
2251
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment.
|
|
2252
|
+
# p result
|
|
2253
|
+
#
|
|
2254
|
+
def add_git_repository_link_pull_request_review_comment request, options = nil
|
|
2255
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2256
|
+
|
|
2257
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestReviewCommentRequest
|
|
2258
|
+
|
|
2259
|
+
# Converts hash and nil to an options object
|
|
2260
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2261
|
+
|
|
2262
|
+
# Customize the options with defaults
|
|
2263
|
+
call_metadata = @config.rpcs.add_git_repository_link_pull_request_review_comment.metadata.to_h
|
|
2264
|
+
|
|
2265
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2266
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2267
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2268
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION,
|
|
2269
|
+
transports_version_send: [:rest]
|
|
2270
|
+
|
|
2271
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2272
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2273
|
+
|
|
2274
|
+
options.apply_defaults timeout: @config.rpcs.add_git_repository_link_pull_request_review_comment.timeout,
|
|
2275
|
+
metadata: call_metadata,
|
|
2276
|
+
retry_policy: @config.rpcs.add_git_repository_link_pull_request_review_comment.retry_policy
|
|
2277
|
+
|
|
2278
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2279
|
+
metadata: @config.metadata,
|
|
2280
|
+
retry_policy: @config.retry_policy
|
|
2281
|
+
|
|
2282
|
+
@developer_connect_stub.add_git_repository_link_pull_request_review_comment request, options do |result, operation|
|
|
2283
|
+
yield result, operation if block_given?
|
|
2284
|
+
end
|
|
2285
|
+
rescue ::Gapic::Rest::Error => e
|
|
2286
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2287
|
+
end
|
|
2288
|
+
|
|
2289
|
+
##
|
|
2290
|
+
# Modifies a Pull Request in the remote SCM repository associated with a
|
|
2291
|
+
# GitRepositoryLink.
|
|
2292
|
+
#
|
|
2293
|
+
# @overload modify_git_repository_link_pull_request(request, options = nil)
|
|
2294
|
+
# Pass arguments to `modify_git_repository_link_pull_request` via a request object, either of type
|
|
2295
|
+
# {::Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest} or an equivalent Hash.
|
|
2296
|
+
#
|
|
2297
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest, ::Hash]
|
|
2298
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2299
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2300
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2301
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2302
|
+
#
|
|
2303
|
+
# @overload modify_git_repository_link_pull_request(name: nil, pull_request_id: nil, title: nil, body: nil, base_ref: nil, state: nil)
|
|
2304
|
+
# Pass arguments to `modify_git_repository_link_pull_request` via keyword arguments. Note that at
|
|
2305
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2306
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2307
|
+
#
|
|
2308
|
+
# @param name [::String]
|
|
2309
|
+
# Required. The GitRepositoryLink resource name in the format
|
|
2310
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
2311
|
+
# @param pull_request_id [::String]
|
|
2312
|
+
# Required. The SCM-specific Pull Request identifier (e.g., "45").
|
|
2313
|
+
# @param title [::String]
|
|
2314
|
+
# Optional. The title of the Pull Request.
|
|
2315
|
+
# @param body [::String]
|
|
2316
|
+
# Optional. The body description of the Pull Request.
|
|
2317
|
+
# @param base_ref [::String]
|
|
2318
|
+
# Optional. The target branch to merge into.
|
|
2319
|
+
# @param state [::Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest::State]
|
|
2320
|
+
# Optional. The state of the Pull Request.
|
|
2321
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2322
|
+
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
2323
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2324
|
+
#
|
|
2325
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
2326
|
+
#
|
|
2327
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
2328
|
+
#
|
|
2329
|
+
# @example Basic example
|
|
2330
|
+
# require "google/cloud/developer_connect/v1"
|
|
2331
|
+
#
|
|
2332
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2333
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
2334
|
+
#
|
|
2335
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2336
|
+
# request = Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest.new
|
|
2337
|
+
#
|
|
2338
|
+
# # Call the modify_git_repository_link_pull_request method.
|
|
2339
|
+
# result = client.modify_git_repository_link_pull_request request
|
|
2340
|
+
#
|
|
2341
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::PullRequest.
|
|
2342
|
+
# p result
|
|
2343
|
+
#
|
|
2344
|
+
def modify_git_repository_link_pull_request request, options = nil
|
|
2345
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2346
|
+
|
|
2347
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest
|
|
2348
|
+
|
|
2349
|
+
# Converts hash and nil to an options object
|
|
2350
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2351
|
+
|
|
2352
|
+
# Customize the options with defaults
|
|
2353
|
+
call_metadata = @config.rpcs.modify_git_repository_link_pull_request.metadata.to_h
|
|
2354
|
+
|
|
2355
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2356
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2357
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2358
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION,
|
|
2359
|
+
transports_version_send: [:rest]
|
|
2360
|
+
|
|
2361
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2362
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2363
|
+
|
|
2364
|
+
options.apply_defaults timeout: @config.rpcs.modify_git_repository_link_pull_request.timeout,
|
|
2365
|
+
metadata: call_metadata,
|
|
2366
|
+
retry_policy: @config.rpcs.modify_git_repository_link_pull_request.retry_policy
|
|
2367
|
+
|
|
2368
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2369
|
+
metadata: @config.metadata,
|
|
2370
|
+
retry_policy: @config.retry_policy
|
|
2371
|
+
|
|
2372
|
+
@developer_connect_stub.modify_git_repository_link_pull_request request, options do |result, operation|
|
|
2373
|
+
yield result, operation if block_given?
|
|
2374
|
+
end
|
|
2375
|
+
rescue ::Gapic::Rest::Error => e
|
|
2376
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2377
|
+
end
|
|
2378
|
+
|
|
2379
|
+
##
|
|
2380
|
+
# Fetches a list of Pull Requests from the remote repository.
|
|
2381
|
+
#
|
|
2382
|
+
# @overload fetch_git_repository_link_pull_request_list(request, options = nil)
|
|
2383
|
+
# Pass arguments to `fetch_git_repository_link_pull_request_list` via a request object, either of type
|
|
2384
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListRequest} or an equivalent Hash.
|
|
2385
|
+
#
|
|
2386
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListRequest, ::Hash]
|
|
2387
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2388
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2389
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2390
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2391
|
+
#
|
|
2392
|
+
# @overload fetch_git_repository_link_pull_request_list(name: nil, filter: nil, page_size: nil, page_token: nil)
|
|
2393
|
+
# Pass arguments to `fetch_git_repository_link_pull_request_list` via keyword arguments. Note that at
|
|
2394
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2395
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2396
|
+
#
|
|
2397
|
+
# @param name [::String]
|
|
2398
|
+
# Required. The GitRepositoryLink resource name in the format
|
|
2399
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
2400
|
+
# @param filter [::String]
|
|
2401
|
+
# Optional. A filter expression that filters the pull requests returned in
|
|
2402
|
+
# the response. Only a single equality comparison on `state` is supported,
|
|
2403
|
+
# for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and
|
|
2404
|
+
# `MERGED`. `DECLINED` is only supported for SCM providers that support
|
|
2405
|
+
# declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub
|
|
2406
|
+
# Enterprise, GitLab, and GitLab Enterprise. Other values or expressions
|
|
2407
|
+
# return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.
|
|
1518
2408
|
# @param page_size [::Integer]
|
|
1519
|
-
# Optional. Number of results to return in the list. Default
|
|
2409
|
+
# Optional. Number of results to return in the list. Default is 20. Max is
|
|
2410
|
+
# 100. A page may contain fewer than `page_size` results even when more
|
|
2411
|
+
# results are available; use `next_page_token` to check for more pages.
|
|
1520
2412
|
# @param page_token [::String]
|
|
1521
|
-
# Optional.
|
|
2413
|
+
# Optional. A page token, received from a previous
|
|
2414
|
+
# `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
|
|
2415
|
+
# subsequent page.
|
|
1522
2416
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1523
|
-
# @yieldparam result [::Google::Cloud::DeveloperConnect::V1::
|
|
2417
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DeveloperConnect::V1::PullRequest>]
|
|
1524
2418
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1525
2419
|
#
|
|
1526
|
-
# @return [::Google::Cloud::DeveloperConnect::V1::
|
|
2420
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DeveloperConnect::V1::PullRequest>]
|
|
1527
2421
|
#
|
|
1528
2422
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1529
2423
|
#
|
|
@@ -1534,24 +2428,28 @@ module Google
|
|
|
1534
2428
|
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Rest::Client.new
|
|
1535
2429
|
#
|
|
1536
2430
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1537
|
-
# request = Google::Cloud::DeveloperConnect::V1::
|
|
2431
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListRequest.new
|
|
1538
2432
|
#
|
|
1539
|
-
# # Call the
|
|
1540
|
-
# result = client.
|
|
2433
|
+
# # Call the fetch_git_repository_link_pull_request_list method.
|
|
2434
|
+
# result = client.fetch_git_repository_link_pull_request_list request
|
|
1541
2435
|
#
|
|
1542
|
-
# # The returned object is of type
|
|
1543
|
-
#
|
|
2436
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
2437
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
2438
|
+
# result.each do |item|
|
|
2439
|
+
# # Each element is of type ::Google::Cloud::DeveloperConnect::V1::PullRequest.
|
|
2440
|
+
# p item
|
|
2441
|
+
# end
|
|
1544
2442
|
#
|
|
1545
|
-
def
|
|
2443
|
+
def fetch_git_repository_link_pull_request_list request, options = nil
|
|
1546
2444
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1547
2445
|
|
|
1548
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::
|
|
2446
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListRequest
|
|
1549
2447
|
|
|
1550
2448
|
# Converts hash and nil to an options object
|
|
1551
2449
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1552
2450
|
|
|
1553
2451
|
# Customize the options with defaults
|
|
1554
|
-
call_metadata = @config.rpcs.
|
|
2452
|
+
call_metadata = @config.rpcs.fetch_git_repository_link_pull_request_list.metadata.to_h
|
|
1555
2453
|
|
|
1556
2454
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1557
2455
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1562,16 +2460,18 @@ module Google
|
|
|
1562
2460
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1563
2461
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1564
2462
|
|
|
1565
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2463
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_repository_link_pull_request_list.timeout,
|
|
1566
2464
|
metadata: call_metadata,
|
|
1567
|
-
retry_policy: @config.rpcs.
|
|
2465
|
+
retry_policy: @config.rpcs.fetch_git_repository_link_pull_request_list.retry_policy
|
|
1568
2466
|
|
|
1569
2467
|
options.apply_defaults timeout: @config.timeout,
|
|
1570
2468
|
metadata: @config.metadata,
|
|
1571
2469
|
retry_policy: @config.retry_policy
|
|
1572
2470
|
|
|
1573
|
-
@developer_connect_stub.
|
|
2471
|
+
@developer_connect_stub.fetch_git_repository_link_pull_request_list request, options do |result, operation|
|
|
2472
|
+
result = ::Gapic::Rest::PagedEnumerable.new @developer_connect_stub, :fetch_git_repository_link_pull_request_list, "pull_requests", request, result, options
|
|
1574
2473
|
yield result, operation if block_given?
|
|
2474
|
+
throw :response, result
|
|
1575
2475
|
end
|
|
1576
2476
|
rescue ::Gapic::Rest::Error => e
|
|
1577
2477
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2901,6 +3801,11 @@ module Google
|
|
|
2901
3801
|
#
|
|
2902
3802
|
attr_reader :fetch_read_token
|
|
2903
3803
|
##
|
|
3804
|
+
# RPC-specific configuration for `open_git_repository_link_pull_request`
|
|
3805
|
+
# @return [::Gapic::Config::Method]
|
|
3806
|
+
#
|
|
3807
|
+
attr_reader :open_git_repository_link_pull_request
|
|
3808
|
+
##
|
|
2904
3809
|
# RPC-specific configuration for `fetch_linkable_git_repositories`
|
|
2905
3810
|
# @return [::Gapic::Config::Method]
|
|
2906
3811
|
#
|
|
@@ -2916,6 +3821,51 @@ module Google
|
|
|
2916
3821
|
#
|
|
2917
3822
|
attr_reader :fetch_git_refs
|
|
2918
3823
|
##
|
|
3824
|
+
# RPC-specific configuration for `diff_git_repository_link_commit`
|
|
3825
|
+
# @return [::Gapic::Config::Method]
|
|
3826
|
+
#
|
|
3827
|
+
attr_reader :diff_git_repository_link_commit
|
|
3828
|
+
##
|
|
3829
|
+
# RPC-specific configuration for `fetch_git_repository_link_commit`
|
|
3830
|
+
# @return [::Gapic::Config::Method]
|
|
3831
|
+
#
|
|
3832
|
+
attr_reader :fetch_git_repository_link_commit
|
|
3833
|
+
##
|
|
3834
|
+
# RPC-specific configuration for `fetch_git_repository_link_commit_list`
|
|
3835
|
+
# @return [::Gapic::Config::Method]
|
|
3836
|
+
#
|
|
3837
|
+
attr_reader :fetch_git_repository_link_commit_list
|
|
3838
|
+
##
|
|
3839
|
+
# RPC-specific configuration for `fetch_git_repository_link_file_blame`
|
|
3840
|
+
# @return [::Gapic::Config::Method]
|
|
3841
|
+
#
|
|
3842
|
+
attr_reader :fetch_git_repository_link_file_blame
|
|
3843
|
+
##
|
|
3844
|
+
# RPC-specific configuration for `fetch_git_repository_link_pull_request`
|
|
3845
|
+
# @return [::Gapic::Config::Method]
|
|
3846
|
+
#
|
|
3847
|
+
attr_reader :fetch_git_repository_link_pull_request
|
|
3848
|
+
##
|
|
3849
|
+
# RPC-specific configuration for `add_git_repository_link_pull_request_comment`
|
|
3850
|
+
# @return [::Gapic::Config::Method]
|
|
3851
|
+
#
|
|
3852
|
+
attr_reader :add_git_repository_link_pull_request_comment
|
|
3853
|
+
##
|
|
3854
|
+
# RPC-specific configuration for `add_git_repository_link_pull_request_review_comment`
|
|
3855
|
+
# @return [::Gapic::Config::Method]
|
|
3856
|
+
#
|
|
3857
|
+
attr_reader :add_git_repository_link_pull_request_review_comment
|
|
3858
|
+
##
|
|
3859
|
+
# RPC-specific configuration for `modify_git_repository_link_pull_request`
|
|
3860
|
+
# @return [::Gapic::Config::Method]
|
|
3861
|
+
#
|
|
3862
|
+
attr_reader :modify_git_repository_link_pull_request
|
|
3863
|
+
##
|
|
3864
|
+
# RPC-specific configuration for `fetch_git_repository_link_pull_request_list`
|
|
3865
|
+
# @return [::Gapic::Config::Method]
|
|
3866
|
+
#
|
|
3867
|
+
attr_reader :fetch_git_repository_link_pull_request_list
|
|
3868
|
+
##
|
|
2919
3869
|
# RPC-specific configuration for `list_account_connectors`
|
|
2920
3870
|
# @return [::Gapic::Config::Method]
|
|
2921
3871
|
#
|
|
@@ -3000,12 +3950,32 @@ module Google
|
|
|
3000
3950
|
@fetch_read_write_token = ::Gapic::Config::Method.new fetch_read_write_token_config
|
|
3001
3951
|
fetch_read_token_config = parent_rpcs.fetch_read_token if parent_rpcs.respond_to? :fetch_read_token
|
|
3002
3952
|
@fetch_read_token = ::Gapic::Config::Method.new fetch_read_token_config
|
|
3953
|
+
open_git_repository_link_pull_request_config = parent_rpcs.open_git_repository_link_pull_request if parent_rpcs.respond_to? :open_git_repository_link_pull_request
|
|
3954
|
+
@open_git_repository_link_pull_request = ::Gapic::Config::Method.new open_git_repository_link_pull_request_config
|
|
3003
3955
|
fetch_linkable_git_repositories_config = parent_rpcs.fetch_linkable_git_repositories if parent_rpcs.respond_to? :fetch_linkable_git_repositories
|
|
3004
3956
|
@fetch_linkable_git_repositories = ::Gapic::Config::Method.new fetch_linkable_git_repositories_config
|
|
3005
3957
|
fetch_git_hub_installations_config = parent_rpcs.fetch_git_hub_installations if parent_rpcs.respond_to? :fetch_git_hub_installations
|
|
3006
3958
|
@fetch_git_hub_installations = ::Gapic::Config::Method.new fetch_git_hub_installations_config
|
|
3007
3959
|
fetch_git_refs_config = parent_rpcs.fetch_git_refs if parent_rpcs.respond_to? :fetch_git_refs
|
|
3008
3960
|
@fetch_git_refs = ::Gapic::Config::Method.new fetch_git_refs_config
|
|
3961
|
+
diff_git_repository_link_commit_config = parent_rpcs.diff_git_repository_link_commit if parent_rpcs.respond_to? :diff_git_repository_link_commit
|
|
3962
|
+
@diff_git_repository_link_commit = ::Gapic::Config::Method.new diff_git_repository_link_commit_config
|
|
3963
|
+
fetch_git_repository_link_commit_config = parent_rpcs.fetch_git_repository_link_commit if parent_rpcs.respond_to? :fetch_git_repository_link_commit
|
|
3964
|
+
@fetch_git_repository_link_commit = ::Gapic::Config::Method.new fetch_git_repository_link_commit_config
|
|
3965
|
+
fetch_git_repository_link_commit_list_config = parent_rpcs.fetch_git_repository_link_commit_list if parent_rpcs.respond_to? :fetch_git_repository_link_commit_list
|
|
3966
|
+
@fetch_git_repository_link_commit_list = ::Gapic::Config::Method.new fetch_git_repository_link_commit_list_config
|
|
3967
|
+
fetch_git_repository_link_file_blame_config = parent_rpcs.fetch_git_repository_link_file_blame if parent_rpcs.respond_to? :fetch_git_repository_link_file_blame
|
|
3968
|
+
@fetch_git_repository_link_file_blame = ::Gapic::Config::Method.new fetch_git_repository_link_file_blame_config
|
|
3969
|
+
fetch_git_repository_link_pull_request_config = parent_rpcs.fetch_git_repository_link_pull_request if parent_rpcs.respond_to? :fetch_git_repository_link_pull_request
|
|
3970
|
+
@fetch_git_repository_link_pull_request = ::Gapic::Config::Method.new fetch_git_repository_link_pull_request_config
|
|
3971
|
+
add_git_repository_link_pull_request_comment_config = parent_rpcs.add_git_repository_link_pull_request_comment if parent_rpcs.respond_to? :add_git_repository_link_pull_request_comment
|
|
3972
|
+
@add_git_repository_link_pull_request_comment = ::Gapic::Config::Method.new add_git_repository_link_pull_request_comment_config
|
|
3973
|
+
add_git_repository_link_pull_request_review_comment_config = parent_rpcs.add_git_repository_link_pull_request_review_comment if parent_rpcs.respond_to? :add_git_repository_link_pull_request_review_comment
|
|
3974
|
+
@add_git_repository_link_pull_request_review_comment = ::Gapic::Config::Method.new add_git_repository_link_pull_request_review_comment_config
|
|
3975
|
+
modify_git_repository_link_pull_request_config = parent_rpcs.modify_git_repository_link_pull_request if parent_rpcs.respond_to? :modify_git_repository_link_pull_request
|
|
3976
|
+
@modify_git_repository_link_pull_request = ::Gapic::Config::Method.new modify_git_repository_link_pull_request_config
|
|
3977
|
+
fetch_git_repository_link_pull_request_list_config = parent_rpcs.fetch_git_repository_link_pull_request_list if parent_rpcs.respond_to? :fetch_git_repository_link_pull_request_list
|
|
3978
|
+
@fetch_git_repository_link_pull_request_list = ::Gapic::Config::Method.new fetch_git_repository_link_pull_request_list_config
|
|
3009
3979
|
list_account_connectors_config = parent_rpcs.list_account_connectors if parent_rpcs.respond_to? :list_account_connectors
|
|
3010
3980
|
@list_account_connectors = ::Gapic::Config::Method.new list_account_connectors_config
|
|
3011
3981
|
get_account_connector_config = parent_rpcs.get_account_connector if parent_rpcs.respond_to? :get_account_connector
|