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
|
@@ -986,6 +986,53 @@ module Google
|
|
|
986
986
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
987
987
|
end
|
|
988
988
|
|
|
989
|
+
# Request message for DiffGitRepositoryLinkCommit.
|
|
990
|
+
# @!attribute [rw] name
|
|
991
|
+
# @return [::String]
|
|
992
|
+
# Required. The resource name of the GitRepositoryLink.
|
|
993
|
+
# @!attribute [rw] base_sha
|
|
994
|
+
# @return [::String]
|
|
995
|
+
# Required. The base commit SHA or ref.
|
|
996
|
+
# @!attribute [rw] head_sha
|
|
997
|
+
# @return [::String]
|
|
998
|
+
# Required. The head commit SHA or ref.
|
|
999
|
+
# @!attribute [rw] path_filters
|
|
1000
|
+
# @return [::Array<::String>]
|
|
1001
|
+
# Optional. Path patterns or exact paths to filter returned files.
|
|
1002
|
+
# When `path_filters` is specified, `FileDiff.patch` is populated for all
|
|
1003
|
+
# matching files (use `["**"]` to include patches for all changed files).
|
|
1004
|
+
# When `path_filters` is omitted or empty, the full list of `FileDiff` is
|
|
1005
|
+
# returned without patch diffs (`FileDiff.patch` is empty).
|
|
1006
|
+
class DiffGitRepositoryLinkCommitRequest
|
|
1007
|
+
include ::Google::Protobuf::MessageExts
|
|
1008
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1009
|
+
end
|
|
1010
|
+
|
|
1011
|
+
# Response message for DiffGitRepositoryLinkCommit.
|
|
1012
|
+
# @!attribute [rw] files
|
|
1013
|
+
# @return [::Array<::Google::Cloud::DeveloperConnect::V1::FileDiff>]
|
|
1014
|
+
# The file diff extracted from the unified diff.
|
|
1015
|
+
class DiffGitRepositoryLinkCommitResponse
|
|
1016
|
+
include ::Google::Protobuf::MessageExts
|
|
1017
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1018
|
+
end
|
|
1019
|
+
|
|
1020
|
+
# Message for a file diff.
|
|
1021
|
+
# @!attribute [rw] path
|
|
1022
|
+
# @return [::String]
|
|
1023
|
+
# Relative path to the file in the repository.
|
|
1024
|
+
# @!attribute [rw] status
|
|
1025
|
+
# @return [::String]
|
|
1026
|
+
# Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
|
|
1027
|
+
# @!attribute [rw] patch
|
|
1028
|
+
# @return [::String]
|
|
1029
|
+
# Standard unified diff patch hunk for the file. Only populated when
|
|
1030
|
+
# `path_filters` is specified in the request; otherwise empty.
|
|
1031
|
+
class FileDiff
|
|
1032
|
+
include ::Google::Protobuf::MessageExts
|
|
1033
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1034
|
+
end
|
|
1035
|
+
|
|
989
1036
|
# Message for starting an OAuth flow.
|
|
990
1037
|
# @!attribute [rw] account_connector
|
|
991
1038
|
# @return [::String]
|
|
@@ -1329,6 +1376,20 @@ module Google
|
|
|
1329
1376
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1330
1377
|
end
|
|
1331
1378
|
|
|
1379
|
+
# Message for opening SCM Pull Request.
|
|
1380
|
+
# @!attribute [rw] name
|
|
1381
|
+
# @return [::String]
|
|
1382
|
+
# Required. The GitRepositoryLink resource name in the format
|
|
1383
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1384
|
+
# @!attribute [rw] pull_request
|
|
1385
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequest]
|
|
1386
|
+
# Required. The Pull Request details to open.
|
|
1387
|
+
# Input fields used: title, body, head_ref, base_ref.
|
|
1388
|
+
class OpenGitRepositoryLinkPullRequestRequest
|
|
1389
|
+
include ::Google::Protobuf::MessageExts
|
|
1390
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1391
|
+
end
|
|
1392
|
+
|
|
1332
1393
|
# Request message for FetchLinkableGitRepositoriesRequest.
|
|
1333
1394
|
# @!attribute [rw] connection
|
|
1334
1395
|
# @return [::String]
|
|
@@ -1445,6 +1506,454 @@ module Google
|
|
|
1445
1506
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1446
1507
|
end
|
|
1447
1508
|
|
|
1509
|
+
# Request message for FetchGitRepositoryLinkCommit.
|
|
1510
|
+
# @!attribute [rw] name
|
|
1511
|
+
# @return [::String]
|
|
1512
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
1513
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1514
|
+
# @!attribute [rw] commit_sha
|
|
1515
|
+
# @return [::String]
|
|
1516
|
+
# Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or
|
|
1517
|
+
# Git reference).
|
|
1518
|
+
# @!attribute [rw] view
|
|
1519
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::CommitView]
|
|
1520
|
+
# Optional. The level of commit details to return in the response.
|
|
1521
|
+
# Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths
|
|
1522
|
+
# and statuses) are returned; `path_filters` must also be specified to
|
|
1523
|
+
# populate line patch hunks.
|
|
1524
|
+
# @!attribute [rw] path_filters
|
|
1525
|
+
# @return [::Array<::String>]
|
|
1526
|
+
# Optional. Path patterns or exact paths to filter returned files (only
|
|
1527
|
+
# applicable in `FULL` view).
|
|
1528
|
+
# When `path_filters` is specified, `FileDiff.patch` is populated for all
|
|
1529
|
+
# matching files (use `["**"]` to include patches for all changed files).
|
|
1530
|
+
# When `path_filters` is omitted or empty, the full list of `FileDiff` is
|
|
1531
|
+
# returned without patch diffs (`FileDiff.patch` is empty).
|
|
1532
|
+
class FetchGitRepositoryLinkCommitRequest
|
|
1533
|
+
include ::Google::Protobuf::MessageExts
|
|
1534
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1535
|
+
end
|
|
1536
|
+
|
|
1537
|
+
# Response message for FetchGitRepositoryLinkCommit.
|
|
1538
|
+
# @!attribute [rw] commit
|
|
1539
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::SCMCommit]
|
|
1540
|
+
# The commit metadata.
|
|
1541
|
+
# @!attribute [rw] files
|
|
1542
|
+
# @return [::Array<::Google::Cloud::DeveloperConnect::V1::FileDiff>]
|
|
1543
|
+
# List of file changes and patch diffs. Omitted when view is `BASIC`.
|
|
1544
|
+
# Patch diffs (`FileDiff.patch`) are only populated when `path_filters` is
|
|
1545
|
+
# specified in the request.
|
|
1546
|
+
class FetchGitRepositoryLinkCommitResponse
|
|
1547
|
+
include ::Google::Protobuf::MessageExts
|
|
1548
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1549
|
+
end
|
|
1550
|
+
|
|
1551
|
+
# Request message for FetchGitRepositoryLinkCommitList.
|
|
1552
|
+
# @!attribute [rw] name
|
|
1553
|
+
# @return [::String]
|
|
1554
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
1555
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1556
|
+
# @!attribute [rw] ref
|
|
1557
|
+
# @return [::String]
|
|
1558
|
+
# Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or
|
|
1559
|
+
# Git reference) from which to start listing commits.
|
|
1560
|
+
# @!attribute [rw] page_size
|
|
1561
|
+
# @return [::Integer]
|
|
1562
|
+
# Optional. Number of results to return in the list. Default is 50. Max is
|
|
1563
|
+
# 100.
|
|
1564
|
+
# @!attribute [rw] page_token
|
|
1565
|
+
# @return [::String]
|
|
1566
|
+
# Optional. A page token, received from a previous
|
|
1567
|
+
# `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the
|
|
1568
|
+
# subsequent page.
|
|
1569
|
+
#
|
|
1570
|
+
# When paginating, all other parameters provided to
|
|
1571
|
+
# `FetchGitRepositoryLinkCommitList` must match the call that provided the
|
|
1572
|
+
# page token.
|
|
1573
|
+
# @!attribute [rw] view
|
|
1574
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::CommitView]
|
|
1575
|
+
# Optional. The level of commit details to return in the response.
|
|
1576
|
+
# Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to
|
|
1577
|
+
# `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file
|
|
1578
|
+
# diffs for a single commit.
|
|
1579
|
+
class FetchGitRepositoryLinkCommitListRequest
|
|
1580
|
+
include ::Google::Protobuf::MessageExts
|
|
1581
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1582
|
+
end
|
|
1583
|
+
|
|
1584
|
+
# Response message for FetchGitRepositoryLinkCommitList.
|
|
1585
|
+
# @!attribute [rw] commits
|
|
1586
|
+
# @return [::Array<::Google::Cloud::DeveloperConnect::V1::SCMCommit>]
|
|
1587
|
+
# The list of commit metadata.
|
|
1588
|
+
# @!attribute [rw] next_page_token
|
|
1589
|
+
# @return [::String]
|
|
1590
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
|
1591
|
+
# If this field is omitted, there are no subsequent pages.
|
|
1592
|
+
class FetchGitRepositoryLinkCommitListResponse
|
|
1593
|
+
include ::Google::Protobuf::MessageExts
|
|
1594
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1595
|
+
end
|
|
1596
|
+
|
|
1597
|
+
# SCMCommit represents commit metadata.
|
|
1598
|
+
# @!attribute [rw] sha
|
|
1599
|
+
# @return [::String]
|
|
1600
|
+
# Full 40-character SCM commit SHA.
|
|
1601
|
+
# @!attribute [rw] message
|
|
1602
|
+
# @return [::String]
|
|
1603
|
+
# Commit message text.
|
|
1604
|
+
# @!attribute [rw] author
|
|
1605
|
+
# @return [::String]
|
|
1606
|
+
# The author's display name.
|
|
1607
|
+
# @!attribute [rw] author_email
|
|
1608
|
+
# @return [::String]
|
|
1609
|
+
# The author's email address.
|
|
1610
|
+
# @!attribute [rw] commit_time
|
|
1611
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
1612
|
+
# Timestamp when the commit was authored.
|
|
1613
|
+
# @!attribute [rw] url
|
|
1614
|
+
# @return [::String]
|
|
1615
|
+
# The SCM provider's HTML URL link for this commit.
|
|
1616
|
+
class SCMCommit
|
|
1617
|
+
include ::Google::Protobuf::MessageExts
|
|
1618
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1619
|
+
end
|
|
1620
|
+
|
|
1621
|
+
# Request message for FetchGitRepositoryLinkFileBlame.
|
|
1622
|
+
# @!attribute [rw] name
|
|
1623
|
+
# @return [::String]
|
|
1624
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
1625
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1626
|
+
# @!attribute [rw] ref
|
|
1627
|
+
# @return [::String]
|
|
1628
|
+
# Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag)
|
|
1629
|
+
# from which to fetch the blame.
|
|
1630
|
+
# @!attribute [rw] path
|
|
1631
|
+
# @return [::String]
|
|
1632
|
+
# Required. The file path within the repository.
|
|
1633
|
+
# @!attribute [rw] first_line
|
|
1634
|
+
# @return [::Integer]
|
|
1635
|
+
# Optional. The 1-indexed starting line number of the range to blame
|
|
1636
|
+
# (inclusive). If not specified, blame begins at line 1.
|
|
1637
|
+
# @!attribute [rw] last_line
|
|
1638
|
+
# @return [::Integer]
|
|
1639
|
+
# Optional. The 1-indexed ending line number of the range to blame
|
|
1640
|
+
# (inclusive). If not specified, blame extends to the end of the file.
|
|
1641
|
+
class FetchGitRepositoryLinkFileBlameRequest
|
|
1642
|
+
include ::Google::Protobuf::MessageExts
|
|
1643
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1644
|
+
end
|
|
1645
|
+
|
|
1646
|
+
# BlameRange represents blame information for a range of lines.
|
|
1647
|
+
# @!attribute [rw] first_line
|
|
1648
|
+
# @return [::Integer]
|
|
1649
|
+
# The 1-indexed starting line number of the range (inclusive).
|
|
1650
|
+
# @!attribute [rw] last_line
|
|
1651
|
+
# @return [::Integer]
|
|
1652
|
+
# The 1-indexed ending line number of the range (inclusive).
|
|
1653
|
+
# @!attribute [rw] commit
|
|
1654
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::SCMCommit]
|
|
1655
|
+
# The commit metadata for this line range.
|
|
1656
|
+
class BlameRange
|
|
1657
|
+
include ::Google::Protobuf::MessageExts
|
|
1658
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1659
|
+
end
|
|
1660
|
+
|
|
1661
|
+
# Response message for FetchGitRepositoryLinkFileBlame.
|
|
1662
|
+
# @!attribute [rw] ranges
|
|
1663
|
+
# @return [::Array<::Google::Cloud::DeveloperConnect::V1::BlameRange>]
|
|
1664
|
+
# The list of blame ranges for the file.
|
|
1665
|
+
class FetchGitRepositoryLinkFileBlameResponse
|
|
1666
|
+
include ::Google::Protobuf::MessageExts
|
|
1667
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1668
|
+
end
|
|
1669
|
+
|
|
1670
|
+
# Request message for FetchGitRepositoryLinkPullRequest.
|
|
1671
|
+
# @!attribute [rw] name
|
|
1672
|
+
# @return [::String]
|
|
1673
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
1674
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1675
|
+
# @!attribute [rw] pull_request_id
|
|
1676
|
+
# @return [::String]
|
|
1677
|
+
# Required. The ID of the Pull Request.
|
|
1678
|
+
class FetchGitRepositoryLinkPullRequestRequest
|
|
1679
|
+
include ::Google::Protobuf::MessageExts
|
|
1680
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1681
|
+
end
|
|
1682
|
+
|
|
1683
|
+
# Message representing a SCM Pull Request.
|
|
1684
|
+
# @!attribute [rw] id
|
|
1685
|
+
# @return [::String]
|
|
1686
|
+
# Required. The ID of the PR.
|
|
1687
|
+
# @!attribute [rw] title
|
|
1688
|
+
# @return [::String]
|
|
1689
|
+
# Required. The title of the PR.
|
|
1690
|
+
# @!attribute [rw] body
|
|
1691
|
+
# @return [::String]
|
|
1692
|
+
# Optional. The body description of the PR.
|
|
1693
|
+
# @!attribute [rw] head_ref
|
|
1694
|
+
# @return [::String]
|
|
1695
|
+
# Required. The source commit SHA of the head branch.
|
|
1696
|
+
# @!attribute [rw] base_ref
|
|
1697
|
+
# @return [::String]
|
|
1698
|
+
# Required. The target commit SHA of the base branch.
|
|
1699
|
+
# @!attribute [r] author
|
|
1700
|
+
# @return [::String]
|
|
1701
|
+
# Output only. The username of the author.
|
|
1702
|
+
# @!attribute [r] create_time
|
|
1703
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
1704
|
+
# Output only. When the PR was created.
|
|
1705
|
+
# @!attribute [r] update_time
|
|
1706
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
1707
|
+
# Output only. When the PR was updated.
|
|
1708
|
+
# @!attribute [r] merge_time
|
|
1709
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
1710
|
+
# Output only. When the PR was merged.
|
|
1711
|
+
# @!attribute [r] close_time
|
|
1712
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
1713
|
+
# Output only. When the PR was closed.
|
|
1714
|
+
# @!attribute [r] decline_time
|
|
1715
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
1716
|
+
# Output only. When the PR was declined. Only set for SCM providers that
|
|
1717
|
+
# support declining pull requests. Never set for GitHub, GitHub Enterprise,
|
|
1718
|
+
# GitLab, or GitLab Enterprise, where a pull request closed without being
|
|
1719
|
+
# merged is `CLOSED`.
|
|
1720
|
+
# @!attribute [r] state
|
|
1721
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequest::State]
|
|
1722
|
+
# Output only. The current state of the PR.
|
|
1723
|
+
# @!attribute [r] mergeability
|
|
1724
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequest::Mergeability]
|
|
1725
|
+
# Output only. The mergeability state of the pull request.
|
|
1726
|
+
# @!attribute [r] html_url
|
|
1727
|
+
# @return [::String]
|
|
1728
|
+
# Output only. The HTML URL of the pull request on the SCM provider.
|
|
1729
|
+
class PullRequest
|
|
1730
|
+
include ::Google::Protobuf::MessageExts
|
|
1731
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1732
|
+
|
|
1733
|
+
# The state of the PR.
|
|
1734
|
+
module State
|
|
1735
|
+
# Default value.
|
|
1736
|
+
STATE_UNSPECIFIED = 0
|
|
1737
|
+
|
|
1738
|
+
# The PR is open.
|
|
1739
|
+
OPEN = 1
|
|
1740
|
+
|
|
1741
|
+
# The PR is closed.
|
|
1742
|
+
CLOSED = 2
|
|
1743
|
+
|
|
1744
|
+
# The PR is merged.
|
|
1745
|
+
MERGED = 3
|
|
1746
|
+
|
|
1747
|
+
# The PR is declined. Only used by SCM providers that support declining
|
|
1748
|
+
# pull requests. Never used for GitHub, GitHub Enterprise, GitLab, or
|
|
1749
|
+
# GitLab Enterprise, where a pull request closed without being merged is
|
|
1750
|
+
# `CLOSED`.
|
|
1751
|
+
DECLINED = 4
|
|
1752
|
+
end
|
|
1753
|
+
|
|
1754
|
+
# The mergeability state of a pull request.
|
|
1755
|
+
module Mergeability
|
|
1756
|
+
# Mergeability state is unspecified.
|
|
1757
|
+
MERGEABILITY_UNSPECIFIED = 0
|
|
1758
|
+
|
|
1759
|
+
# The pull request can be merged cleanly without Git conflicts.
|
|
1760
|
+
MERGEABLE = 1
|
|
1761
|
+
|
|
1762
|
+
# The pull request has merge conflicts and cannot be merged cleanly.
|
|
1763
|
+
CONFLICTING = 2
|
|
1764
|
+
|
|
1765
|
+
# The mergeability state is currently being computed asynchronously
|
|
1766
|
+
# by the upstream SCM provider.
|
|
1767
|
+
COMPUTING = 3
|
|
1768
|
+
end
|
|
1769
|
+
end
|
|
1770
|
+
|
|
1771
|
+
# Message representing a SCM Pull Request Comment.
|
|
1772
|
+
# @!attribute [r] id
|
|
1773
|
+
# @return [::String]
|
|
1774
|
+
# Output only. The ID of the comment.
|
|
1775
|
+
# @!attribute [rw] body
|
|
1776
|
+
# @return [::String]
|
|
1777
|
+
# Required. The body of the comment.
|
|
1778
|
+
# @!attribute [r] author
|
|
1779
|
+
# @return [::String]
|
|
1780
|
+
# Output only. The username of the author.
|
|
1781
|
+
# @!attribute [r] create_time
|
|
1782
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
1783
|
+
# Output only. When the comment was created.
|
|
1784
|
+
# @!attribute [r] update_time
|
|
1785
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
1786
|
+
# Output only. When the comment was updated.
|
|
1787
|
+
class PullRequestComment
|
|
1788
|
+
include ::Google::Protobuf::MessageExts
|
|
1789
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1790
|
+
end
|
|
1791
|
+
|
|
1792
|
+
# Request message for AddGitRepositoryLinkPullRequestComment.
|
|
1793
|
+
# @!attribute [rw] name
|
|
1794
|
+
# @return [::String]
|
|
1795
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
1796
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1797
|
+
# @!attribute [rw] pull_request_id
|
|
1798
|
+
# @return [::String]
|
|
1799
|
+
# Required. The ID of the Pull Request.
|
|
1800
|
+
# @!attribute [rw] comment
|
|
1801
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequestComment]
|
|
1802
|
+
# Required. The comment to add.
|
|
1803
|
+
class AddGitRepositoryLinkPullRequestCommentRequest
|
|
1804
|
+
include ::Google::Protobuf::MessageExts
|
|
1805
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1806
|
+
end
|
|
1807
|
+
|
|
1808
|
+
# Message representing a SCM Pull Request Review Comment (inline on diff).
|
|
1809
|
+
# @!attribute [r] id
|
|
1810
|
+
# @return [::String]
|
|
1811
|
+
# Output only. The ID of the comment.
|
|
1812
|
+
# @!attribute [rw] body
|
|
1813
|
+
# @return [::String]
|
|
1814
|
+
# Required. The body of the comment.
|
|
1815
|
+
# @!attribute [rw] path
|
|
1816
|
+
# @return [::String]
|
|
1817
|
+
# Required. The file path to comment on.
|
|
1818
|
+
# @!attribute [rw] first_line
|
|
1819
|
+
# @return [::Integer]
|
|
1820
|
+
# Optional. The first line of the comment range (inclusive). If not
|
|
1821
|
+
# specified, the comment applies only to the `last_line`.
|
|
1822
|
+
# @!attribute [rw] last_line
|
|
1823
|
+
# @return [::Integer]
|
|
1824
|
+
# Required. The last line of the comment range (inclusive). If `first_line`
|
|
1825
|
+
# is not specified, the comment applies only to this line.
|
|
1826
|
+
# @!attribute [rw] side
|
|
1827
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment::DiffSide]
|
|
1828
|
+
# Optional. The side of the diff to comment on. Defaults to HEAD.
|
|
1829
|
+
# @!attribute [r] author
|
|
1830
|
+
# @return [::String]
|
|
1831
|
+
# Output only. The username of the author.
|
|
1832
|
+
# @!attribute [r] create_time
|
|
1833
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
1834
|
+
# Output only. When the comment was created.
|
|
1835
|
+
# @!attribute [r] update_time
|
|
1836
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
1837
|
+
# Output only. When the comment was updated.
|
|
1838
|
+
# @!attribute [r] commit_id
|
|
1839
|
+
# @return [::String]
|
|
1840
|
+
# Output only. The commit SHA the comment was actually applied to.
|
|
1841
|
+
class PullRequestReviewComment
|
|
1842
|
+
include ::Google::Protobuf::MessageExts
|
|
1843
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1844
|
+
|
|
1845
|
+
# DiffSide represents which side of the diff the comment is on.
|
|
1846
|
+
module DiffSide
|
|
1847
|
+
# Default value. This value is unused.
|
|
1848
|
+
DIFF_SIDE_UNSPECIFIED = 0
|
|
1849
|
+
|
|
1850
|
+
# The side of the diff before changes (deleted or modified lines).
|
|
1851
|
+
BASE = 1
|
|
1852
|
+
|
|
1853
|
+
# The side of the diff after changes (added or modified lines).
|
|
1854
|
+
HEAD = 2
|
|
1855
|
+
end
|
|
1856
|
+
end
|
|
1857
|
+
|
|
1858
|
+
# Request message for AddGitRepositoryLinkPullRequestReviewComment.
|
|
1859
|
+
# @!attribute [rw] name
|
|
1860
|
+
# @return [::String]
|
|
1861
|
+
# Required. The resource name of the GitRepositoryLink in the format
|
|
1862
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1863
|
+
# @!attribute [rw] pull_request_id
|
|
1864
|
+
# @return [::String]
|
|
1865
|
+
# Required. The ID of the Pull Request.
|
|
1866
|
+
# @!attribute [rw] comment
|
|
1867
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment]
|
|
1868
|
+
# Required. The review comment to add.
|
|
1869
|
+
# @!attribute [rw] commit_id
|
|
1870
|
+
# @return [::String]
|
|
1871
|
+
# Optional. The commit SHA to comment on. If not specified, defaults to the
|
|
1872
|
+
# HEAD commit of the Pull Request.
|
|
1873
|
+
class AddGitRepositoryLinkPullRequestReviewCommentRequest
|
|
1874
|
+
include ::Google::Protobuf::MessageExts
|
|
1875
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1876
|
+
end
|
|
1877
|
+
|
|
1878
|
+
# Message for modifying SCM Pull Request.
|
|
1879
|
+
# @!attribute [rw] name
|
|
1880
|
+
# @return [::String]
|
|
1881
|
+
# Required. The GitRepositoryLink resource name in the format
|
|
1882
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1883
|
+
# @!attribute [rw] pull_request_id
|
|
1884
|
+
# @return [::String]
|
|
1885
|
+
# Required. The SCM-specific Pull Request identifier (e.g., "45").
|
|
1886
|
+
# @!attribute [rw] title
|
|
1887
|
+
# @return [::String]
|
|
1888
|
+
# Optional. The title of the Pull Request.
|
|
1889
|
+
# @!attribute [rw] body
|
|
1890
|
+
# @return [::String]
|
|
1891
|
+
# Optional. The body description of the Pull Request.
|
|
1892
|
+
# @!attribute [rw] base_ref
|
|
1893
|
+
# @return [::String]
|
|
1894
|
+
# Optional. The target branch to merge into.
|
|
1895
|
+
# @!attribute [rw] state
|
|
1896
|
+
# @return [::Google::Cloud::DeveloperConnect::V1::ModifyGitRepositoryLinkPullRequestRequest::State]
|
|
1897
|
+
# Optional. The state of the Pull Request.
|
|
1898
|
+
class ModifyGitRepositoryLinkPullRequestRequest
|
|
1899
|
+
include ::Google::Protobuf::MessageExts
|
|
1900
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1901
|
+
|
|
1902
|
+
# State represents the state of the pull request.
|
|
1903
|
+
module State
|
|
1904
|
+
# Default value. This value is unused.
|
|
1905
|
+
STATE_UNSPECIFIED = 0
|
|
1906
|
+
|
|
1907
|
+
# The pull request is open.
|
|
1908
|
+
OPEN = 1
|
|
1909
|
+
|
|
1910
|
+
# The pull request is closed.
|
|
1911
|
+
CLOSED = 2
|
|
1912
|
+
end
|
|
1913
|
+
end
|
|
1914
|
+
|
|
1915
|
+
# Request message for FetchGitRepositoryLinkPullRequestList.
|
|
1916
|
+
# @!attribute [rw] name
|
|
1917
|
+
# @return [::String]
|
|
1918
|
+
# Required. The GitRepositoryLink resource name in the format
|
|
1919
|
+
# `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
|
1920
|
+
# @!attribute [rw] filter
|
|
1921
|
+
# @return [::String]
|
|
1922
|
+
# Optional. A filter expression that filters the pull requests returned in
|
|
1923
|
+
# the response. Only a single equality comparison on `state` is supported,
|
|
1924
|
+
# for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and
|
|
1925
|
+
# `MERGED`. `DECLINED` is only supported for SCM providers that support
|
|
1926
|
+
# declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub
|
|
1927
|
+
# Enterprise, GitLab, and GitLab Enterprise. Other values or expressions
|
|
1928
|
+
# return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.
|
|
1929
|
+
# @!attribute [rw] page_size
|
|
1930
|
+
# @return [::Integer]
|
|
1931
|
+
# Optional. Number of results to return in the list. Default is 20. Max is
|
|
1932
|
+
# 100. A page may contain fewer than `page_size` results even when more
|
|
1933
|
+
# results are available; use `next_page_token` to check for more pages.
|
|
1934
|
+
# @!attribute [rw] page_token
|
|
1935
|
+
# @return [::String]
|
|
1936
|
+
# Optional. A page token, received from a previous
|
|
1937
|
+
# `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the
|
|
1938
|
+
# subsequent page.
|
|
1939
|
+
class FetchGitRepositoryLinkPullRequestListRequest
|
|
1940
|
+
include ::Google::Protobuf::MessageExts
|
|
1941
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1942
|
+
end
|
|
1943
|
+
|
|
1944
|
+
# Response message for FetchGitRepositoryLinkPullRequestList.
|
|
1945
|
+
# @!attribute [rw] pull_requests
|
|
1946
|
+
# @return [::Array<::Google::Cloud::DeveloperConnect::V1::PullRequest>]
|
|
1947
|
+
# The list of Pull Requests.
|
|
1948
|
+
# @!attribute [rw] next_page_token
|
|
1949
|
+
# @return [::String]
|
|
1950
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
|
1951
|
+
# If this field is omitted, there are no subsequent pages.
|
|
1952
|
+
class FetchGitRepositoryLinkPullRequestListResponse
|
|
1953
|
+
include ::Google::Protobuf::MessageExts
|
|
1954
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1955
|
+
end
|
|
1956
|
+
|
|
1448
1957
|
# AccountConnector encapsulates what a platform administrator needs to
|
|
1449
1958
|
# configure for users to connect to the service providers, which includes,
|
|
1450
1959
|
# among other fields, the OAuth client ID, client secret, and authorization and
|
|
@@ -1534,6 +2043,18 @@ module Google
|
|
|
1534
2043
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1535
2044
|
end
|
|
1536
2045
|
|
|
2046
|
+
# The level of commit details to return in the response.
|
|
2047
|
+
module CommitView
|
|
2048
|
+
# Unspecified, defaults to BASIC.
|
|
2049
|
+
COMMIT_VIEW_UNSPECIFIED = 0
|
|
2050
|
+
|
|
2051
|
+
# Basic view, returns commit metadata but no file diffs.
|
|
2052
|
+
BASIC = 1
|
|
2053
|
+
|
|
2054
|
+
# Full view, returns commit metadata and file diffs.
|
|
2055
|
+
FULL = 2
|
|
2056
|
+
end
|
|
2057
|
+
|
|
1537
2058
|
# SystemProvider is a list of providers that are owned by Developer Connect.
|
|
1538
2059
|
module SystemProvider
|
|
1539
2060
|
# No system provider specified.
|