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
|
@@ -1403,38 +1403,897 @@ module Google
|
|
|
1403
1403
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1404
1404
|
end
|
|
1405
1405
|
|
|
1406
|
+
##
|
|
1407
|
+
# Opens a Pull Request in the remote SCM repository associated with a
|
|
1408
|
+
# GitRepositoryLink.
|
|
1409
|
+
#
|
|
1410
|
+
# @overload open_git_repository_link_pull_request(request, options = nil)
|
|
1411
|
+
# Pass arguments to `open_git_repository_link_pull_request` via a request object, either of type
|
|
1412
|
+
# {::Google::Cloud::DeveloperConnect::V1::OpenGitRepositoryLinkPullRequestRequest} or an equivalent Hash.
|
|
1413
|
+
#
|
|
1414
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::OpenGitRepositoryLinkPullRequestRequest, ::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 open_git_repository_link_pull_request(name: nil, pull_request: nil)
|
|
1421
|
+
# Pass arguments to `open_git_repository_link_pull_request` 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 name [::String]
|
|
1426
|
+
# Required. The GitRepositoryLink resource name in the format
|
|
1427
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1428
|
+
# @param pull_request [::Google::Cloud::DeveloperConnect::V1::PullRequest, ::Hash]
|
|
1429
|
+
# Required. The Pull Request details to open.
|
|
1430
|
+
# Input fields used: title, body, head_ref, base_ref.
|
|
1431
|
+
#
|
|
1432
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1433
|
+
# @yieldparam response [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
1434
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1435
|
+
#
|
|
1436
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
1437
|
+
#
|
|
1438
|
+
# @raise [::Google::Cloud::Error] if the RPC 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::Client.new
|
|
1445
|
+
#
|
|
1446
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1447
|
+
# request = Google::Cloud::DeveloperConnect::V1::OpenGitRepositoryLinkPullRequestRequest.new
|
|
1448
|
+
#
|
|
1449
|
+
# # Call the open_git_repository_link_pull_request method.
|
|
1450
|
+
# result = client.open_git_repository_link_pull_request request
|
|
1451
|
+
#
|
|
1452
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::PullRequest.
|
|
1453
|
+
# p result
|
|
1454
|
+
#
|
|
1455
|
+
def open_git_repository_link_pull_request request, options = nil
|
|
1456
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1457
|
+
|
|
1458
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::OpenGitRepositoryLinkPullRequestRequest
|
|
1459
|
+
|
|
1460
|
+
# Converts hash and nil to an options object
|
|
1461
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1462
|
+
|
|
1463
|
+
# Customize the options with defaults
|
|
1464
|
+
metadata = @config.rpcs.open_git_repository_link_pull_request.metadata.to_h
|
|
1465
|
+
|
|
1466
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1467
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1468
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1469
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION
|
|
1470
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1471
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1472
|
+
|
|
1473
|
+
header_params = {}
|
|
1474
|
+
if request.name
|
|
1475
|
+
header_params["name"] = request.name
|
|
1476
|
+
end
|
|
1477
|
+
|
|
1478
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1479
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1480
|
+
|
|
1481
|
+
options.apply_defaults timeout: @config.rpcs.open_git_repository_link_pull_request.timeout,
|
|
1482
|
+
metadata: metadata,
|
|
1483
|
+
retry_policy: @config.rpcs.open_git_repository_link_pull_request.retry_policy
|
|
1484
|
+
|
|
1485
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1486
|
+
metadata: @config.metadata,
|
|
1487
|
+
retry_policy: @config.retry_policy
|
|
1488
|
+
|
|
1489
|
+
@developer_connect_stub.call_rpc :open_git_repository_link_pull_request, request, options: options do |response, operation|
|
|
1490
|
+
yield response, operation if block_given?
|
|
1491
|
+
end
|
|
1492
|
+
rescue ::GRPC::BadStatus => e
|
|
1493
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1494
|
+
end
|
|
1495
|
+
|
|
1406
1496
|
##
|
|
1407
1497
|
# FetchLinkableGitRepositories returns a list of git repositories from an SCM
|
|
1408
1498
|
# that are available to be added to a Connection.
|
|
1409
1499
|
#
|
|
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.
|
|
1500
|
+
# @overload fetch_linkable_git_repositories(request, options = nil)
|
|
1501
|
+
# Pass arguments to `fetch_linkable_git_repositories` via a request object, either of type
|
|
1502
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchLinkableGitRepositoriesRequest} or an equivalent Hash.
|
|
1503
|
+
#
|
|
1504
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchLinkableGitRepositoriesRequest, ::Hash]
|
|
1505
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1506
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1507
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1508
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1509
|
+
#
|
|
1510
|
+
# @overload fetch_linkable_git_repositories(connection: nil, page_size: nil, page_token: nil)
|
|
1511
|
+
# Pass arguments to `fetch_linkable_git_repositories` via keyword arguments. Note that at
|
|
1512
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1513
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1514
|
+
#
|
|
1515
|
+
# @param connection [::String]
|
|
1516
|
+
# Required. The name of the Connection.
|
|
1517
|
+
# Format: `projects/*/locations/*/connections/*`.
|
|
1518
|
+
# @param page_size [::Integer]
|
|
1519
|
+
# Optional. Number of results to return in the list. Defaults to 20.
|
|
1520
|
+
# @param page_token [::String]
|
|
1521
|
+
# Optional. Page start.
|
|
1522
|
+
#
|
|
1523
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1524
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DeveloperConnect::V1::LinkableGitRepository>]
|
|
1525
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1526
|
+
#
|
|
1527
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::DeveloperConnect::V1::LinkableGitRepository>]
|
|
1528
|
+
#
|
|
1529
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1530
|
+
#
|
|
1531
|
+
# @example Basic example
|
|
1532
|
+
# require "google/cloud/developer_connect/v1"
|
|
1533
|
+
#
|
|
1534
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1535
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new
|
|
1536
|
+
#
|
|
1537
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1538
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchLinkableGitRepositoriesRequest.new
|
|
1539
|
+
#
|
|
1540
|
+
# # Call the fetch_linkable_git_repositories method.
|
|
1541
|
+
# result = client.fetch_linkable_git_repositories request
|
|
1542
|
+
#
|
|
1543
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1544
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1545
|
+
# result.each do |item|
|
|
1546
|
+
# # Each element is of type ::Google::Cloud::DeveloperConnect::V1::LinkableGitRepository.
|
|
1547
|
+
# p item
|
|
1548
|
+
# end
|
|
1549
|
+
#
|
|
1550
|
+
def fetch_linkable_git_repositories request, options = nil
|
|
1551
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1552
|
+
|
|
1553
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchLinkableGitRepositoriesRequest
|
|
1554
|
+
|
|
1555
|
+
# Converts hash and nil to an options object
|
|
1556
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1557
|
+
|
|
1558
|
+
# Customize the options with defaults
|
|
1559
|
+
metadata = @config.rpcs.fetch_linkable_git_repositories.metadata.to_h
|
|
1560
|
+
|
|
1561
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1562
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1563
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1564
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION
|
|
1565
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1566
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1567
|
+
|
|
1568
|
+
header_params = {}
|
|
1569
|
+
if request.connection
|
|
1570
|
+
header_params["connection"] = request.connection
|
|
1571
|
+
end
|
|
1572
|
+
|
|
1573
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1574
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1575
|
+
|
|
1576
|
+
options.apply_defaults timeout: @config.rpcs.fetch_linkable_git_repositories.timeout,
|
|
1577
|
+
metadata: metadata,
|
|
1578
|
+
retry_policy: @config.rpcs.fetch_linkable_git_repositories.retry_policy
|
|
1579
|
+
|
|
1580
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1581
|
+
metadata: @config.metadata,
|
|
1582
|
+
retry_policy: @config.retry_policy
|
|
1583
|
+
|
|
1584
|
+
@developer_connect_stub.call_rpc :fetch_linkable_git_repositories, request, options: options do |response, operation|
|
|
1585
|
+
response = ::Gapic::PagedEnumerable.new @developer_connect_stub, :fetch_linkable_git_repositories, request, response, operation, options
|
|
1586
|
+
yield response, operation if block_given?
|
|
1587
|
+
throw :response, response
|
|
1588
|
+
end
|
|
1589
|
+
rescue ::GRPC::BadStatus => e
|
|
1590
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1591
|
+
end
|
|
1592
|
+
|
|
1593
|
+
##
|
|
1594
|
+
# FetchGitHubInstallations returns the list of GitHub Installations that
|
|
1595
|
+
# are available to be added to a Connection.
|
|
1596
|
+
# For github.com, only installations accessible to the authorizer token
|
|
1597
|
+
# are returned. For GitHub Enterprise, all installations are returned.
|
|
1598
|
+
#
|
|
1599
|
+
# @overload fetch_git_hub_installations(request, options = nil)
|
|
1600
|
+
# Pass arguments to `fetch_git_hub_installations` via a request object, either of type
|
|
1601
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsRequest} or an equivalent Hash.
|
|
1602
|
+
#
|
|
1603
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsRequest, ::Hash]
|
|
1604
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1605
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1606
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1607
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1608
|
+
#
|
|
1609
|
+
# @overload fetch_git_hub_installations(connection: nil)
|
|
1610
|
+
# Pass arguments to `fetch_git_hub_installations` via keyword arguments. Note that at
|
|
1611
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1612
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1613
|
+
#
|
|
1614
|
+
# @param connection [::String]
|
|
1615
|
+
# Required. The resource name of the connection in the format
|
|
1616
|
+
# `projects/*/locations/*/connections/*`.
|
|
1617
|
+
#
|
|
1618
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1619
|
+
# @yieldparam response [::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsResponse]
|
|
1620
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1621
|
+
#
|
|
1622
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsResponse]
|
|
1623
|
+
#
|
|
1624
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1625
|
+
#
|
|
1626
|
+
# @example Basic example
|
|
1627
|
+
# require "google/cloud/developer_connect/v1"
|
|
1628
|
+
#
|
|
1629
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1630
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new
|
|
1631
|
+
#
|
|
1632
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1633
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsRequest.new
|
|
1634
|
+
#
|
|
1635
|
+
# # Call the fetch_git_hub_installations method.
|
|
1636
|
+
# result = client.fetch_git_hub_installations request
|
|
1637
|
+
#
|
|
1638
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsResponse.
|
|
1639
|
+
# p result
|
|
1640
|
+
#
|
|
1641
|
+
def fetch_git_hub_installations request, options = nil
|
|
1642
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1643
|
+
|
|
1644
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitHubInstallationsRequest
|
|
1645
|
+
|
|
1646
|
+
# Converts hash and nil to an options object
|
|
1647
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1648
|
+
|
|
1649
|
+
# Customize the options with defaults
|
|
1650
|
+
metadata = @config.rpcs.fetch_git_hub_installations.metadata.to_h
|
|
1651
|
+
|
|
1652
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1653
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1654
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1655
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION
|
|
1656
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1657
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1658
|
+
|
|
1659
|
+
header_params = {}
|
|
1660
|
+
if request.connection
|
|
1661
|
+
header_params["connection"] = request.connection
|
|
1662
|
+
end
|
|
1663
|
+
|
|
1664
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1665
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1666
|
+
|
|
1667
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_hub_installations.timeout,
|
|
1668
|
+
metadata: metadata,
|
|
1669
|
+
retry_policy: @config.rpcs.fetch_git_hub_installations.retry_policy
|
|
1670
|
+
|
|
1671
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1672
|
+
metadata: @config.metadata,
|
|
1673
|
+
retry_policy: @config.retry_policy
|
|
1674
|
+
|
|
1675
|
+
@developer_connect_stub.call_rpc :fetch_git_hub_installations, request, options: options do |response, operation|
|
|
1676
|
+
yield response, operation if block_given?
|
|
1677
|
+
end
|
|
1678
|
+
rescue ::GRPC::BadStatus => e
|
|
1679
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1680
|
+
end
|
|
1681
|
+
|
|
1682
|
+
##
|
|
1683
|
+
# Fetch the list of branches or tags for a given repository.
|
|
1684
|
+
#
|
|
1685
|
+
# @overload fetch_git_refs(request, options = nil)
|
|
1686
|
+
# Pass arguments to `fetch_git_refs` via a request object, either of type
|
|
1687
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitRefsRequest} or an equivalent Hash.
|
|
1688
|
+
#
|
|
1689
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitRefsRequest, ::Hash]
|
|
1690
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1691
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1692
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1693
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1694
|
+
#
|
|
1695
|
+
# @overload fetch_git_refs(git_repository_link: nil, ref_type: nil, page_size: nil, page_token: nil)
|
|
1696
|
+
# Pass arguments to `fetch_git_refs` via keyword arguments. Note that at
|
|
1697
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1698
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1699
|
+
#
|
|
1700
|
+
# @param git_repository_link [::String]
|
|
1701
|
+
# Required. The resource name of GitRepositoryLink in the format
|
|
1702
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1703
|
+
# @param ref_type [::Google::Cloud::DeveloperConnect::V1::FetchGitRefsRequest::RefType]
|
|
1704
|
+
# Required. Type of refs to fetch.
|
|
1705
|
+
# @param page_size [::Integer]
|
|
1706
|
+
# Optional. Number of results to return in the list. Default to 20.
|
|
1707
|
+
# @param page_token [::String]
|
|
1708
|
+
# Optional. Page start.
|
|
1709
|
+
#
|
|
1710
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1711
|
+
# @yieldparam response [::Google::Cloud::DeveloperConnect::V1::FetchGitRefsResponse]
|
|
1712
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1713
|
+
#
|
|
1714
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitRefsResponse]
|
|
1715
|
+
#
|
|
1716
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1717
|
+
#
|
|
1718
|
+
# @example Basic example
|
|
1719
|
+
# require "google/cloud/developer_connect/v1"
|
|
1720
|
+
#
|
|
1721
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1722
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new
|
|
1723
|
+
#
|
|
1724
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1725
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitRefsRequest.new
|
|
1726
|
+
#
|
|
1727
|
+
# # Call the fetch_git_refs method.
|
|
1728
|
+
# result = client.fetch_git_refs request
|
|
1729
|
+
#
|
|
1730
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::FetchGitRefsResponse.
|
|
1731
|
+
# p result
|
|
1732
|
+
#
|
|
1733
|
+
def fetch_git_refs request, options = nil
|
|
1734
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1735
|
+
|
|
1736
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitRefsRequest
|
|
1737
|
+
|
|
1738
|
+
# Converts hash and nil to an options object
|
|
1739
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1740
|
+
|
|
1741
|
+
# Customize the options with defaults
|
|
1742
|
+
metadata = @config.rpcs.fetch_git_refs.metadata.to_h
|
|
1743
|
+
|
|
1744
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1745
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1746
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1747
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION
|
|
1748
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1749
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1750
|
+
|
|
1751
|
+
header_params = {}
|
|
1752
|
+
if request.git_repository_link
|
|
1753
|
+
header_params["git_repository_link"] = request.git_repository_link
|
|
1754
|
+
end
|
|
1755
|
+
|
|
1756
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1757
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1758
|
+
|
|
1759
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_refs.timeout,
|
|
1760
|
+
metadata: metadata,
|
|
1761
|
+
retry_policy: @config.rpcs.fetch_git_refs.retry_policy
|
|
1762
|
+
|
|
1763
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1764
|
+
metadata: @config.metadata,
|
|
1765
|
+
retry_policy: @config.retry_policy
|
|
1766
|
+
|
|
1767
|
+
@developer_connect_stub.call_rpc :fetch_git_refs, request, options: options do |response, operation|
|
|
1768
|
+
yield response, operation if block_given?
|
|
1769
|
+
end
|
|
1770
|
+
rescue ::GRPC::BadStatus => e
|
|
1771
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1772
|
+
end
|
|
1773
|
+
|
|
1774
|
+
##
|
|
1775
|
+
# Diff commits for a GitRepositoryLink.
|
|
1776
|
+
#
|
|
1777
|
+
# @overload diff_git_repository_link_commit(request, options = nil)
|
|
1778
|
+
# Pass arguments to `diff_git_repository_link_commit` via a request object, either of type
|
|
1779
|
+
# {::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitRequest} or an equivalent Hash.
|
|
1780
|
+
#
|
|
1781
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitRequest, ::Hash]
|
|
1782
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1783
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1784
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1785
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1786
|
+
#
|
|
1787
|
+
# @overload diff_git_repository_link_commit(name: nil, base_sha: nil, head_sha: nil, path_filters: nil)
|
|
1788
|
+
# Pass arguments to `diff_git_repository_link_commit` via keyword arguments. Note that at
|
|
1789
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1790
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1791
|
+
#
|
|
1792
|
+
# @param name [::String]
|
|
1793
|
+
# Required. The resource name of the GitRepositoryLink.
|
|
1794
|
+
# @param base_sha [::String]
|
|
1795
|
+
# Required. The base commit SHA or ref.
|
|
1796
|
+
# @param head_sha [::String]
|
|
1797
|
+
# Required. The head commit SHA or ref.
|
|
1798
|
+
# @param path_filters [::Array<::String>]
|
|
1799
|
+
# Optional. Path patterns or exact paths to filter returned files.
|
|
1800
|
+
# When `path_filters` is specified, `FileDiff.patch` is populated for all
|
|
1801
|
+
# matching files (use `["**"]` to include patches for all changed files).
|
|
1802
|
+
# When `path_filters` is omitted or empty, the full list of `FileDiff` is
|
|
1803
|
+
# returned without patch diffs (`FileDiff.patch` is empty).
|
|
1804
|
+
#
|
|
1805
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1806
|
+
# @yieldparam response [::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitResponse]
|
|
1807
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1808
|
+
#
|
|
1809
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitResponse]
|
|
1810
|
+
#
|
|
1811
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1812
|
+
#
|
|
1813
|
+
# @example Basic example
|
|
1814
|
+
# require "google/cloud/developer_connect/v1"
|
|
1815
|
+
#
|
|
1816
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1817
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new
|
|
1818
|
+
#
|
|
1819
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1820
|
+
# request = Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitRequest.new
|
|
1821
|
+
#
|
|
1822
|
+
# # Call the diff_git_repository_link_commit method.
|
|
1823
|
+
# result = client.diff_git_repository_link_commit request
|
|
1824
|
+
#
|
|
1825
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitResponse.
|
|
1826
|
+
# p result
|
|
1827
|
+
#
|
|
1828
|
+
def diff_git_repository_link_commit request, options = nil
|
|
1829
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1830
|
+
|
|
1831
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::DiffGitRepositoryLinkCommitRequest
|
|
1832
|
+
|
|
1833
|
+
# Converts hash and nil to an options object
|
|
1834
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1835
|
+
|
|
1836
|
+
# Customize the options with defaults
|
|
1837
|
+
metadata = @config.rpcs.diff_git_repository_link_commit.metadata.to_h
|
|
1838
|
+
|
|
1839
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1840
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1841
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1842
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION
|
|
1843
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1844
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1845
|
+
|
|
1846
|
+
header_params = {}
|
|
1847
|
+
if request.name
|
|
1848
|
+
header_params["name"] = request.name
|
|
1849
|
+
end
|
|
1850
|
+
|
|
1851
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1852
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1853
|
+
|
|
1854
|
+
options.apply_defaults timeout: @config.rpcs.diff_git_repository_link_commit.timeout,
|
|
1855
|
+
metadata: metadata,
|
|
1856
|
+
retry_policy: @config.rpcs.diff_git_repository_link_commit.retry_policy
|
|
1857
|
+
|
|
1858
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1859
|
+
metadata: @config.metadata,
|
|
1860
|
+
retry_policy: @config.retry_policy
|
|
1861
|
+
|
|
1862
|
+
@developer_connect_stub.call_rpc :diff_git_repository_link_commit, request, options: options do |response, operation|
|
|
1863
|
+
yield response, operation if block_given?
|
|
1864
|
+
end
|
|
1865
|
+
rescue ::GRPC::BadStatus => e
|
|
1866
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1867
|
+
end
|
|
1868
|
+
|
|
1869
|
+
##
|
|
1870
|
+
# Fetch Commit details from a Git repository link.
|
|
1871
|
+
#
|
|
1872
|
+
# @overload fetch_git_repository_link_commit(request, options = nil)
|
|
1873
|
+
# Pass arguments to `fetch_git_repository_link_commit` via a request object, either of type
|
|
1874
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitRequest} or an equivalent Hash.
|
|
1875
|
+
#
|
|
1876
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitRequest, ::Hash]
|
|
1877
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1878
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1879
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1880
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1881
|
+
#
|
|
1882
|
+
# @overload fetch_git_repository_link_commit(name: nil, commit_sha: nil, view: nil, path_filters: nil)
|
|
1883
|
+
# Pass arguments to `fetch_git_repository_link_commit` via keyword arguments. Note that at
|
|
1884
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1885
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1886
|
+
#
|
|
1887
|
+
# @param name [::String]
|
|
1888
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
1889
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1890
|
+
# @param commit_sha [::String]
|
|
1891
|
+
# Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or
|
|
1892
|
+
# Git reference).
|
|
1893
|
+
# @param view [::Google::Cloud::DeveloperConnect::V1::CommitView]
|
|
1894
|
+
# Optional. The level of commit details to return in the response.
|
|
1895
|
+
# Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths
|
|
1896
|
+
# and statuses) are returned; `path_filters` must also be specified to
|
|
1897
|
+
# populate line patch hunks.
|
|
1898
|
+
# @param path_filters [::Array<::String>]
|
|
1899
|
+
# Optional. Path patterns or exact paths to filter returned files (only
|
|
1900
|
+
# applicable in `FULL` view).
|
|
1901
|
+
# When `path_filters` is specified, `FileDiff.patch` is populated for all
|
|
1902
|
+
# matching files (use `["**"]` to include patches for all changed files).
|
|
1903
|
+
# When `path_filters` is omitted or empty, the full list of `FileDiff` is
|
|
1904
|
+
# returned without patch diffs (`FileDiff.patch` is empty).
|
|
1905
|
+
#
|
|
1906
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1907
|
+
# @yieldparam response [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitResponse]
|
|
1908
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1909
|
+
#
|
|
1910
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitResponse]
|
|
1911
|
+
#
|
|
1912
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1913
|
+
#
|
|
1914
|
+
# @example Basic example
|
|
1915
|
+
# require "google/cloud/developer_connect/v1"
|
|
1916
|
+
#
|
|
1917
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1918
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new
|
|
1919
|
+
#
|
|
1920
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1921
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitRequest.new
|
|
1922
|
+
#
|
|
1923
|
+
# # Call the fetch_git_repository_link_commit method.
|
|
1924
|
+
# result = client.fetch_git_repository_link_commit request
|
|
1925
|
+
#
|
|
1926
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitResponse.
|
|
1927
|
+
# p result
|
|
1928
|
+
#
|
|
1929
|
+
def fetch_git_repository_link_commit request, options = nil
|
|
1930
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1931
|
+
|
|
1932
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitRequest
|
|
1933
|
+
|
|
1934
|
+
# Converts hash and nil to an options object
|
|
1935
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1936
|
+
|
|
1937
|
+
# Customize the options with defaults
|
|
1938
|
+
metadata = @config.rpcs.fetch_git_repository_link_commit.metadata.to_h
|
|
1939
|
+
|
|
1940
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1941
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1942
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1943
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION
|
|
1944
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1945
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1946
|
+
|
|
1947
|
+
header_params = {}
|
|
1948
|
+
if request.name
|
|
1949
|
+
header_params["name"] = request.name
|
|
1950
|
+
end
|
|
1951
|
+
|
|
1952
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1953
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1954
|
+
|
|
1955
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_repository_link_commit.timeout,
|
|
1956
|
+
metadata: metadata,
|
|
1957
|
+
retry_policy: @config.rpcs.fetch_git_repository_link_commit.retry_policy
|
|
1958
|
+
|
|
1959
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1960
|
+
metadata: @config.metadata,
|
|
1961
|
+
retry_policy: @config.retry_policy
|
|
1962
|
+
|
|
1963
|
+
@developer_connect_stub.call_rpc :fetch_git_repository_link_commit, request, options: options do |response, operation|
|
|
1964
|
+
yield response, operation if block_given?
|
|
1965
|
+
end
|
|
1966
|
+
rescue ::GRPC::BadStatus => e
|
|
1967
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1968
|
+
end
|
|
1969
|
+
|
|
1970
|
+
##
|
|
1971
|
+
# Fetch a list of Commits from a Git repository link.
|
|
1972
|
+
#
|
|
1973
|
+
# @overload fetch_git_repository_link_commit_list(request, options = nil)
|
|
1974
|
+
# Pass arguments to `fetch_git_repository_link_commit_list` via a request object, either of type
|
|
1975
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListRequest} or an equivalent Hash.
|
|
1976
|
+
#
|
|
1977
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListRequest, ::Hash]
|
|
1978
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1979
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1980
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1981
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1982
|
+
#
|
|
1983
|
+
# @overload fetch_git_repository_link_commit_list(name: nil, ref: nil, page_size: nil, page_token: nil, view: nil)
|
|
1984
|
+
# Pass arguments to `fetch_git_repository_link_commit_list` via keyword arguments. Note that at
|
|
1985
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1986
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1987
|
+
#
|
|
1988
|
+
# @param name [::String]
|
|
1989
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
1990
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1991
|
+
# @param ref [::String]
|
|
1992
|
+
# Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or
|
|
1993
|
+
# Git reference) from which to start listing commits.
|
|
1994
|
+
# @param page_size [::Integer]
|
|
1995
|
+
# Optional. Number of results to return in the list. Default is 50. Max is
|
|
1996
|
+
# 100.
|
|
1997
|
+
# @param page_token [::String]
|
|
1998
|
+
# Optional. A page token, received from a previous
|
|
1999
|
+
# `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
|
|
2000
|
+
# subsequent page.
|
|
2001
|
+
#
|
|
2002
|
+
# When paginating, all other parameters provided to
|
|
2003
|
+
# `FetchGitRepositoryLinkCommitList` must match the call that provided the
|
|
2004
|
+
# page token.
|
|
2005
|
+
# @param view [::Google::Cloud::DeveloperConnect::V1::CommitView]
|
|
2006
|
+
# Optional. The level of commit details to return in the response.
|
|
2007
|
+
# Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to
|
|
2008
|
+
# `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file
|
|
2009
|
+
# diffs for a single commit.
|
|
2010
|
+
#
|
|
2011
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
2012
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DeveloperConnect::V1::SCMCommit>]
|
|
2013
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
2014
|
+
#
|
|
2015
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::DeveloperConnect::V1::SCMCommit>]
|
|
2016
|
+
#
|
|
2017
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
2018
|
+
#
|
|
2019
|
+
# @example Basic example
|
|
2020
|
+
# require "google/cloud/developer_connect/v1"
|
|
2021
|
+
#
|
|
2022
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2023
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new
|
|
2024
|
+
#
|
|
2025
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2026
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListRequest.new
|
|
2027
|
+
#
|
|
2028
|
+
# # Call the fetch_git_repository_link_commit_list method.
|
|
2029
|
+
# result = client.fetch_git_repository_link_commit_list request
|
|
2030
|
+
#
|
|
2031
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
2032
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
2033
|
+
# result.each do |item|
|
|
2034
|
+
# # Each element is of type ::Google::Cloud::DeveloperConnect::V1::SCMCommit.
|
|
2035
|
+
# p item
|
|
2036
|
+
# end
|
|
2037
|
+
#
|
|
2038
|
+
def fetch_git_repository_link_commit_list request, options = nil
|
|
2039
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2040
|
+
|
|
2041
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkCommitListRequest
|
|
2042
|
+
|
|
2043
|
+
# Converts hash and nil to an options object
|
|
2044
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2045
|
+
|
|
2046
|
+
# Customize the options with defaults
|
|
2047
|
+
metadata = @config.rpcs.fetch_git_repository_link_commit_list.metadata.to_h
|
|
2048
|
+
|
|
2049
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2050
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2051
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2052
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION
|
|
2053
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2054
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2055
|
+
|
|
2056
|
+
header_params = {}
|
|
2057
|
+
if request.name
|
|
2058
|
+
header_params["name"] = request.name
|
|
2059
|
+
end
|
|
2060
|
+
|
|
2061
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
2062
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
2063
|
+
|
|
2064
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_repository_link_commit_list.timeout,
|
|
2065
|
+
metadata: metadata,
|
|
2066
|
+
retry_policy: @config.rpcs.fetch_git_repository_link_commit_list.retry_policy
|
|
2067
|
+
|
|
2068
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2069
|
+
metadata: @config.metadata,
|
|
2070
|
+
retry_policy: @config.retry_policy
|
|
2071
|
+
|
|
2072
|
+
@developer_connect_stub.call_rpc :fetch_git_repository_link_commit_list, request, options: options do |response, operation|
|
|
2073
|
+
response = ::Gapic::PagedEnumerable.new @developer_connect_stub, :fetch_git_repository_link_commit_list, request, response, operation, options
|
|
2074
|
+
yield response, operation if block_given?
|
|
2075
|
+
throw :response, response
|
|
2076
|
+
end
|
|
2077
|
+
rescue ::GRPC::BadStatus => e
|
|
2078
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2079
|
+
end
|
|
2080
|
+
|
|
2081
|
+
##
|
|
2082
|
+
# Fetches blame information for a file or line range in a file.
|
|
2083
|
+
#
|
|
2084
|
+
# @overload fetch_git_repository_link_file_blame(request, options = nil)
|
|
2085
|
+
# Pass arguments to `fetch_git_repository_link_file_blame` via a request object, either of type
|
|
2086
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameRequest} or an equivalent Hash.
|
|
2087
|
+
#
|
|
2088
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameRequest, ::Hash]
|
|
2089
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2090
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2091
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2092
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
2093
|
+
#
|
|
2094
|
+
# @overload fetch_git_repository_link_file_blame(name: nil, ref: nil, path: nil, first_line: nil, last_line: nil)
|
|
2095
|
+
# Pass arguments to `fetch_git_repository_link_file_blame` via keyword arguments. Note that at
|
|
2096
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2097
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2098
|
+
#
|
|
2099
|
+
# @param name [::String]
|
|
2100
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
2101
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
2102
|
+
# @param ref [::String]
|
|
2103
|
+
# Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag)
|
|
2104
|
+
# from which to fetch the blame.
|
|
2105
|
+
# @param path [::String]
|
|
2106
|
+
# Required. The file path within the repository.
|
|
2107
|
+
# @param first_line [::Integer]
|
|
2108
|
+
# Optional. The 1-indexed starting line number of the range to blame
|
|
2109
|
+
# (inclusive). If not specified, blame begins at line 1.
|
|
2110
|
+
# @param last_line [::Integer]
|
|
2111
|
+
# Optional. The 1-indexed ending line number of the range to blame
|
|
2112
|
+
# (inclusive). If not specified, blame extends to the end of the file.
|
|
2113
|
+
#
|
|
2114
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
2115
|
+
# @yieldparam response [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameResponse]
|
|
2116
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
2117
|
+
#
|
|
2118
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameResponse]
|
|
2119
|
+
#
|
|
2120
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
2121
|
+
#
|
|
2122
|
+
# @example Basic example
|
|
2123
|
+
# require "google/cloud/developer_connect/v1"
|
|
2124
|
+
#
|
|
2125
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2126
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new
|
|
2127
|
+
#
|
|
2128
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2129
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameRequest.new
|
|
2130
|
+
#
|
|
2131
|
+
# # Call the fetch_git_repository_link_file_blame method.
|
|
2132
|
+
# result = client.fetch_git_repository_link_file_blame request
|
|
2133
|
+
#
|
|
2134
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameResponse.
|
|
2135
|
+
# p result
|
|
2136
|
+
#
|
|
2137
|
+
def fetch_git_repository_link_file_blame request, options = nil
|
|
2138
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2139
|
+
|
|
2140
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkFileBlameRequest
|
|
2141
|
+
|
|
2142
|
+
# Converts hash and nil to an options object
|
|
2143
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2144
|
+
|
|
2145
|
+
# Customize the options with defaults
|
|
2146
|
+
metadata = @config.rpcs.fetch_git_repository_link_file_blame.metadata.to_h
|
|
2147
|
+
|
|
2148
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2149
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2150
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2151
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION
|
|
2152
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2153
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2154
|
+
|
|
2155
|
+
header_params = {}
|
|
2156
|
+
if request.name
|
|
2157
|
+
header_params["name"] = request.name
|
|
2158
|
+
end
|
|
2159
|
+
|
|
2160
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
2161
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
2162
|
+
|
|
2163
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_repository_link_file_blame.timeout,
|
|
2164
|
+
metadata: metadata,
|
|
2165
|
+
retry_policy: @config.rpcs.fetch_git_repository_link_file_blame.retry_policy
|
|
2166
|
+
|
|
2167
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2168
|
+
metadata: @config.metadata,
|
|
2169
|
+
retry_policy: @config.retry_policy
|
|
2170
|
+
|
|
2171
|
+
@developer_connect_stub.call_rpc :fetch_git_repository_link_file_blame, request, options: options do |response, operation|
|
|
2172
|
+
yield response, operation if block_given?
|
|
2173
|
+
end
|
|
2174
|
+
rescue ::GRPC::BadStatus => e
|
|
2175
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2176
|
+
end
|
|
2177
|
+
|
|
2178
|
+
##
|
|
2179
|
+
# Fetch Pull Request details from a Git repository link.
|
|
2180
|
+
#
|
|
2181
|
+
# @overload fetch_git_repository_link_pull_request(request, options = nil)
|
|
2182
|
+
# Pass arguments to `fetch_git_repository_link_pull_request` via a request object, either of type
|
|
2183
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestRequest} or an equivalent Hash.
|
|
2184
|
+
#
|
|
2185
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestRequest, ::Hash]
|
|
2186
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2187
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2188
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2189
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
2190
|
+
#
|
|
2191
|
+
# @overload fetch_git_repository_link_pull_request(name: nil, pull_request_id: nil)
|
|
2192
|
+
# Pass arguments to `fetch_git_repository_link_pull_request` via keyword arguments. Note that at
|
|
2193
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2194
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2195
|
+
#
|
|
2196
|
+
# @param name [::String]
|
|
2197
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
2198
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
2199
|
+
# @param pull_request_id [::String]
|
|
2200
|
+
# Required. The ID of the Pull Request.
|
|
2201
|
+
#
|
|
2202
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
2203
|
+
# @yieldparam response [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
2204
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
2205
|
+
#
|
|
2206
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
1413
2207
|
#
|
|
1414
|
-
#
|
|
2208
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
2209
|
+
#
|
|
2210
|
+
# @example Basic example
|
|
2211
|
+
# require "google/cloud/developer_connect/v1"
|
|
2212
|
+
#
|
|
2213
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2214
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new
|
|
2215
|
+
#
|
|
2216
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2217
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestRequest.new
|
|
2218
|
+
#
|
|
2219
|
+
# # Call the fetch_git_repository_link_pull_request method.
|
|
2220
|
+
# result = client.fetch_git_repository_link_pull_request request
|
|
2221
|
+
#
|
|
2222
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::PullRequest.
|
|
2223
|
+
# p result
|
|
2224
|
+
#
|
|
2225
|
+
def fetch_git_repository_link_pull_request request, options = nil
|
|
2226
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2227
|
+
|
|
2228
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestRequest
|
|
2229
|
+
|
|
2230
|
+
# Converts hash and nil to an options object
|
|
2231
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2232
|
+
|
|
2233
|
+
# Customize the options with defaults
|
|
2234
|
+
metadata = @config.rpcs.fetch_git_repository_link_pull_request.metadata.to_h
|
|
2235
|
+
|
|
2236
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2237
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2238
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2239
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION
|
|
2240
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2241
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2242
|
+
|
|
2243
|
+
header_params = {}
|
|
2244
|
+
if request.name
|
|
2245
|
+
header_params["name"] = request.name
|
|
2246
|
+
end
|
|
2247
|
+
|
|
2248
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
2249
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
2250
|
+
|
|
2251
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_repository_link_pull_request.timeout,
|
|
2252
|
+
metadata: metadata,
|
|
2253
|
+
retry_policy: @config.rpcs.fetch_git_repository_link_pull_request.retry_policy
|
|
2254
|
+
|
|
2255
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2256
|
+
metadata: @config.metadata,
|
|
2257
|
+
retry_policy: @config.retry_policy
|
|
2258
|
+
|
|
2259
|
+
@developer_connect_stub.call_rpc :fetch_git_repository_link_pull_request, request, options: options do |response, operation|
|
|
2260
|
+
yield response, operation if block_given?
|
|
2261
|
+
end
|
|
2262
|
+
rescue ::GRPC::BadStatus => e
|
|
2263
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2264
|
+
end
|
|
2265
|
+
|
|
2266
|
+
##
|
|
2267
|
+
# Add a comment to a Pull Request.
|
|
2268
|
+
#
|
|
2269
|
+
# @overload add_git_repository_link_pull_request_comment(request, options = nil)
|
|
2270
|
+
# Pass arguments to `add_git_repository_link_pull_request_comment` via a request object, either of type
|
|
2271
|
+
# {::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestCommentRequest} or an equivalent Hash.
|
|
2272
|
+
#
|
|
2273
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestCommentRequest, ::Hash]
|
|
1415
2274
|
# A request object representing the call parameters. Required. To specify no
|
|
1416
2275
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1417
2276
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1418
2277
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1419
2278
|
#
|
|
1420
|
-
# @overload
|
|
1421
|
-
# Pass arguments to `
|
|
2279
|
+
# @overload add_git_repository_link_pull_request_comment(name: nil, pull_request_id: nil, comment: nil)
|
|
2280
|
+
# Pass arguments to `add_git_repository_link_pull_request_comment` via keyword arguments. Note that at
|
|
1422
2281
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1423
2282
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1424
2283
|
#
|
|
1425
|
-
# @param
|
|
1426
|
-
# Required. The name of the
|
|
1427
|
-
#
|
|
1428
|
-
# @param
|
|
1429
|
-
#
|
|
1430
|
-
# @param
|
|
1431
|
-
#
|
|
2284
|
+
# @param name [::String]
|
|
2285
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
2286
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
2287
|
+
# @param pull_request_id [::String]
|
|
2288
|
+
# Required. The ID of the Pull Request.
|
|
2289
|
+
# @param comment [::Google::Cloud::DeveloperConnect::V1::PullRequestComment, ::Hash]
|
|
2290
|
+
# Required. The comment to add.
|
|
1432
2291
|
#
|
|
1433
2292
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
1434
|
-
# @yieldparam response [::
|
|
2293
|
+
# @yieldparam response [::Google::Cloud::DeveloperConnect::V1::PullRequestComment]
|
|
1435
2294
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1436
2295
|
#
|
|
1437
|
-
# @return [::
|
|
2296
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequestComment]
|
|
1438
2297
|
#
|
|
1439
2298
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1440
2299
|
#
|
|
@@ -1445,28 +2304,24 @@ module Google
|
|
|
1445
2304
|
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new
|
|
1446
2305
|
#
|
|
1447
2306
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1448
|
-
# request = Google::Cloud::DeveloperConnect::V1::
|
|
2307
|
+
# request = Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestCommentRequest.new
|
|
1449
2308
|
#
|
|
1450
|
-
# # Call the
|
|
1451
|
-
# result = client.
|
|
2309
|
+
# # Call the add_git_repository_link_pull_request_comment method.
|
|
2310
|
+
# result = client.add_git_repository_link_pull_request_comment request
|
|
1452
2311
|
#
|
|
1453
|
-
# # The returned object is of type
|
|
1454
|
-
#
|
|
1455
|
-
# result.each do |item|
|
|
1456
|
-
# # Each element is of type ::Google::Cloud::DeveloperConnect::V1::LinkableGitRepository.
|
|
1457
|
-
# p item
|
|
1458
|
-
# end
|
|
2312
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::PullRequestComment.
|
|
2313
|
+
# p result
|
|
1459
2314
|
#
|
|
1460
|
-
def
|
|
2315
|
+
def add_git_repository_link_pull_request_comment request, options = nil
|
|
1461
2316
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1462
2317
|
|
|
1463
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::
|
|
2318
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestCommentRequest
|
|
1464
2319
|
|
|
1465
2320
|
# Converts hash and nil to an options object
|
|
1466
2321
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1467
2322
|
|
|
1468
2323
|
# Customize the options with defaults
|
|
1469
|
-
metadata = @config.rpcs.
|
|
2324
|
+
metadata = @config.rpcs.add_git_repository_link_pull_request_comment.metadata.to_h
|
|
1470
2325
|
|
|
1471
2326
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1472
2327
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1476,60 +2331,62 @@ module Google
|
|
|
1476
2331
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1477
2332
|
|
|
1478
2333
|
header_params = {}
|
|
1479
|
-
if request.
|
|
1480
|
-
header_params["
|
|
2334
|
+
if request.name
|
|
2335
|
+
header_params["name"] = request.name
|
|
1481
2336
|
end
|
|
1482
2337
|
|
|
1483
2338
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1484
2339
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1485
2340
|
|
|
1486
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2341
|
+
options.apply_defaults timeout: @config.rpcs.add_git_repository_link_pull_request_comment.timeout,
|
|
1487
2342
|
metadata: metadata,
|
|
1488
|
-
retry_policy: @config.rpcs.
|
|
2343
|
+
retry_policy: @config.rpcs.add_git_repository_link_pull_request_comment.retry_policy
|
|
1489
2344
|
|
|
1490
2345
|
options.apply_defaults timeout: @config.timeout,
|
|
1491
2346
|
metadata: @config.metadata,
|
|
1492
2347
|
retry_policy: @config.retry_policy
|
|
1493
2348
|
|
|
1494
|
-
@developer_connect_stub.call_rpc :
|
|
1495
|
-
response = ::Gapic::PagedEnumerable.new @developer_connect_stub, :fetch_linkable_git_repositories, request, response, operation, options
|
|
2349
|
+
@developer_connect_stub.call_rpc :add_git_repository_link_pull_request_comment, request, options: options do |response, operation|
|
|
1496
2350
|
yield response, operation if block_given?
|
|
1497
|
-
throw :response, response
|
|
1498
2351
|
end
|
|
1499
2352
|
rescue ::GRPC::BadStatus => e
|
|
1500
2353
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1501
2354
|
end
|
|
1502
2355
|
|
|
1503
2356
|
##
|
|
1504
|
-
#
|
|
1505
|
-
# are available to be added to a Connection.
|
|
1506
|
-
# For github.com, only installations accessible to the authorizer token
|
|
1507
|
-
# are returned. For GitHub Enterprise, all installations are returned.
|
|
2357
|
+
# Add a review comment (inline on diff) to a Pull Request.
|
|
1508
2358
|
#
|
|
1509
|
-
# @overload
|
|
1510
|
-
# Pass arguments to `
|
|
1511
|
-
# {::Google::Cloud::DeveloperConnect::V1::
|
|
2359
|
+
# @overload add_git_repository_link_pull_request_review_comment(request, options = nil)
|
|
2360
|
+
# Pass arguments to `add_git_repository_link_pull_request_review_comment` via a request object, either of type
|
|
2361
|
+
# {::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestReviewCommentRequest} or an equivalent Hash.
|
|
1512
2362
|
#
|
|
1513
|
-
# @param request [::Google::Cloud::DeveloperConnect::V1::
|
|
2363
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestReviewCommentRequest, ::Hash]
|
|
1514
2364
|
# A request object representing the call parameters. Required. To specify no
|
|
1515
2365
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1516
2366
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1517
2367
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1518
2368
|
#
|
|
1519
|
-
# @overload
|
|
1520
|
-
# Pass arguments to `
|
|
2369
|
+
# @overload add_git_repository_link_pull_request_review_comment(name: nil, pull_request_id: nil, comment: nil, commit_id: nil)
|
|
2370
|
+
# Pass arguments to `add_git_repository_link_pull_request_review_comment` via keyword arguments. Note that at
|
|
1521
2371
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1522
2372
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1523
2373
|
#
|
|
1524
|
-
# @param
|
|
1525
|
-
# Required. The resource name of the
|
|
1526
|
-
# `projects/*/locations/*/connections/*`.
|
|
2374
|
+
# @param name [::String]
|
|
2375
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
2376
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
2377
|
+
# @param pull_request_id [::String]
|
|
2378
|
+
# Required. The ID of the Pull Request.
|
|
2379
|
+
# @param comment [::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment, ::Hash]
|
|
2380
|
+
# Required. The review comment to add.
|
|
2381
|
+
# @param commit_id [::String]
|
|
2382
|
+
# Optional. The commit SHA to comment on. If not specified, defaults to the
|
|
2383
|
+
# HEAD commit of the Pull Request.
|
|
1527
2384
|
#
|
|
1528
2385
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
1529
|
-
# @yieldparam response [::Google::Cloud::DeveloperConnect::V1::
|
|
2386
|
+
# @yieldparam response [::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment]
|
|
1530
2387
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1531
2388
|
#
|
|
1532
|
-
# @return [::Google::Cloud::DeveloperConnect::V1::
|
|
2389
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment]
|
|
1533
2390
|
#
|
|
1534
2391
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1535
2392
|
#
|
|
@@ -1540,24 +2397,24 @@ module Google
|
|
|
1540
2397
|
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new
|
|
1541
2398
|
#
|
|
1542
2399
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1543
|
-
# request = Google::Cloud::DeveloperConnect::V1::
|
|
2400
|
+
# request = Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestReviewCommentRequest.new
|
|
1544
2401
|
#
|
|
1545
|
-
# # Call the
|
|
1546
|
-
# result = client.
|
|
2402
|
+
# # Call the add_git_repository_link_pull_request_review_comment method.
|
|
2403
|
+
# result = client.add_git_repository_link_pull_request_review_comment request
|
|
1547
2404
|
#
|
|
1548
|
-
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::
|
|
2405
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment.
|
|
1549
2406
|
# p result
|
|
1550
2407
|
#
|
|
1551
|
-
def
|
|
2408
|
+
def add_git_repository_link_pull_request_review_comment request, options = nil
|
|
1552
2409
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1553
2410
|
|
|
1554
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::
|
|
2411
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::AddGitRepositoryLinkPullRequestReviewCommentRequest
|
|
1555
2412
|
|
|
1556
2413
|
# Converts hash and nil to an options object
|
|
1557
2414
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1558
2415
|
|
|
1559
2416
|
# Customize the options with defaults
|
|
1560
|
-
metadata = @config.rpcs.
|
|
2417
|
+
metadata = @config.rpcs.add_git_repository_link_pull_request_review_comment.metadata.to_h
|
|
1561
2418
|
|
|
1562
2419
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1563
2420
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1567,22 +2424,22 @@ module Google
|
|
|
1567
2424
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1568
2425
|
|
|
1569
2426
|
header_params = {}
|
|
1570
|
-
if request.
|
|
1571
|
-
header_params["
|
|
2427
|
+
if request.name
|
|
2428
|
+
header_params["name"] = request.name
|
|
1572
2429
|
end
|
|
1573
2430
|
|
|
1574
2431
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1575
2432
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1576
2433
|
|
|
1577
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2434
|
+
options.apply_defaults timeout: @config.rpcs.add_git_repository_link_pull_request_review_comment.timeout,
|
|
1578
2435
|
metadata: metadata,
|
|
1579
|
-
retry_policy: @config.rpcs.
|
|
2436
|
+
retry_policy: @config.rpcs.add_git_repository_link_pull_request_review_comment.retry_policy
|
|
1580
2437
|
|
|
1581
2438
|
options.apply_defaults timeout: @config.timeout,
|
|
1582
2439
|
metadata: @config.metadata,
|
|
1583
2440
|
retry_policy: @config.retry_policy
|
|
1584
2441
|
|
|
1585
|
-
@developer_connect_stub.call_rpc :
|
|
2442
|
+
@developer_connect_stub.call_rpc :add_git_repository_link_pull_request_review_comment, request, options: options do |response, operation|
|
|
1586
2443
|
yield response, operation if block_given?
|
|
1587
2444
|
end
|
|
1588
2445
|
rescue ::GRPC::BadStatus => e
|
|
@@ -1590,38 +2447,145 @@ module Google
|
|
|
1590
2447
|
end
|
|
1591
2448
|
|
|
1592
2449
|
##
|
|
1593
|
-
#
|
|
2450
|
+
# Modifies a Pull Request in the remote SCM repository associated with a
|
|
2451
|
+
# GitRepositoryLink.
|
|
1594
2452
|
#
|
|
1595
|
-
# @overload
|
|
1596
|
-
# Pass arguments to `
|
|
1597
|
-
# {::Google::Cloud::DeveloperConnect::V1::
|
|
2453
|
+
# @overload modify_git_repository_link_pull_request(request, options = nil)
|
|
2454
|
+
# Pass arguments to `modify_git_repository_link_pull_request` via a request object, either of type
|
|
2455
|
+
# {::Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest} or an equivalent Hash.
|
|
1598
2456
|
#
|
|
1599
|
-
# @param request [::Google::Cloud::DeveloperConnect::V1::
|
|
2457
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest, ::Hash]
|
|
1600
2458
|
# A request object representing the call parameters. Required. To specify no
|
|
1601
2459
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1602
2460
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1603
2461
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1604
2462
|
#
|
|
1605
|
-
# @overload
|
|
1606
|
-
# Pass arguments to `
|
|
2463
|
+
# @overload modify_git_repository_link_pull_request(name: nil, pull_request_id: nil, title: nil, body: nil, base_ref: nil, state: nil)
|
|
2464
|
+
# Pass arguments to `modify_git_repository_link_pull_request` via keyword arguments. Note that at
|
|
1607
2465
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1608
2466
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1609
2467
|
#
|
|
1610
|
-
# @param
|
|
1611
|
-
# Required. The resource name
|
|
2468
|
+
# @param name [::String]
|
|
2469
|
+
# Required. The GitRepositoryLink resource name in the format
|
|
1612
2470
|
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1613
|
-
# @param
|
|
1614
|
-
# Required.
|
|
2471
|
+
# @param pull_request_id [::String]
|
|
2472
|
+
# Required. The SCM-specific Pull Request identifier (e.g., "45").
|
|
2473
|
+
# @param title [::String]
|
|
2474
|
+
# Optional. The title of the Pull Request.
|
|
2475
|
+
# @param body [::String]
|
|
2476
|
+
# Optional. The body description of the Pull Request.
|
|
2477
|
+
# @param base_ref [::String]
|
|
2478
|
+
# Optional. The target branch to merge into.
|
|
2479
|
+
# @param state [::Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest::State]
|
|
2480
|
+
# Optional. The state of the Pull Request.
|
|
2481
|
+
#
|
|
2482
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
2483
|
+
# @yieldparam response [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
2484
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
2485
|
+
#
|
|
2486
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
2487
|
+
#
|
|
2488
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
2489
|
+
#
|
|
2490
|
+
# @example Basic example
|
|
2491
|
+
# require "google/cloud/developer_connect/v1"
|
|
2492
|
+
#
|
|
2493
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2494
|
+
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new
|
|
2495
|
+
#
|
|
2496
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2497
|
+
# request = Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest.new
|
|
2498
|
+
#
|
|
2499
|
+
# # Call the modify_git_repository_link_pull_request method.
|
|
2500
|
+
# result = client.modify_git_repository_link_pull_request request
|
|
2501
|
+
#
|
|
2502
|
+
# # The returned object is of type Google::Cloud::DeveloperConnect::V1::PullRequest.
|
|
2503
|
+
# p result
|
|
2504
|
+
#
|
|
2505
|
+
def modify_git_repository_link_pull_request request, options = nil
|
|
2506
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2507
|
+
|
|
2508
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest
|
|
2509
|
+
|
|
2510
|
+
# Converts hash and nil to an options object
|
|
2511
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2512
|
+
|
|
2513
|
+
# Customize the options with defaults
|
|
2514
|
+
metadata = @config.rpcs.modify_git_repository_link_pull_request.metadata.to_h
|
|
2515
|
+
|
|
2516
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2517
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2518
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2519
|
+
gapic_version: ::Google::Cloud::DeveloperConnect::V1::VERSION
|
|
2520
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2521
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2522
|
+
|
|
2523
|
+
header_params = {}
|
|
2524
|
+
if request.name
|
|
2525
|
+
header_params["name"] = request.name
|
|
2526
|
+
end
|
|
2527
|
+
|
|
2528
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
2529
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
2530
|
+
|
|
2531
|
+
options.apply_defaults timeout: @config.rpcs.modify_git_repository_link_pull_request.timeout,
|
|
2532
|
+
metadata: metadata,
|
|
2533
|
+
retry_policy: @config.rpcs.modify_git_repository_link_pull_request.retry_policy
|
|
2534
|
+
|
|
2535
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2536
|
+
metadata: @config.metadata,
|
|
2537
|
+
retry_policy: @config.retry_policy
|
|
2538
|
+
|
|
2539
|
+
@developer_connect_stub.call_rpc :modify_git_repository_link_pull_request, request, options: options do |response, operation|
|
|
2540
|
+
yield response, operation if block_given?
|
|
2541
|
+
end
|
|
2542
|
+
rescue ::GRPC::BadStatus => e
|
|
2543
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2544
|
+
end
|
|
2545
|
+
|
|
2546
|
+
##
|
|
2547
|
+
# Fetches a list of Pull Requests from the remote repository.
|
|
2548
|
+
#
|
|
2549
|
+
# @overload fetch_git_repository_link_pull_request_list(request, options = nil)
|
|
2550
|
+
# Pass arguments to `fetch_git_repository_link_pull_request_list` via a request object, either of type
|
|
2551
|
+
# {::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListRequest} or an equivalent Hash.
|
|
2552
|
+
#
|
|
2553
|
+
# @param request [::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListRequest, ::Hash]
|
|
2554
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2555
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2556
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2557
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
2558
|
+
#
|
|
2559
|
+
# @overload fetch_git_repository_link_pull_request_list(name: nil, filter: nil, page_size: nil, page_token: nil)
|
|
2560
|
+
# Pass arguments to `fetch_git_repository_link_pull_request_list` via keyword arguments. Note that at
|
|
2561
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2562
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2563
|
+
#
|
|
2564
|
+
# @param name [::String]
|
|
2565
|
+
# Required. The GitRepositoryLink resource name in the format
|
|
2566
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
2567
|
+
# @param filter [::String]
|
|
2568
|
+
# Optional. A filter expression that filters the pull requests returned in
|
|
2569
|
+
# the response. Only a single equality comparison on `state` is supported,
|
|
2570
|
+
# for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and
|
|
2571
|
+
# `MERGED`. `DECLINED` is only supported for SCM providers that support
|
|
2572
|
+
# declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub
|
|
2573
|
+
# Enterprise, GitLab, and GitLab Enterprise. Other values or expressions
|
|
2574
|
+
# return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.
|
|
1615
2575
|
# @param page_size [::Integer]
|
|
1616
|
-
# Optional. Number of results to return in the list. Default
|
|
2576
|
+
# Optional. Number of results to return in the list. Default is 20. Max is
|
|
2577
|
+
# 100. A page may contain fewer than `page_size` results even when more
|
|
2578
|
+
# results are available; use `next_page_token` to check for more pages.
|
|
1617
2579
|
# @param page_token [::String]
|
|
1618
|
-
# Optional.
|
|
2580
|
+
# Optional. A page token, received from a previous
|
|
2581
|
+
# `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
|
|
2582
|
+
# subsequent page.
|
|
1619
2583
|
#
|
|
1620
2584
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
1621
|
-
# @yieldparam response [::Google::Cloud::DeveloperConnect::V1::
|
|
2585
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DeveloperConnect::V1::PullRequest>]
|
|
1622
2586
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1623
2587
|
#
|
|
1624
|
-
# @return [::Google::Cloud::DeveloperConnect::V1::
|
|
2588
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::DeveloperConnect::V1::PullRequest>]
|
|
1625
2589
|
#
|
|
1626
2590
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1627
2591
|
#
|
|
@@ -1632,24 +2596,28 @@ module Google
|
|
|
1632
2596
|
# client = Google::Cloud::DeveloperConnect::V1::DeveloperConnect::Client.new
|
|
1633
2597
|
#
|
|
1634
2598
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1635
|
-
# request = Google::Cloud::DeveloperConnect::V1::
|
|
2599
|
+
# request = Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListRequest.new
|
|
1636
2600
|
#
|
|
1637
|
-
# # Call the
|
|
1638
|
-
# result = client.
|
|
2601
|
+
# # Call the fetch_git_repository_link_pull_request_list method.
|
|
2602
|
+
# result = client.fetch_git_repository_link_pull_request_list request
|
|
1639
2603
|
#
|
|
1640
|
-
# # The returned object is of type
|
|
1641
|
-
#
|
|
2604
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
2605
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
2606
|
+
# result.each do |item|
|
|
2607
|
+
# # Each element is of type ::Google::Cloud::DeveloperConnect::V1::PullRequest.
|
|
2608
|
+
# p item
|
|
2609
|
+
# end
|
|
1642
2610
|
#
|
|
1643
|
-
def
|
|
2611
|
+
def fetch_git_repository_link_pull_request_list request, options = nil
|
|
1644
2612
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1645
2613
|
|
|
1646
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::
|
|
2614
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DeveloperConnect::V1::FetchGitRepositoryLinkPullRequestListRequest
|
|
1647
2615
|
|
|
1648
2616
|
# Converts hash and nil to an options object
|
|
1649
2617
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1650
2618
|
|
|
1651
2619
|
# Customize the options with defaults
|
|
1652
|
-
metadata = @config.rpcs.
|
|
2620
|
+
metadata = @config.rpcs.fetch_git_repository_link_pull_request_list.metadata.to_h
|
|
1653
2621
|
|
|
1654
2622
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1655
2623
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1659,23 +2627,25 @@ module Google
|
|
|
1659
2627
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1660
2628
|
|
|
1661
2629
|
header_params = {}
|
|
1662
|
-
if request.
|
|
1663
|
-
header_params["
|
|
2630
|
+
if request.name
|
|
2631
|
+
header_params["name"] = request.name
|
|
1664
2632
|
end
|
|
1665
2633
|
|
|
1666
2634
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1667
2635
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1668
2636
|
|
|
1669
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2637
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_repository_link_pull_request_list.timeout,
|
|
1670
2638
|
metadata: metadata,
|
|
1671
|
-
retry_policy: @config.rpcs.
|
|
2639
|
+
retry_policy: @config.rpcs.fetch_git_repository_link_pull_request_list.retry_policy
|
|
1672
2640
|
|
|
1673
2641
|
options.apply_defaults timeout: @config.timeout,
|
|
1674
2642
|
metadata: @config.metadata,
|
|
1675
2643
|
retry_policy: @config.retry_policy
|
|
1676
2644
|
|
|
1677
|
-
@developer_connect_stub.call_rpc :
|
|
2645
|
+
@developer_connect_stub.call_rpc :fetch_git_repository_link_pull_request_list, request, options: options do |response, operation|
|
|
2646
|
+
response = ::Gapic::PagedEnumerable.new @developer_connect_stub, :fetch_git_repository_link_pull_request_list, request, response, operation, options
|
|
1678
2647
|
yield response, operation if block_given?
|
|
2648
|
+
throw :response, response
|
|
1679
2649
|
end
|
|
1680
2650
|
rescue ::GRPC::BadStatus => e
|
|
1681
2651
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -3119,6 +4089,11 @@ module Google
|
|
|
3119
4089
|
#
|
|
3120
4090
|
attr_reader :fetch_read_token
|
|
3121
4091
|
##
|
|
4092
|
+
# RPC-specific configuration for `open_git_repository_link_pull_request`
|
|
4093
|
+
# @return [::Gapic::Config::Method]
|
|
4094
|
+
#
|
|
4095
|
+
attr_reader :open_git_repository_link_pull_request
|
|
4096
|
+
##
|
|
3122
4097
|
# RPC-specific configuration for `fetch_linkable_git_repositories`
|
|
3123
4098
|
# @return [::Gapic::Config::Method]
|
|
3124
4099
|
#
|
|
@@ -3134,6 +4109,51 @@ module Google
|
|
|
3134
4109
|
#
|
|
3135
4110
|
attr_reader :fetch_git_refs
|
|
3136
4111
|
##
|
|
4112
|
+
# RPC-specific configuration for `diff_git_repository_link_commit`
|
|
4113
|
+
# @return [::Gapic::Config::Method]
|
|
4114
|
+
#
|
|
4115
|
+
attr_reader :diff_git_repository_link_commit
|
|
4116
|
+
##
|
|
4117
|
+
# RPC-specific configuration for `fetch_git_repository_link_commit`
|
|
4118
|
+
# @return [::Gapic::Config::Method]
|
|
4119
|
+
#
|
|
4120
|
+
attr_reader :fetch_git_repository_link_commit
|
|
4121
|
+
##
|
|
4122
|
+
# RPC-specific configuration for `fetch_git_repository_link_commit_list`
|
|
4123
|
+
# @return [::Gapic::Config::Method]
|
|
4124
|
+
#
|
|
4125
|
+
attr_reader :fetch_git_repository_link_commit_list
|
|
4126
|
+
##
|
|
4127
|
+
# RPC-specific configuration for `fetch_git_repository_link_file_blame`
|
|
4128
|
+
# @return [::Gapic::Config::Method]
|
|
4129
|
+
#
|
|
4130
|
+
attr_reader :fetch_git_repository_link_file_blame
|
|
4131
|
+
##
|
|
4132
|
+
# RPC-specific configuration for `fetch_git_repository_link_pull_request`
|
|
4133
|
+
# @return [::Gapic::Config::Method]
|
|
4134
|
+
#
|
|
4135
|
+
attr_reader :fetch_git_repository_link_pull_request
|
|
4136
|
+
##
|
|
4137
|
+
# RPC-specific configuration for `add_git_repository_link_pull_request_comment`
|
|
4138
|
+
# @return [::Gapic::Config::Method]
|
|
4139
|
+
#
|
|
4140
|
+
attr_reader :add_git_repository_link_pull_request_comment
|
|
4141
|
+
##
|
|
4142
|
+
# RPC-specific configuration for `add_git_repository_link_pull_request_review_comment`
|
|
4143
|
+
# @return [::Gapic::Config::Method]
|
|
4144
|
+
#
|
|
4145
|
+
attr_reader :add_git_repository_link_pull_request_review_comment
|
|
4146
|
+
##
|
|
4147
|
+
# RPC-specific configuration for `modify_git_repository_link_pull_request`
|
|
4148
|
+
# @return [::Gapic::Config::Method]
|
|
4149
|
+
#
|
|
4150
|
+
attr_reader :modify_git_repository_link_pull_request
|
|
4151
|
+
##
|
|
4152
|
+
# RPC-specific configuration for `fetch_git_repository_link_pull_request_list`
|
|
4153
|
+
# @return [::Gapic::Config::Method]
|
|
4154
|
+
#
|
|
4155
|
+
attr_reader :fetch_git_repository_link_pull_request_list
|
|
4156
|
+
##
|
|
3137
4157
|
# RPC-specific configuration for `list_account_connectors`
|
|
3138
4158
|
# @return [::Gapic::Config::Method]
|
|
3139
4159
|
#
|
|
@@ -3218,12 +4238,32 @@ module Google
|
|
|
3218
4238
|
@fetch_read_write_token = ::Gapic::Config::Method.new fetch_read_write_token_config
|
|
3219
4239
|
fetch_read_token_config = parent_rpcs.fetch_read_token if parent_rpcs.respond_to? :fetch_read_token
|
|
3220
4240
|
@fetch_read_token = ::Gapic::Config::Method.new fetch_read_token_config
|
|
4241
|
+
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
|
|
4242
|
+
@open_git_repository_link_pull_request = ::Gapic::Config::Method.new open_git_repository_link_pull_request_config
|
|
3221
4243
|
fetch_linkable_git_repositories_config = parent_rpcs.fetch_linkable_git_repositories if parent_rpcs.respond_to? :fetch_linkable_git_repositories
|
|
3222
4244
|
@fetch_linkable_git_repositories = ::Gapic::Config::Method.new fetch_linkable_git_repositories_config
|
|
3223
4245
|
fetch_git_hub_installations_config = parent_rpcs.fetch_git_hub_installations if parent_rpcs.respond_to? :fetch_git_hub_installations
|
|
3224
4246
|
@fetch_git_hub_installations = ::Gapic::Config::Method.new fetch_git_hub_installations_config
|
|
3225
4247
|
fetch_git_refs_config = parent_rpcs.fetch_git_refs if parent_rpcs.respond_to? :fetch_git_refs
|
|
3226
4248
|
@fetch_git_refs = ::Gapic::Config::Method.new fetch_git_refs_config
|
|
4249
|
+
diff_git_repository_link_commit_config = parent_rpcs.diff_git_repository_link_commit if parent_rpcs.respond_to? :diff_git_repository_link_commit
|
|
4250
|
+
@diff_git_repository_link_commit = ::Gapic::Config::Method.new diff_git_repository_link_commit_config
|
|
4251
|
+
fetch_git_repository_link_commit_config = parent_rpcs.fetch_git_repository_link_commit if parent_rpcs.respond_to? :fetch_git_repository_link_commit
|
|
4252
|
+
@fetch_git_repository_link_commit = ::Gapic::Config::Method.new fetch_git_repository_link_commit_config
|
|
4253
|
+
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
|
|
4254
|
+
@fetch_git_repository_link_commit_list = ::Gapic::Config::Method.new fetch_git_repository_link_commit_list_config
|
|
4255
|
+
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
|
|
4256
|
+
@fetch_git_repository_link_file_blame = ::Gapic::Config::Method.new fetch_git_repository_link_file_blame_config
|
|
4257
|
+
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
|
|
4258
|
+
@fetch_git_repository_link_pull_request = ::Gapic::Config::Method.new fetch_git_repository_link_pull_request_config
|
|
4259
|
+
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
|
|
4260
|
+
@add_git_repository_link_pull_request_comment = ::Gapic::Config::Method.new add_git_repository_link_pull_request_comment_config
|
|
4261
|
+
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
|
|
4262
|
+
@add_git_repository_link_pull_request_review_comment = ::Gapic::Config::Method.new add_git_repository_link_pull_request_review_comment_config
|
|
4263
|
+
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
|
|
4264
|
+
@modify_git_repository_link_pull_request = ::Gapic::Config::Method.new modify_git_repository_link_pull_request_config
|
|
4265
|
+
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
|
|
4266
|
+
@fetch_git_repository_link_pull_request_list = ::Gapic::Config::Method.new fetch_git_repository_link_pull_request_list_config
|
|
3227
4267
|
list_account_connectors_config = parent_rpcs.list_account_connectors if parent_rpcs.respond_to? :list_account_connectors
|
|
3228
4268
|
@list_account_connectors = ::Gapic::Config::Method.new list_account_connectors_config
|
|
3229
4269
|
get_account_connector_config = parent_rpcs.get_account_connector if parent_rpcs.respond_to? :get_account_connector
|