google-apis-developerconnect_v1 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/developerconnect_v1/classes.rb +583 -12
- data/lib/google/apis/developerconnect_v1/gem_version.rb +3 -3
- data/lib/google/apis/developerconnect_v1/representations.rb +250 -0
- data/lib/google/apis/developerconnect_v1/service.rb +422 -11
- metadata +2 -2
|
@@ -107,6 +107,64 @@ module Google
|
|
|
107
107
|
end
|
|
108
108
|
end
|
|
109
109
|
|
|
110
|
+
# Request message for AddGitRepositoryLinkPullRequestComment.
|
|
111
|
+
class AddGitRepositoryLinkPullRequestCommentRequest
|
|
112
|
+
include Google::Apis::Core::Hashable
|
|
113
|
+
|
|
114
|
+
# Message representing a SCM Pull Request Comment.
|
|
115
|
+
# Corresponds to the JSON property `comment`
|
|
116
|
+
# @return [Google::Apis::DeveloperconnectV1::PullRequestComment]
|
|
117
|
+
attr_accessor :comment
|
|
118
|
+
|
|
119
|
+
# Required. The ID of the Pull Request.
|
|
120
|
+
# Corresponds to the JSON property `pullRequestId`
|
|
121
|
+
# @return [String]
|
|
122
|
+
attr_accessor :pull_request_id
|
|
123
|
+
|
|
124
|
+
def initialize(**args)
|
|
125
|
+
update!(**args)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Update properties of this object
|
|
129
|
+
def update!(**args)
|
|
130
|
+
@comment = args[:comment] if args.key?(:comment)
|
|
131
|
+
@pull_request_id = args[:pull_request_id] if args.key?(:pull_request_id)
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Request message for AddGitRepositoryLinkPullRequestReviewComment.
|
|
136
|
+
class AddGitRepositoryLinkPullRequestReviewCommentRequest
|
|
137
|
+
include Google::Apis::Core::Hashable
|
|
138
|
+
|
|
139
|
+
# Message representing a SCM Pull Request Review Comment (inline on diff).
|
|
140
|
+
# Corresponds to the JSON property `comment`
|
|
141
|
+
# @return [Google::Apis::DeveloperconnectV1::PullRequestReviewComment]
|
|
142
|
+
attr_accessor :comment
|
|
143
|
+
|
|
144
|
+
# Optional. The SHA of a commit in the pull request to comment on. If not
|
|
145
|
+
# specified, defaults to the HEAD commit of the pull request. Set this only to
|
|
146
|
+
# comment on a specific, known commit in the pull request.
|
|
147
|
+
# Corresponds to the JSON property `commitId`
|
|
148
|
+
# @return [String]
|
|
149
|
+
attr_accessor :commit_id
|
|
150
|
+
|
|
151
|
+
# Required. The ID of the Pull Request.
|
|
152
|
+
# Corresponds to the JSON property `pullRequestId`
|
|
153
|
+
# @return [String]
|
|
154
|
+
attr_accessor :pull_request_id
|
|
155
|
+
|
|
156
|
+
def initialize(**args)
|
|
157
|
+
update!(**args)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Update properties of this object
|
|
161
|
+
def update!(**args)
|
|
162
|
+
@comment = args[:comment] if args.key?(:comment)
|
|
163
|
+
@commit_id = args[:commit_id] if args.key?(:commit_id)
|
|
164
|
+
@pull_request_id = args[:pull_request_id] if args.key?(:pull_request_id)
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
110
168
|
# AppHubService represents the App Hub Service.
|
|
111
169
|
class AppHubService
|
|
112
170
|
include Google::Apis::Core::Hashable
|
|
@@ -425,6 +483,37 @@ module Google
|
|
|
425
483
|
end
|
|
426
484
|
end
|
|
427
485
|
|
|
486
|
+
# BlameRange represents blame information for a range of lines.
|
|
487
|
+
class BlameRange
|
|
488
|
+
include Google::Apis::Core::Hashable
|
|
489
|
+
|
|
490
|
+
# SCMCommit represents commit metadata.
|
|
491
|
+
# Corresponds to the JSON property `commit`
|
|
492
|
+
# @return [Google::Apis::DeveloperconnectV1::ScmCommit]
|
|
493
|
+
attr_accessor :commit
|
|
494
|
+
|
|
495
|
+
# The 1-indexed starting line number of the range (inclusive).
|
|
496
|
+
# Corresponds to the JSON property `firstLine`
|
|
497
|
+
# @return [Fixnum]
|
|
498
|
+
attr_accessor :first_line
|
|
499
|
+
|
|
500
|
+
# The 1-indexed ending line number of the range (inclusive).
|
|
501
|
+
# Corresponds to the JSON property `lastLine`
|
|
502
|
+
# @return [Fixnum]
|
|
503
|
+
attr_accessor :last_line
|
|
504
|
+
|
|
505
|
+
def initialize(**args)
|
|
506
|
+
update!(**args)
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
# Update properties of this object
|
|
510
|
+
def update!(**args)
|
|
511
|
+
@commit = args[:commit] if args.key?(:commit)
|
|
512
|
+
@first_line = args[:first_line] if args.key?(:first_line)
|
|
513
|
+
@last_line = args[:last_line] if args.key?(:last_line)
|
|
514
|
+
end
|
|
515
|
+
end
|
|
516
|
+
|
|
428
517
|
# The request message for Operations.CancelOperation.
|
|
429
518
|
class CancelOperationRequest
|
|
430
519
|
include Google::Apis::Core::Hashable
|
|
@@ -457,7 +546,7 @@ module Google
|
|
|
457
546
|
# @return [Google::Apis::DeveloperconnectV1::BitbucketDataCenterConfig]
|
|
458
547
|
attr_accessor :bitbucket_data_center_config
|
|
459
548
|
|
|
460
|
-
# Output only.
|
|
549
|
+
# Output only. Create timestamp.
|
|
461
550
|
# Corresponds to the JSON property `createTime`
|
|
462
551
|
# @return [String]
|
|
463
552
|
attr_accessor :create_time
|
|
@@ -468,7 +557,7 @@ module Google
|
|
|
468
557
|
# @return [Google::Apis::DeveloperconnectV1::CryptoKeyConfig]
|
|
469
558
|
attr_accessor :crypto_key_config
|
|
470
559
|
|
|
471
|
-
# Output only.
|
|
560
|
+
# Output only. Delete timestamp.
|
|
472
561
|
# Corresponds to the JSON property `deleteTime`
|
|
473
562
|
# @return [String]
|
|
474
563
|
attr_accessor :delete_time
|
|
@@ -553,7 +642,7 @@ module Google
|
|
|
553
642
|
# @return [String]
|
|
554
643
|
attr_accessor :uid
|
|
555
644
|
|
|
556
|
-
# Output only.
|
|
645
|
+
# Output only. Update timestamp.
|
|
557
646
|
# Corresponds to the JSON property `updateTime`
|
|
558
647
|
# @return [String]
|
|
559
648
|
attr_accessor :update_time
|
|
@@ -772,6 +861,25 @@ module Google
|
|
|
772
861
|
end
|
|
773
862
|
end
|
|
774
863
|
|
|
864
|
+
# Response message for DiffGitRepositoryLinkCommit.
|
|
865
|
+
class DiffGitRepositoryLinkCommitResponse
|
|
866
|
+
include Google::Apis::Core::Hashable
|
|
867
|
+
|
|
868
|
+
# The file diff extracted from the unified diff.
|
|
869
|
+
# Corresponds to the JSON property `files`
|
|
870
|
+
# @return [Array<Google::Apis::DeveloperconnectV1::FileDiff>]
|
|
871
|
+
attr_accessor :files
|
|
872
|
+
|
|
873
|
+
def initialize(**args)
|
|
874
|
+
update!(**args)
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
# Update properties of this object
|
|
878
|
+
def update!(**args)
|
|
879
|
+
@files = args[:files] if args.key?(:files)
|
|
880
|
+
end
|
|
881
|
+
end
|
|
882
|
+
|
|
775
883
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
776
884
|
# messages in your APIs. A typical example is to use it as the request or the
|
|
777
885
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
|
@@ -908,6 +1016,104 @@ module Google
|
|
|
908
1016
|
end
|
|
909
1017
|
end
|
|
910
1018
|
|
|
1019
|
+
# Response message for FetchGitRepositoryLinkCommitList.
|
|
1020
|
+
class FetchGitRepositoryLinkCommitListResponse
|
|
1021
|
+
include Google::Apis::Core::Hashable
|
|
1022
|
+
|
|
1023
|
+
# The list of commit metadata.
|
|
1024
|
+
# Corresponds to the JSON property `commits`
|
|
1025
|
+
# @return [Array<Google::Apis::DeveloperconnectV1::ScmCommit>]
|
|
1026
|
+
attr_accessor :commits
|
|
1027
|
+
|
|
1028
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
|
1029
|
+
# field is omitted, there are no subsequent pages.
|
|
1030
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1031
|
+
# @return [String]
|
|
1032
|
+
attr_accessor :next_page_token
|
|
1033
|
+
|
|
1034
|
+
def initialize(**args)
|
|
1035
|
+
update!(**args)
|
|
1036
|
+
end
|
|
1037
|
+
|
|
1038
|
+
# Update properties of this object
|
|
1039
|
+
def update!(**args)
|
|
1040
|
+
@commits = args[:commits] if args.key?(:commits)
|
|
1041
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1042
|
+
end
|
|
1043
|
+
end
|
|
1044
|
+
|
|
1045
|
+
# Response message for FetchGitRepositoryLinkCommit.
|
|
1046
|
+
class FetchGitRepositoryLinkCommitResponse
|
|
1047
|
+
include Google::Apis::Core::Hashable
|
|
1048
|
+
|
|
1049
|
+
# SCMCommit represents commit metadata.
|
|
1050
|
+
# Corresponds to the JSON property `commit`
|
|
1051
|
+
# @return [Google::Apis::DeveloperconnectV1::ScmCommit]
|
|
1052
|
+
attr_accessor :commit
|
|
1053
|
+
|
|
1054
|
+
# List of file changes and patch diffs. Omitted when view is `BASIC`. Patch
|
|
1055
|
+
# diffs (`FileDiff.patch`) are only populated when `path_filters` is specified
|
|
1056
|
+
# in the request.
|
|
1057
|
+
# Corresponds to the JSON property `files`
|
|
1058
|
+
# @return [Array<Google::Apis::DeveloperconnectV1::FileDiff>]
|
|
1059
|
+
attr_accessor :files
|
|
1060
|
+
|
|
1061
|
+
def initialize(**args)
|
|
1062
|
+
update!(**args)
|
|
1063
|
+
end
|
|
1064
|
+
|
|
1065
|
+
# Update properties of this object
|
|
1066
|
+
def update!(**args)
|
|
1067
|
+
@commit = args[:commit] if args.key?(:commit)
|
|
1068
|
+
@files = args[:files] if args.key?(:files)
|
|
1069
|
+
end
|
|
1070
|
+
end
|
|
1071
|
+
|
|
1072
|
+
# Response message for FetchGitRepositoryLinkFileBlame.
|
|
1073
|
+
class FetchGitRepositoryLinkFileBlameResponse
|
|
1074
|
+
include Google::Apis::Core::Hashable
|
|
1075
|
+
|
|
1076
|
+
# The list of blame ranges for the file.
|
|
1077
|
+
# Corresponds to the JSON property `ranges`
|
|
1078
|
+
# @return [Array<Google::Apis::DeveloperconnectV1::BlameRange>]
|
|
1079
|
+
attr_accessor :ranges
|
|
1080
|
+
|
|
1081
|
+
def initialize(**args)
|
|
1082
|
+
update!(**args)
|
|
1083
|
+
end
|
|
1084
|
+
|
|
1085
|
+
# Update properties of this object
|
|
1086
|
+
def update!(**args)
|
|
1087
|
+
@ranges = args[:ranges] if args.key?(:ranges)
|
|
1088
|
+
end
|
|
1089
|
+
end
|
|
1090
|
+
|
|
1091
|
+
# Response message for FetchGitRepositoryLinkPullRequestList.
|
|
1092
|
+
class FetchGitRepositoryLinkPullRequestListResponse
|
|
1093
|
+
include Google::Apis::Core::Hashable
|
|
1094
|
+
|
|
1095
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
|
1096
|
+
# field is omitted, there are no subsequent pages.
|
|
1097
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1098
|
+
# @return [String]
|
|
1099
|
+
attr_accessor :next_page_token
|
|
1100
|
+
|
|
1101
|
+
# The list of pull requests.
|
|
1102
|
+
# Corresponds to the JSON property `pullRequests`
|
|
1103
|
+
# @return [Array<Google::Apis::DeveloperconnectV1::PullRequest>]
|
|
1104
|
+
attr_accessor :pull_requests
|
|
1105
|
+
|
|
1106
|
+
def initialize(**args)
|
|
1107
|
+
update!(**args)
|
|
1108
|
+
end
|
|
1109
|
+
|
|
1110
|
+
# Update properties of this object
|
|
1111
|
+
def update!(**args)
|
|
1112
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1113
|
+
@pull_requests = args[:pull_requests] if args.key?(:pull_requests)
|
|
1114
|
+
end
|
|
1115
|
+
end
|
|
1116
|
+
|
|
911
1117
|
# Response message for FetchLinkableGitRepositories.
|
|
912
1118
|
class FetchLinkableGitRepositoriesResponse
|
|
913
1119
|
include Google::Apis::Core::Hashable
|
|
@@ -1074,6 +1280,38 @@ module Google
|
|
|
1074
1280
|
end
|
|
1075
1281
|
end
|
|
1076
1282
|
|
|
1283
|
+
# Message for a file diff.
|
|
1284
|
+
class FileDiff
|
|
1285
|
+
include Google::Apis::Core::Hashable
|
|
1286
|
+
|
|
1287
|
+
# Standard unified diff patch hunk for the file. Only populated when `
|
|
1288
|
+
# path_filters` is specified in the request; otherwise empty.
|
|
1289
|
+
# Corresponds to the JSON property `patch`
|
|
1290
|
+
# @return [String]
|
|
1291
|
+
attr_accessor :patch
|
|
1292
|
+
|
|
1293
|
+
# Relative path to the file in the repository.
|
|
1294
|
+
# Corresponds to the JSON property `path`
|
|
1295
|
+
# @return [String]
|
|
1296
|
+
attr_accessor :path
|
|
1297
|
+
|
|
1298
|
+
# Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
|
|
1299
|
+
# Corresponds to the JSON property `status`
|
|
1300
|
+
# @return [String]
|
|
1301
|
+
attr_accessor :status
|
|
1302
|
+
|
|
1303
|
+
def initialize(**args)
|
|
1304
|
+
update!(**args)
|
|
1305
|
+
end
|
|
1306
|
+
|
|
1307
|
+
# Update properties of this object
|
|
1308
|
+
def update!(**args)
|
|
1309
|
+
@patch = args[:patch] if args.key?(:patch)
|
|
1310
|
+
@path = args[:path] if args.key?(:path)
|
|
1311
|
+
@status = args[:status] if args.key?(:status)
|
|
1312
|
+
end
|
|
1313
|
+
end
|
|
1314
|
+
|
|
1077
1315
|
# Message for responding to finishing an OAuth flow.
|
|
1078
1316
|
class FinishOAuthResponse
|
|
1079
1317
|
include Google::Apis::Core::Hashable
|
|
@@ -1394,8 +1632,8 @@ module Google
|
|
|
1394
1632
|
class GitProxyConfig
|
|
1395
1633
|
include Google::Apis::Core::Hashable
|
|
1396
1634
|
|
|
1397
|
-
# Optional. Setting this to true allows the
|
|
1398
|
-
#
|
|
1635
|
+
# Optional. Setting this to true allows the Git proxy to be used for performing
|
|
1636
|
+
# Git operations on the repositories linked in the connection.
|
|
1399
1637
|
# Corresponds to the JSON property `enabled`
|
|
1400
1638
|
# @return [Boolean]
|
|
1401
1639
|
attr_accessor :enabled
|
|
@@ -1434,12 +1672,12 @@ module Google
|
|
|
1434
1672
|
# @return [String]
|
|
1435
1673
|
attr_accessor :clone_uri
|
|
1436
1674
|
|
|
1437
|
-
# Output only.
|
|
1675
|
+
# Output only. Create timestamp.
|
|
1438
1676
|
# Corresponds to the JSON property `createTime`
|
|
1439
1677
|
# @return [String]
|
|
1440
1678
|
attr_accessor :create_time
|
|
1441
1679
|
|
|
1442
|
-
# Output only.
|
|
1680
|
+
# Output only. Delete timestamp.
|
|
1443
1681
|
# Corresponds to the JSON property `deleteTime`
|
|
1444
1682
|
# @return [String]
|
|
1445
1683
|
attr_accessor :delete_time
|
|
@@ -1451,8 +1689,8 @@ module Google
|
|
|
1451
1689
|
# @return [String]
|
|
1452
1690
|
attr_accessor :etag
|
|
1453
1691
|
|
|
1454
|
-
# Output only. URI to access the linked repository through the Git
|
|
1455
|
-
# field is only populated if the
|
|
1692
|
+
# Output only. URI to access the linked repository through the Git proxy. This
|
|
1693
|
+
# field is only populated if the Git proxy is enabled for the connection.
|
|
1456
1694
|
# Corresponds to the JSON property `gitProxyUri`
|
|
1457
1695
|
# @return [String]
|
|
1458
1696
|
attr_accessor :git_proxy_uri
|
|
@@ -1480,7 +1718,7 @@ module Google
|
|
|
1480
1718
|
# @return [String]
|
|
1481
1719
|
attr_accessor :uid
|
|
1482
1720
|
|
|
1483
|
-
# Output only.
|
|
1721
|
+
# Output only. Update timestamp.
|
|
1484
1722
|
# Corresponds to the JSON property `updateTime`
|
|
1485
1723
|
# @return [String]
|
|
1486
1724
|
attr_accessor :update_time
|
|
@@ -1842,7 +2080,7 @@ module Google
|
|
|
1842
2080
|
class ListConnectionsResponse
|
|
1843
2081
|
include Google::Apis::Core::Hashable
|
|
1844
2082
|
|
|
1845
|
-
# The list of
|
|
2083
|
+
# The list of Connections.
|
|
1846
2084
|
# Corresponds to the JSON property `connections`
|
|
1847
2085
|
# @return [Array<Google::Apis::DeveloperconnectV1::Connection>]
|
|
1848
2086
|
attr_accessor :connections
|
|
@@ -1899,7 +2137,7 @@ module Google
|
|
|
1899
2137
|
class ListGitRepositoryLinksResponse
|
|
1900
2138
|
include Google::Apis::Core::Hashable
|
|
1901
2139
|
|
|
1902
|
-
# The list of GitRepositoryLinks
|
|
2140
|
+
# The list of GitRepositoryLinks.
|
|
1903
2141
|
# Corresponds to the JSON property `gitRepositoryLinks`
|
|
1904
2142
|
# @return [Array<Google::Apis::DeveloperconnectV1::GitRepositoryLink>]
|
|
1905
2143
|
attr_accessor :git_repository_links
|
|
@@ -2129,6 +2367,49 @@ module Google
|
|
|
2129
2367
|
end
|
|
2130
2368
|
end
|
|
2131
2369
|
|
|
2370
|
+
# Message for modifying SCM Pull Request.
|
|
2371
|
+
class ModifyGitRepositoryLinkPullRequestRequest
|
|
2372
|
+
include Google::Apis::Core::Hashable
|
|
2373
|
+
|
|
2374
|
+
# Optional. The target branch to merge into.
|
|
2375
|
+
# Corresponds to the JSON property `baseRef`
|
|
2376
|
+
# @return [String]
|
|
2377
|
+
attr_accessor :base_ref
|
|
2378
|
+
|
|
2379
|
+
# Optional. The body description of the Pull Request.
|
|
2380
|
+
# Corresponds to the JSON property `body`
|
|
2381
|
+
# @return [String]
|
|
2382
|
+
attr_accessor :body
|
|
2383
|
+
|
|
2384
|
+
# Required. The SCM-specific pull request identifier (for example, "45").
|
|
2385
|
+
# Corresponds to the JSON property `pullRequestId`
|
|
2386
|
+
# @return [String]
|
|
2387
|
+
attr_accessor :pull_request_id
|
|
2388
|
+
|
|
2389
|
+
# Optional. The state of the Pull Request.
|
|
2390
|
+
# Corresponds to the JSON property `state`
|
|
2391
|
+
# @return [String]
|
|
2392
|
+
attr_accessor :state
|
|
2393
|
+
|
|
2394
|
+
# Optional. The title of the Pull Request.
|
|
2395
|
+
# Corresponds to the JSON property `title`
|
|
2396
|
+
# @return [String]
|
|
2397
|
+
attr_accessor :title
|
|
2398
|
+
|
|
2399
|
+
def initialize(**args)
|
|
2400
|
+
update!(**args)
|
|
2401
|
+
end
|
|
2402
|
+
|
|
2403
|
+
# Update properties of this object
|
|
2404
|
+
def update!(**args)
|
|
2405
|
+
@base_ref = args[:base_ref] if args.key?(:base_ref)
|
|
2406
|
+
@body = args[:body] if args.key?(:body)
|
|
2407
|
+
@pull_request_id = args[:pull_request_id] if args.key?(:pull_request_id)
|
|
2408
|
+
@state = args[:state] if args.key?(:state)
|
|
2409
|
+
@title = args[:title] if args.key?(:title)
|
|
2410
|
+
end
|
|
2411
|
+
end
|
|
2412
|
+
|
|
2132
2413
|
# Represents an OAuth token of the account that authorized the Connection, and
|
|
2133
2414
|
# associated metadata.
|
|
2134
2415
|
class OAuthCredential
|
|
@@ -2158,6 +2439,25 @@ module Google
|
|
|
2158
2439
|
end
|
|
2159
2440
|
end
|
|
2160
2441
|
|
|
2442
|
+
# Message for opening SCM Pull Request.
|
|
2443
|
+
class OpenGitRepositoryLinkPullRequestRequest
|
|
2444
|
+
include Google::Apis::Core::Hashable
|
|
2445
|
+
|
|
2446
|
+
# Message representing a SCM Pull Request.
|
|
2447
|
+
# Corresponds to the JSON property `pullRequest`
|
|
2448
|
+
# @return [Google::Apis::DeveloperconnectV1::PullRequest]
|
|
2449
|
+
attr_accessor :pull_request
|
|
2450
|
+
|
|
2451
|
+
def initialize(**args)
|
|
2452
|
+
update!(**args)
|
|
2453
|
+
end
|
|
2454
|
+
|
|
2455
|
+
# Update properties of this object
|
|
2456
|
+
def update!(**args)
|
|
2457
|
+
@pull_request = args[:pull_request] if args.key?(:pull_request)
|
|
2458
|
+
end
|
|
2459
|
+
end
|
|
2460
|
+
|
|
2161
2461
|
# This resource represents a long-running operation that is the result of a
|
|
2162
2462
|
# network API call.
|
|
2163
2463
|
class Operation
|
|
@@ -2526,6 +2826,228 @@ module Google
|
|
|
2526
2826
|
end
|
|
2527
2827
|
end
|
|
2528
2828
|
|
|
2829
|
+
# Message representing a SCM Pull Request.
|
|
2830
|
+
class PullRequest
|
|
2831
|
+
include Google::Apis::Core::Hashable
|
|
2832
|
+
|
|
2833
|
+
# Output only. The username of the author.
|
|
2834
|
+
# Corresponds to the JSON property `author`
|
|
2835
|
+
# @return [String]
|
|
2836
|
+
attr_accessor :author
|
|
2837
|
+
|
|
2838
|
+
# Required. The name of the target (base) branch that the changes are merged
|
|
2839
|
+
# into.
|
|
2840
|
+
# Corresponds to the JSON property `baseRef`
|
|
2841
|
+
# @return [String]
|
|
2842
|
+
attr_accessor :base_ref
|
|
2843
|
+
|
|
2844
|
+
# Optional. The body description of the PR.
|
|
2845
|
+
# Corresponds to the JSON property `body`
|
|
2846
|
+
# @return [String]
|
|
2847
|
+
attr_accessor :body
|
|
2848
|
+
|
|
2849
|
+
# Output only. When the PR was closed.
|
|
2850
|
+
# Corresponds to the JSON property `closeTime`
|
|
2851
|
+
# @return [String]
|
|
2852
|
+
attr_accessor :close_time
|
|
2853
|
+
|
|
2854
|
+
# Output only. When the PR was created.
|
|
2855
|
+
# Corresponds to the JSON property `createTime`
|
|
2856
|
+
# @return [String]
|
|
2857
|
+
attr_accessor :create_time
|
|
2858
|
+
|
|
2859
|
+
# Output only. When the PR was declined. Only set for SCM providers that support
|
|
2860
|
+
# declining pull requests. Never set for GitHub, GitHub Enterprise, GitLab, or
|
|
2861
|
+
# GitLab Enterprise, where a pull request closed without being merged is `CLOSED`
|
|
2862
|
+
# .
|
|
2863
|
+
# Corresponds to the JSON property `declineTime`
|
|
2864
|
+
# @return [String]
|
|
2865
|
+
attr_accessor :decline_time
|
|
2866
|
+
|
|
2867
|
+
# Required. The name of the source (head) branch that contains the changes.
|
|
2868
|
+
# Corresponds to the JSON property `headRef`
|
|
2869
|
+
# @return [String]
|
|
2870
|
+
attr_accessor :head_ref
|
|
2871
|
+
|
|
2872
|
+
# Output only. The HTML URL of the pull request on the SCM provider.
|
|
2873
|
+
# Corresponds to the JSON property `htmlUrl`
|
|
2874
|
+
# @return [String]
|
|
2875
|
+
attr_accessor :html_url
|
|
2876
|
+
|
|
2877
|
+
# Optional. The ID of the PR, assigned by the SCM provider (for example, "45").
|
|
2878
|
+
# Ignored by `OpenGitRepositoryLinkPullRequest`.
|
|
2879
|
+
# Corresponds to the JSON property `id`
|
|
2880
|
+
# @return [String]
|
|
2881
|
+
attr_accessor :id
|
|
2882
|
+
|
|
2883
|
+
# Output only. When the PR was merged.
|
|
2884
|
+
# Corresponds to the JSON property `mergeTime`
|
|
2885
|
+
# @return [String]
|
|
2886
|
+
attr_accessor :merge_time
|
|
2887
|
+
|
|
2888
|
+
# Output only. The mergeability state of the pull request.
|
|
2889
|
+
# Corresponds to the JSON property `mergeability`
|
|
2890
|
+
# @return [String]
|
|
2891
|
+
attr_accessor :mergeability
|
|
2892
|
+
|
|
2893
|
+
# Output only. The current state of the PR.
|
|
2894
|
+
# Corresponds to the JSON property `state`
|
|
2895
|
+
# @return [String]
|
|
2896
|
+
attr_accessor :state
|
|
2897
|
+
|
|
2898
|
+
# Required. The title of the PR.
|
|
2899
|
+
# Corresponds to the JSON property `title`
|
|
2900
|
+
# @return [String]
|
|
2901
|
+
attr_accessor :title
|
|
2902
|
+
|
|
2903
|
+
# Output only. When the PR was updated.
|
|
2904
|
+
# Corresponds to the JSON property `updateTime`
|
|
2905
|
+
# @return [String]
|
|
2906
|
+
attr_accessor :update_time
|
|
2907
|
+
|
|
2908
|
+
def initialize(**args)
|
|
2909
|
+
update!(**args)
|
|
2910
|
+
end
|
|
2911
|
+
|
|
2912
|
+
# Update properties of this object
|
|
2913
|
+
def update!(**args)
|
|
2914
|
+
@author = args[:author] if args.key?(:author)
|
|
2915
|
+
@base_ref = args[:base_ref] if args.key?(:base_ref)
|
|
2916
|
+
@body = args[:body] if args.key?(:body)
|
|
2917
|
+
@close_time = args[:close_time] if args.key?(:close_time)
|
|
2918
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2919
|
+
@decline_time = args[:decline_time] if args.key?(:decline_time)
|
|
2920
|
+
@head_ref = args[:head_ref] if args.key?(:head_ref)
|
|
2921
|
+
@html_url = args[:html_url] if args.key?(:html_url)
|
|
2922
|
+
@id = args[:id] if args.key?(:id)
|
|
2923
|
+
@merge_time = args[:merge_time] if args.key?(:merge_time)
|
|
2924
|
+
@mergeability = args[:mergeability] if args.key?(:mergeability)
|
|
2925
|
+
@state = args[:state] if args.key?(:state)
|
|
2926
|
+
@title = args[:title] if args.key?(:title)
|
|
2927
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
2928
|
+
end
|
|
2929
|
+
end
|
|
2930
|
+
|
|
2931
|
+
# Message representing a SCM Pull Request Comment.
|
|
2932
|
+
class PullRequestComment
|
|
2933
|
+
include Google::Apis::Core::Hashable
|
|
2934
|
+
|
|
2935
|
+
# Output only. The username of the author.
|
|
2936
|
+
# Corresponds to the JSON property `author`
|
|
2937
|
+
# @return [String]
|
|
2938
|
+
attr_accessor :author
|
|
2939
|
+
|
|
2940
|
+
# Required. The body of the comment.
|
|
2941
|
+
# Corresponds to the JSON property `body`
|
|
2942
|
+
# @return [String]
|
|
2943
|
+
attr_accessor :body
|
|
2944
|
+
|
|
2945
|
+
# Output only. When the comment was created.
|
|
2946
|
+
# Corresponds to the JSON property `createTime`
|
|
2947
|
+
# @return [String]
|
|
2948
|
+
attr_accessor :create_time
|
|
2949
|
+
|
|
2950
|
+
# Output only. The ID of the comment.
|
|
2951
|
+
# Corresponds to the JSON property `id`
|
|
2952
|
+
# @return [String]
|
|
2953
|
+
attr_accessor :id
|
|
2954
|
+
|
|
2955
|
+
# Output only. When the comment was updated.
|
|
2956
|
+
# Corresponds to the JSON property `updateTime`
|
|
2957
|
+
# @return [String]
|
|
2958
|
+
attr_accessor :update_time
|
|
2959
|
+
|
|
2960
|
+
def initialize(**args)
|
|
2961
|
+
update!(**args)
|
|
2962
|
+
end
|
|
2963
|
+
|
|
2964
|
+
# Update properties of this object
|
|
2965
|
+
def update!(**args)
|
|
2966
|
+
@author = args[:author] if args.key?(:author)
|
|
2967
|
+
@body = args[:body] if args.key?(:body)
|
|
2968
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2969
|
+
@id = args[:id] if args.key?(:id)
|
|
2970
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
2971
|
+
end
|
|
2972
|
+
end
|
|
2973
|
+
|
|
2974
|
+
# Message representing a SCM Pull Request Review Comment (inline on diff).
|
|
2975
|
+
class PullRequestReviewComment
|
|
2976
|
+
include Google::Apis::Core::Hashable
|
|
2977
|
+
|
|
2978
|
+
# Output only. The username of the author.
|
|
2979
|
+
# Corresponds to the JSON property `author`
|
|
2980
|
+
# @return [String]
|
|
2981
|
+
attr_accessor :author
|
|
2982
|
+
|
|
2983
|
+
# Required. The body of the comment.
|
|
2984
|
+
# Corresponds to the JSON property `body`
|
|
2985
|
+
# @return [String]
|
|
2986
|
+
attr_accessor :body
|
|
2987
|
+
|
|
2988
|
+
# Output only. The commit SHA the comment was actually applied to. Ignored in
|
|
2989
|
+
# requests; to choose the commit to comment on, set `
|
|
2990
|
+
# AddGitRepositoryLinkPullRequestReviewCommentRequest.commit_id`.
|
|
2991
|
+
# Corresponds to the JSON property `commitId`
|
|
2992
|
+
# @return [String]
|
|
2993
|
+
attr_accessor :commit_id
|
|
2994
|
+
|
|
2995
|
+
# Output only. When the comment was created.
|
|
2996
|
+
# Corresponds to the JSON property `createTime`
|
|
2997
|
+
# @return [String]
|
|
2998
|
+
attr_accessor :create_time
|
|
2999
|
+
|
|
3000
|
+
# Optional. The first line of the comment range (inclusive). If not specified,
|
|
3001
|
+
# the comment applies only to the `last_line`.
|
|
3002
|
+
# Corresponds to the JSON property `firstLine`
|
|
3003
|
+
# @return [Fixnum]
|
|
3004
|
+
attr_accessor :first_line
|
|
3005
|
+
|
|
3006
|
+
# Output only. The ID of the comment.
|
|
3007
|
+
# Corresponds to the JSON property `id`
|
|
3008
|
+
# @return [String]
|
|
3009
|
+
attr_accessor :id
|
|
3010
|
+
|
|
3011
|
+
# Required. The last line of the comment range (inclusive). If `first_line` is
|
|
3012
|
+
# not specified, the comment applies only to this line.
|
|
3013
|
+
# Corresponds to the JSON property `lastLine`
|
|
3014
|
+
# @return [Fixnum]
|
|
3015
|
+
attr_accessor :last_line
|
|
3016
|
+
|
|
3017
|
+
# Required. The file path to comment on.
|
|
3018
|
+
# Corresponds to the JSON property `path`
|
|
3019
|
+
# @return [String]
|
|
3020
|
+
attr_accessor :path
|
|
3021
|
+
|
|
3022
|
+
# Optional. The side of the diff to comment on. Defaults to HEAD.
|
|
3023
|
+
# Corresponds to the JSON property `side`
|
|
3024
|
+
# @return [String]
|
|
3025
|
+
attr_accessor :side
|
|
3026
|
+
|
|
3027
|
+
# Output only. When the comment was updated.
|
|
3028
|
+
# Corresponds to the JSON property `updateTime`
|
|
3029
|
+
# @return [String]
|
|
3030
|
+
attr_accessor :update_time
|
|
3031
|
+
|
|
3032
|
+
def initialize(**args)
|
|
3033
|
+
update!(**args)
|
|
3034
|
+
end
|
|
3035
|
+
|
|
3036
|
+
# Update properties of this object
|
|
3037
|
+
def update!(**args)
|
|
3038
|
+
@author = args[:author] if args.key?(:author)
|
|
3039
|
+
@body = args[:body] if args.key?(:body)
|
|
3040
|
+
@commit_id = args[:commit_id] if args.key?(:commit_id)
|
|
3041
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
3042
|
+
@first_line = args[:first_line] if args.key?(:first_line)
|
|
3043
|
+
@id = args[:id] if args.key?(:id)
|
|
3044
|
+
@last_line = args[:last_line] if args.key?(:last_line)
|
|
3045
|
+
@path = args[:path] if args.key?(:path)
|
|
3046
|
+
@side = args[:side] if args.key?(:side)
|
|
3047
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
3048
|
+
end
|
|
3049
|
+
end
|
|
3050
|
+
|
|
2529
3051
|
# RuntimeConfig represents the runtimes where the application is deployed.
|
|
2530
3052
|
class RuntimeConfig
|
|
2531
3053
|
include Google::Apis::Core::Hashable
|
|
@@ -2576,6 +3098,55 @@ module Google
|
|
|
2576
3098
|
end
|
|
2577
3099
|
end
|
|
2578
3100
|
|
|
3101
|
+
# SCMCommit represents commit metadata.
|
|
3102
|
+
class ScmCommit
|
|
3103
|
+
include Google::Apis::Core::Hashable
|
|
3104
|
+
|
|
3105
|
+
# The author's display name.
|
|
3106
|
+
# Corresponds to the JSON property `author`
|
|
3107
|
+
# @return [String]
|
|
3108
|
+
attr_accessor :author
|
|
3109
|
+
|
|
3110
|
+
# The author's email address.
|
|
3111
|
+
# Corresponds to the JSON property `authorEmail`
|
|
3112
|
+
# @return [String]
|
|
3113
|
+
attr_accessor :author_email
|
|
3114
|
+
|
|
3115
|
+
# Timestamp when the commit was authored.
|
|
3116
|
+
# Corresponds to the JSON property `commitTime`
|
|
3117
|
+
# @return [String]
|
|
3118
|
+
attr_accessor :commit_time
|
|
3119
|
+
|
|
3120
|
+
# Commit message text.
|
|
3121
|
+
# Corresponds to the JSON property `message`
|
|
3122
|
+
# @return [String]
|
|
3123
|
+
attr_accessor :message
|
|
3124
|
+
|
|
3125
|
+
# Full 40-character SCM commit SHA.
|
|
3126
|
+
# Corresponds to the JSON property `sha`
|
|
3127
|
+
# @return [String]
|
|
3128
|
+
attr_accessor :sha
|
|
3129
|
+
|
|
3130
|
+
# The SCM provider's HTML URL link for this commit.
|
|
3131
|
+
# Corresponds to the JSON property `url`
|
|
3132
|
+
# @return [String]
|
|
3133
|
+
attr_accessor :url
|
|
3134
|
+
|
|
3135
|
+
def initialize(**args)
|
|
3136
|
+
update!(**args)
|
|
3137
|
+
end
|
|
3138
|
+
|
|
3139
|
+
# Update properties of this object
|
|
3140
|
+
def update!(**args)
|
|
3141
|
+
@author = args[:author] if args.key?(:author)
|
|
3142
|
+
@author_email = args[:author_email] if args.key?(:author_email)
|
|
3143
|
+
@commit_time = args[:commit_time] if args.key?(:commit_time)
|
|
3144
|
+
@message = args[:message] if args.key?(:message)
|
|
3145
|
+
@sha = args[:sha] if args.key?(:sha)
|
|
3146
|
+
@url = args[:url] if args.key?(:url)
|
|
3147
|
+
end
|
|
3148
|
+
end
|
|
3149
|
+
|
|
2579
3150
|
# Configuration for connections to Secure Source Manager instance
|
|
2580
3151
|
class SecureSourceManagerInstanceConfig
|
|
2581
3152
|
include Google::Apis::Core::Hashable
|