aws-sdk-codegurureviewer 1.7.1 → 1.12.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/lib/aws-sdk-codegurureviewer.rb +5 -2
- data/lib/aws-sdk-codegurureviewer/client.rb +284 -82
- data/lib/aws-sdk-codegurureviewer/client_api.rb +43 -0
- data/lib/aws-sdk-codegurureviewer/errors.rb +2 -0
- data/lib/aws-sdk-codegurureviewer/resource.rb +2 -0
- data/lib/aws-sdk-codegurureviewer/types.rb +585 -98
- metadata +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
|
2
4
|
#
|
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
|
@@ -16,15 +18,20 @@ module Aws::CodeGuruReviewer
|
|
|
16
18
|
AssociateRepositoryRequest = Shapes::StructureShape.new(name: 'AssociateRepositoryRequest')
|
|
17
19
|
AssociateRepositoryResponse = Shapes::StructureShape.new(name: 'AssociateRepositoryResponse')
|
|
18
20
|
AssociationId = Shapes::StringShape.new(name: 'AssociationId')
|
|
21
|
+
BranchName = Shapes::StringShape.new(name: 'BranchName')
|
|
19
22
|
ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
|
|
20
23
|
CodeCommitRepository = Shapes::StructureShape.new(name: 'CodeCommitRepository')
|
|
21
24
|
CodeReview = Shapes::StructureShape.new(name: 'CodeReview')
|
|
25
|
+
CodeReviewName = Shapes::StringShape.new(name: 'CodeReviewName')
|
|
22
26
|
CodeReviewSummaries = Shapes::ListShape.new(name: 'CodeReviewSummaries')
|
|
23
27
|
CodeReviewSummary = Shapes::StructureShape.new(name: 'CodeReviewSummary')
|
|
28
|
+
CodeReviewType = Shapes::StructureShape.new(name: 'CodeReviewType')
|
|
24
29
|
CommitDiffSourceCodeType = Shapes::StructureShape.new(name: 'CommitDiffSourceCodeType')
|
|
25
30
|
CommitId = Shapes::StringShape.new(name: 'CommitId')
|
|
26
31
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
|
27
32
|
ConnectionArn = Shapes::StringShape.new(name: 'ConnectionArn')
|
|
33
|
+
CreateCodeReviewRequest = Shapes::StructureShape.new(name: 'CreateCodeReviewRequest')
|
|
34
|
+
CreateCodeReviewResponse = Shapes::StructureShape.new(name: 'CreateCodeReviewResponse')
|
|
28
35
|
DescribeCodeReviewRequest = Shapes::StructureShape.new(name: 'DescribeCodeReviewRequest')
|
|
29
36
|
DescribeCodeReviewResponse = Shapes::StructureShape.new(name: 'DescribeCodeReviewResponse')
|
|
30
37
|
DescribeRecommendationFeedbackRequest = Shapes::StructureShape.new(name: 'DescribeRecommendationFeedbackRequest')
|
|
@@ -74,11 +81,13 @@ module Aws::CodeGuruReviewer
|
|
|
74
81
|
RecommendationSummaries = Shapes::ListShape.new(name: 'RecommendationSummaries')
|
|
75
82
|
RecommendationSummary = Shapes::StructureShape.new(name: 'RecommendationSummary')
|
|
76
83
|
Repository = Shapes::StructureShape.new(name: 'Repository')
|
|
84
|
+
RepositoryAnalysis = Shapes::StructureShape.new(name: 'RepositoryAnalysis')
|
|
77
85
|
RepositoryAssociation = Shapes::StructureShape.new(name: 'RepositoryAssociation')
|
|
78
86
|
RepositoryAssociationState = Shapes::StringShape.new(name: 'RepositoryAssociationState')
|
|
79
87
|
RepositoryAssociationStates = Shapes::ListShape.new(name: 'RepositoryAssociationStates')
|
|
80
88
|
RepositoryAssociationSummaries = Shapes::ListShape.new(name: 'RepositoryAssociationSummaries')
|
|
81
89
|
RepositoryAssociationSummary = Shapes::StructureShape.new(name: 'RepositoryAssociationSummary')
|
|
90
|
+
RepositoryHeadSourceCodeType = Shapes::StructureShape.new(name: 'RepositoryHeadSourceCodeType')
|
|
82
91
|
RepositoryNames = Shapes::ListShape.new(name: 'RepositoryNames')
|
|
83
92
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
84
93
|
SourceCodeType = Shapes::StructureShape.new(name: 'SourceCodeType')
|
|
@@ -135,6 +144,9 @@ module Aws::CodeGuruReviewer
|
|
|
135
144
|
CodeReviewSummary.add_member(:metrics_summary, Shapes::ShapeRef.new(shape: MetricsSummary, location_name: "MetricsSummary"))
|
|
136
145
|
CodeReviewSummary.struct_class = Types::CodeReviewSummary
|
|
137
146
|
|
|
147
|
+
CodeReviewType.add_member(:repository_analysis, Shapes::ShapeRef.new(shape: RepositoryAnalysis, required: true, location_name: "RepositoryAnalysis"))
|
|
148
|
+
CodeReviewType.struct_class = Types::CodeReviewType
|
|
149
|
+
|
|
138
150
|
CommitDiffSourceCodeType.add_member(:source_commit, Shapes::ShapeRef.new(shape: CommitId, location_name: "SourceCommit"))
|
|
139
151
|
CommitDiffSourceCodeType.add_member(:destination_commit, Shapes::ShapeRef.new(shape: CommitId, location_name: "DestinationCommit"))
|
|
140
152
|
CommitDiffSourceCodeType.struct_class = Types::CommitDiffSourceCodeType
|
|
@@ -142,6 +154,15 @@ module Aws::CodeGuruReviewer
|
|
|
142
154
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
|
143
155
|
ConflictException.struct_class = Types::ConflictException
|
|
144
156
|
|
|
157
|
+
CreateCodeReviewRequest.add_member(:name, Shapes::ShapeRef.new(shape: CodeReviewName, required: true, location_name: "Name"))
|
|
158
|
+
CreateCodeReviewRequest.add_member(:repository_association_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RepositoryAssociationArn"))
|
|
159
|
+
CreateCodeReviewRequest.add_member(:type, Shapes::ShapeRef.new(shape: CodeReviewType, required: true, location_name: "Type"))
|
|
160
|
+
CreateCodeReviewRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
|
161
|
+
CreateCodeReviewRequest.struct_class = Types::CreateCodeReviewRequest
|
|
162
|
+
|
|
163
|
+
CreateCodeReviewResponse.add_member(:code_review, Shapes::ShapeRef.new(shape: CodeReview, location_name: "CodeReview"))
|
|
164
|
+
CreateCodeReviewResponse.struct_class = Types::CreateCodeReviewResponse
|
|
165
|
+
|
|
145
166
|
DescribeCodeReviewRequest.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "CodeReviewArn"))
|
|
146
167
|
DescribeCodeReviewRequest.struct_class = Types::DescribeCodeReviewRequest
|
|
147
168
|
|
|
@@ -271,8 +292,12 @@ module Aws::CodeGuruReviewer
|
|
|
271
292
|
|
|
272
293
|
Repository.add_member(:code_commit, Shapes::ShapeRef.new(shape: CodeCommitRepository, location_name: "CodeCommit"))
|
|
273
294
|
Repository.add_member(:bitbucket, Shapes::ShapeRef.new(shape: ThirdPartySourceRepository, location_name: "Bitbucket"))
|
|
295
|
+
Repository.add_member(:git_hub_enterprise_server, Shapes::ShapeRef.new(shape: ThirdPartySourceRepository, location_name: "GitHubEnterpriseServer"))
|
|
274
296
|
Repository.struct_class = Types::Repository
|
|
275
297
|
|
|
298
|
+
RepositoryAnalysis.add_member(:repository_head, Shapes::ShapeRef.new(shape: RepositoryHeadSourceCodeType, required: true, location_name: "RepositoryHead"))
|
|
299
|
+
RepositoryAnalysis.struct_class = Types::RepositoryAnalysis
|
|
300
|
+
|
|
276
301
|
RepositoryAssociation.add_member(:association_id, Shapes::ShapeRef.new(shape: AssociationId, location_name: "AssociationId"))
|
|
277
302
|
RepositoryAssociation.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AssociationArn"))
|
|
278
303
|
RepositoryAssociation.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, location_name: "ConnectionArn"))
|
|
@@ -299,12 +324,16 @@ module Aws::CodeGuruReviewer
|
|
|
299
324
|
RepositoryAssociationSummary.add_member(:state, Shapes::ShapeRef.new(shape: RepositoryAssociationState, location_name: "State"))
|
|
300
325
|
RepositoryAssociationSummary.struct_class = Types::RepositoryAssociationSummary
|
|
301
326
|
|
|
327
|
+
RepositoryHeadSourceCodeType.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location_name: "BranchName"))
|
|
328
|
+
RepositoryHeadSourceCodeType.struct_class = Types::RepositoryHeadSourceCodeType
|
|
329
|
+
|
|
302
330
|
RepositoryNames.member = Shapes::ShapeRef.new(shape: Name)
|
|
303
331
|
|
|
304
332
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
|
305
333
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
|
306
334
|
|
|
307
335
|
SourceCodeType.add_member(:commit_diff, Shapes::ShapeRef.new(shape: CommitDiffSourceCodeType, location_name: "CommitDiff"))
|
|
336
|
+
SourceCodeType.add_member(:repository_head, Shapes::ShapeRef.new(shape: RepositoryHeadSourceCodeType, location_name: "RepositoryHead"))
|
|
308
337
|
SourceCodeType.struct_class = Types::SourceCodeType
|
|
309
338
|
|
|
310
339
|
ThirdPartySourceRepository.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
|
|
@@ -352,6 +381,20 @@ module Aws::CodeGuruReviewer
|
|
|
352
381
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
353
382
|
end)
|
|
354
383
|
|
|
384
|
+
api.add_operation(:create_code_review, Seahorse::Model::Operation.new.tap do |o|
|
|
385
|
+
o.name = "CreateCodeReview"
|
|
386
|
+
o.http_method = "POST"
|
|
387
|
+
o.http_request_uri = "/codereviews"
|
|
388
|
+
o.input = Shapes::ShapeRef.new(shape: CreateCodeReviewRequest)
|
|
389
|
+
o.output = Shapes::ShapeRef.new(shape: CreateCodeReviewResponse)
|
|
390
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
391
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
392
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
393
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
394
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
395
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
396
|
+
end)
|
|
397
|
+
|
|
355
398
|
api.add_operation(:describe_code_review, Seahorse::Model::Operation.new.tap do |o|
|
|
356
399
|
o.name = "DescribeCodeReview"
|
|
357
400
|
o.http_method = "GET"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
|
2
4
|
#
|
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
|
@@ -17,6 +19,7 @@ module Aws::CodeGuruReviewer
|
|
|
17
19
|
#
|
|
18
20
|
class AccessDeniedException < Struct.new(
|
|
19
21
|
:message)
|
|
22
|
+
SENSITIVE = []
|
|
20
23
|
include Aws::Structure
|
|
21
24
|
end
|
|
22
25
|
|
|
@@ -33,6 +36,11 @@ module Aws::CodeGuruReviewer
|
|
|
33
36
|
# connection_arn: "ConnectionArn", # required
|
|
34
37
|
# owner: "Owner", # required
|
|
35
38
|
# },
|
|
39
|
+
# git_hub_enterprise_server: {
|
|
40
|
+
# name: "Name", # required
|
|
41
|
+
# connection_arn: "ConnectionArn", # required
|
|
42
|
+
# owner: "Owner", # required
|
|
43
|
+
# },
|
|
36
44
|
# },
|
|
37
45
|
# client_request_token: "ClientRequestToken",
|
|
38
46
|
# }
|
|
@@ -42,27 +50,6 @@ module Aws::CodeGuruReviewer
|
|
|
42
50
|
# @return [Types::Repository]
|
|
43
51
|
#
|
|
44
52
|
# @!attribute [rw] client_request_token
|
|
45
|
-
# Unique, case-sensitive identifier that you provide to ensure the
|
|
46
|
-
# idempotency of the request.
|
|
47
|
-
#
|
|
48
|
-
# To add a new repository association, this parameter specifies a
|
|
49
|
-
# unique identifier for the new repository association that helps
|
|
50
|
-
# ensure idempotency.
|
|
51
|
-
#
|
|
52
|
-
# If you use the AWS CLI or one of the AWS SDKs to call this
|
|
53
|
-
# operation, you can leave this parameter empty. The CLI or SDK
|
|
54
|
-
# generates a random UUID for you and includes that in the request. If
|
|
55
|
-
# you don't use the SDK and instead generate a raw HTTP request to
|
|
56
|
-
# the Secrets Manager service endpoint, you must generate a
|
|
57
|
-
# ClientRequestToken yourself for new versions and include that value
|
|
58
|
-
# in the request.
|
|
59
|
-
#
|
|
60
|
-
# You typically interact with this value if you implement your own
|
|
61
|
-
# retry logic and want to ensure that a given repository association
|
|
62
|
-
# is not created twice. We recommend that you generate a UUID-type
|
|
63
|
-
# value to ensure uniqueness within the specified repository
|
|
64
|
-
# association.
|
|
65
|
-
#
|
|
66
53
|
# Amazon CodeGuru Reviewer uses this value to prevent the accidental
|
|
67
54
|
# creation of duplicate repository associations if there are failures
|
|
68
55
|
# and retries.
|
|
@@ -76,6 +63,7 @@ module Aws::CodeGuruReviewer
|
|
|
76
63
|
class AssociateRepositoryRequest < Struct.new(
|
|
77
64
|
:repository,
|
|
78
65
|
:client_request_token)
|
|
66
|
+
SENSITIVE = []
|
|
79
67
|
include Aws::Structure
|
|
80
68
|
end
|
|
81
69
|
|
|
@@ -87,10 +75,13 @@ module Aws::CodeGuruReviewer
|
|
|
87
75
|
#
|
|
88
76
|
class AssociateRepositoryResponse < Struct.new(
|
|
89
77
|
:repository_association)
|
|
78
|
+
SENSITIVE = []
|
|
90
79
|
include Aws::Structure
|
|
91
80
|
end
|
|
92
81
|
|
|
93
|
-
# Information about an AWS CodeCommit repository.
|
|
82
|
+
# Information about an AWS CodeCommit repository. The CodeCommit
|
|
83
|
+
# repository must be in the same AWS Region and AWS account where its
|
|
84
|
+
# CodeGuru Reviewer code reviews are configured.
|
|
94
85
|
#
|
|
95
86
|
# @note When making an API call, you may pass CodeCommitRepository
|
|
96
87
|
# data as a hash:
|
|
@@ -100,13 +91,19 @@ module Aws::CodeGuruReviewer
|
|
|
100
91
|
# }
|
|
101
92
|
#
|
|
102
93
|
# @!attribute [rw] name
|
|
103
|
-
# The name of the AWS CodeCommit repository.
|
|
94
|
+
# The name of the AWS CodeCommit repository. For more information, see
|
|
95
|
+
# [repositoryName][1] in the *AWS CodeCommit API Reference*.
|
|
96
|
+
#
|
|
97
|
+
#
|
|
98
|
+
#
|
|
99
|
+
# [1]: https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetRepository.html#CodeCommit-GetRepository-request-repositoryName
|
|
104
100
|
# @return [String]
|
|
105
101
|
#
|
|
106
102
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeCommitRepository AWS API Documentation
|
|
107
103
|
#
|
|
108
104
|
class CodeCommitRepository < Struct.new(
|
|
109
105
|
:name)
|
|
106
|
+
SENSITIVE = []
|
|
110
107
|
include Aws::Structure
|
|
111
108
|
end
|
|
112
109
|
|
|
@@ -117,7 +114,11 @@ module Aws::CodeGuruReviewer
|
|
|
117
114
|
# @return [String]
|
|
118
115
|
#
|
|
119
116
|
# @!attribute [rw] code_review_arn
|
|
120
|
-
# The Amazon Resource Name (ARN) of the
|
|
117
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
|
118
|
+
#
|
|
119
|
+
#
|
|
120
|
+
#
|
|
121
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
|
121
122
|
# @return [String]
|
|
122
123
|
#
|
|
123
124
|
# @!attribute [rw] repository_name
|
|
@@ -125,15 +126,28 @@ module Aws::CodeGuruReviewer
|
|
|
125
126
|
# @return [String]
|
|
126
127
|
#
|
|
127
128
|
# @!attribute [rw] owner
|
|
128
|
-
# The owner of the repository.
|
|
129
|
+
# The owner of the repository. For an AWS CodeCommit repository, this
|
|
130
|
+
# is the AWS account ID of the account that owns the repository. For a
|
|
131
|
+
# GitHub, GitHub Enterprise Server, or Bitbucket repository, this is
|
|
132
|
+
# the username for the account that owns the repository.
|
|
129
133
|
# @return [String]
|
|
130
134
|
#
|
|
131
135
|
# @!attribute [rw] provider_type
|
|
132
|
-
# The
|
|
136
|
+
# The type of repository that contains the reviewed code (for example,
|
|
137
|
+
# GitHub or Bitbucket).
|
|
133
138
|
# @return [String]
|
|
134
139
|
#
|
|
135
140
|
# @!attribute [rw] state
|
|
136
|
-
# The
|
|
141
|
+
# The valid code review states are:
|
|
142
|
+
#
|
|
143
|
+
# * `Completed`\: The code review is complete.
|
|
144
|
+
#
|
|
145
|
+
# * `Pending`\: The code review started and has not completed or
|
|
146
|
+
# failed.
|
|
147
|
+
#
|
|
148
|
+
# * `Failed`\: The code review failed.
|
|
149
|
+
#
|
|
150
|
+
# * `Deleting`\: The code review is being deleted.
|
|
137
151
|
# @return [String]
|
|
138
152
|
#
|
|
139
153
|
# @!attribute [rw] state_reason
|
|
@@ -182,6 +196,7 @@ module Aws::CodeGuruReviewer
|
|
|
182
196
|
:pull_request_id,
|
|
183
197
|
:source_code_type,
|
|
184
198
|
:metrics)
|
|
199
|
+
SENSITIVE = []
|
|
185
200
|
include Aws::Structure
|
|
186
201
|
end
|
|
187
202
|
|
|
@@ -192,7 +207,11 @@ module Aws::CodeGuruReviewer
|
|
|
192
207
|
# @return [String]
|
|
193
208
|
#
|
|
194
209
|
# @!attribute [rw] code_review_arn
|
|
195
|
-
# The Amazon Resource Name (ARN) of the
|
|
210
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
|
211
|
+
#
|
|
212
|
+
#
|
|
213
|
+
#
|
|
214
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
|
196
215
|
# @return [String]
|
|
197
216
|
#
|
|
198
217
|
# @!attribute [rw] repository_name
|
|
@@ -200,7 +219,10 @@ module Aws::CodeGuruReviewer
|
|
|
200
219
|
# @return [String]
|
|
201
220
|
#
|
|
202
221
|
# @!attribute [rw] owner
|
|
203
|
-
# The owner of the repository.
|
|
222
|
+
# The owner of the repository. For an AWS CodeCommit repository, this
|
|
223
|
+
# is the AWS account ID of the account that owns the repository. For a
|
|
224
|
+
# GitHub, GitHub Enterprise Server, or Bitbucket repository, this is
|
|
225
|
+
# the username for the account that owns the repository.
|
|
204
226
|
# @return [String]
|
|
205
227
|
#
|
|
206
228
|
# @!attribute [rw] provider_type
|
|
@@ -209,6 +231,17 @@ module Aws::CodeGuruReviewer
|
|
|
209
231
|
#
|
|
210
232
|
# @!attribute [rw] state
|
|
211
233
|
# The state of the code review.
|
|
234
|
+
#
|
|
235
|
+
# The valid code review states are:
|
|
236
|
+
#
|
|
237
|
+
# * `Completed`\: The code review is complete.
|
|
238
|
+
#
|
|
239
|
+
# * `Pending`\: The code review started and has not completed or
|
|
240
|
+
# failed.
|
|
241
|
+
#
|
|
242
|
+
# * `Failed`\: The code review failed.
|
|
243
|
+
#
|
|
244
|
+
# * `Deleting`\: The code review is being deleted.
|
|
212
245
|
# @return [String]
|
|
213
246
|
#
|
|
214
247
|
# @!attribute [rw] created_time_stamp
|
|
@@ -247,17 +280,67 @@ module Aws::CodeGuruReviewer
|
|
|
247
280
|
:type,
|
|
248
281
|
:pull_request_id,
|
|
249
282
|
:metrics_summary)
|
|
283
|
+
SENSITIVE = []
|
|
284
|
+
include Aws::Structure
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# The type of a code review. There are two code review types:
|
|
288
|
+
#
|
|
289
|
+
# * `PullRequest` - A code review that is automatically triggered by a
|
|
290
|
+
# pull request on an assocaited repository. Because this type of code
|
|
291
|
+
# review is automatically generated, you cannot specify this code
|
|
292
|
+
# review type using [ `CreateCodeReview` ][1].
|
|
293
|
+
#
|
|
294
|
+
# * `RepositoryAnalysis` - A code review that analyzes all code under a
|
|
295
|
+
# specified branch in an associated respository. The assocated
|
|
296
|
+
# repository is specified using its ARN in [ `CreateCodeReview` ][1].
|
|
297
|
+
#
|
|
298
|
+
#
|
|
299
|
+
#
|
|
300
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview
|
|
301
|
+
#
|
|
302
|
+
# @note When making an API call, you may pass CodeReviewType
|
|
303
|
+
# data as a hash:
|
|
304
|
+
#
|
|
305
|
+
# {
|
|
306
|
+
# repository_analysis: { # required
|
|
307
|
+
# repository_head: { # required
|
|
308
|
+
# branch_name: "BranchName", # required
|
|
309
|
+
# },
|
|
310
|
+
# },
|
|
311
|
+
# }
|
|
312
|
+
#
|
|
313
|
+
# @!attribute [rw] repository_analysis
|
|
314
|
+
# A code review that analyzes all code under a specified branch in an
|
|
315
|
+
# associated respository. The assocated repository is specified using
|
|
316
|
+
# its ARN in [ `CreateCodeReview` ][1]
|
|
317
|
+
#
|
|
318
|
+
#
|
|
319
|
+
#
|
|
320
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview
|
|
321
|
+
# @return [Types::RepositoryAnalysis]
|
|
322
|
+
#
|
|
323
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeReviewType AWS API Documentation
|
|
324
|
+
#
|
|
325
|
+
class CodeReviewType < Struct.new(
|
|
326
|
+
:repository_analysis)
|
|
327
|
+
SENSITIVE = []
|
|
250
328
|
include Aws::Structure
|
|
251
329
|
end
|
|
252
330
|
|
|
253
|
-
#
|
|
331
|
+
# A type of [ `SourceCodeType` ][1] that specifies the commit diff for a
|
|
332
|
+
# pull request on an associated repository.
|
|
333
|
+
#
|
|
334
|
+
#
|
|
335
|
+
#
|
|
336
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
|
|
254
337
|
#
|
|
255
338
|
# @!attribute [rw] source_commit
|
|
256
|
-
#
|
|
339
|
+
# The SHA of the source commit used to generate a commit diff.
|
|
257
340
|
# @return [String]
|
|
258
341
|
#
|
|
259
342
|
# @!attribute [rw] destination_commit
|
|
260
|
-
#
|
|
343
|
+
# The SHA of the destination commit used to generate a commit diff.
|
|
261
344
|
# @return [String]
|
|
262
345
|
#
|
|
263
346
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CommitDiffSourceCodeType AWS API Documentation
|
|
@@ -265,6 +348,7 @@ module Aws::CodeGuruReviewer
|
|
|
265
348
|
class CommitDiffSourceCodeType < Struct.new(
|
|
266
349
|
:source_commit,
|
|
267
350
|
:destination_commit)
|
|
351
|
+
SENSITIVE = []
|
|
268
352
|
include Aws::Structure
|
|
269
353
|
end
|
|
270
354
|
|
|
@@ -279,6 +363,81 @@ module Aws::CodeGuruReviewer
|
|
|
279
363
|
#
|
|
280
364
|
class ConflictException < Struct.new(
|
|
281
365
|
:message)
|
|
366
|
+
SENSITIVE = []
|
|
367
|
+
include Aws::Structure
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# @note When making an API call, you may pass CreateCodeReviewRequest
|
|
371
|
+
# data as a hash:
|
|
372
|
+
#
|
|
373
|
+
# {
|
|
374
|
+
# name: "CodeReviewName", # required
|
|
375
|
+
# repository_association_arn: "Arn", # required
|
|
376
|
+
# type: { # required
|
|
377
|
+
# repository_analysis: { # required
|
|
378
|
+
# repository_head: { # required
|
|
379
|
+
# branch_name: "BranchName", # required
|
|
380
|
+
# },
|
|
381
|
+
# },
|
|
382
|
+
# },
|
|
383
|
+
# client_request_token: "ClientRequestToken",
|
|
384
|
+
# }
|
|
385
|
+
#
|
|
386
|
+
# @!attribute [rw] name
|
|
387
|
+
# The name of the code review. Each code review of the same code
|
|
388
|
+
# review type must have a unique name in your AWS account.
|
|
389
|
+
# @return [String]
|
|
390
|
+
#
|
|
391
|
+
# @!attribute [rw] repository_association_arn
|
|
392
|
+
# The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
|
|
393
|
+
# object. You can retrieve this ARN by calling `ListRepositories`.
|
|
394
|
+
#
|
|
395
|
+
# A code review can only be created on an associated repository. This
|
|
396
|
+
# is the ARN of the associated repository.
|
|
397
|
+
#
|
|
398
|
+
#
|
|
399
|
+
#
|
|
400
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
|
|
401
|
+
# @return [String]
|
|
402
|
+
#
|
|
403
|
+
# @!attribute [rw] type
|
|
404
|
+
# The type of code review to create. This is specified using a [
|
|
405
|
+
# `CodeReviewType` ][1] object.
|
|
406
|
+
#
|
|
407
|
+
#
|
|
408
|
+
#
|
|
409
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html
|
|
410
|
+
# @return [Types::CodeReviewType]
|
|
411
|
+
#
|
|
412
|
+
# @!attribute [rw] client_request_token
|
|
413
|
+
# Amazon CodeGuru Reviewer uses this value to prevent the accidental
|
|
414
|
+
# creation of duplicate code reviews if there are failures and
|
|
415
|
+
# retries.
|
|
416
|
+
#
|
|
417
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
418
|
+
# not need to pass this option.
|
|
419
|
+
# @return [String]
|
|
420
|
+
#
|
|
421
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CreateCodeReviewRequest AWS API Documentation
|
|
422
|
+
#
|
|
423
|
+
class CreateCodeReviewRequest < Struct.new(
|
|
424
|
+
:name,
|
|
425
|
+
:repository_association_arn,
|
|
426
|
+
:type,
|
|
427
|
+
:client_request_token)
|
|
428
|
+
SENSITIVE = []
|
|
429
|
+
include Aws::Structure
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
# @!attribute [rw] code_review
|
|
433
|
+
# Information about a code review.
|
|
434
|
+
# @return [Types::CodeReview]
|
|
435
|
+
#
|
|
436
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CreateCodeReviewResponse AWS API Documentation
|
|
437
|
+
#
|
|
438
|
+
class CreateCodeReviewResponse < Struct.new(
|
|
439
|
+
:code_review)
|
|
440
|
+
SENSITIVE = []
|
|
282
441
|
include Aws::Structure
|
|
283
442
|
end
|
|
284
443
|
|
|
@@ -290,13 +449,18 @@ module Aws::CodeGuruReviewer
|
|
|
290
449
|
# }
|
|
291
450
|
#
|
|
292
451
|
# @!attribute [rw] code_review_arn
|
|
293
|
-
# The Amazon Resource Name (ARN) of the
|
|
452
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
|
453
|
+
#
|
|
454
|
+
#
|
|
455
|
+
#
|
|
456
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
|
294
457
|
# @return [String]
|
|
295
458
|
#
|
|
296
459
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReviewRequest AWS API Documentation
|
|
297
460
|
#
|
|
298
461
|
class DescribeCodeReviewRequest < Struct.new(
|
|
299
462
|
:code_review_arn)
|
|
463
|
+
SENSITIVE = []
|
|
300
464
|
include Aws::Structure
|
|
301
465
|
end
|
|
302
466
|
|
|
@@ -308,6 +472,7 @@ module Aws::CodeGuruReviewer
|
|
|
308
472
|
#
|
|
309
473
|
class DescribeCodeReviewResponse < Struct.new(
|
|
310
474
|
:code_review)
|
|
475
|
+
SENSITIVE = []
|
|
311
476
|
include Aws::Structure
|
|
312
477
|
end
|
|
313
478
|
|
|
@@ -321,7 +486,11 @@ module Aws::CodeGuruReviewer
|
|
|
321
486
|
# }
|
|
322
487
|
#
|
|
323
488
|
# @!attribute [rw] code_review_arn
|
|
324
|
-
# The Amazon Resource Name (ARN)
|
|
489
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
|
490
|
+
#
|
|
491
|
+
#
|
|
492
|
+
#
|
|
493
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
|
325
494
|
# @return [String]
|
|
326
495
|
#
|
|
327
496
|
# @!attribute [rw] recommendation_id
|
|
@@ -332,6 +501,15 @@ module Aws::CodeGuruReviewer
|
|
|
332
501
|
# @!attribute [rw] user_id
|
|
333
502
|
# Optional parameter to describe the feedback for a given user. If
|
|
334
503
|
# this is not supplied, it defaults to the user making the request.
|
|
504
|
+
#
|
|
505
|
+
# The `UserId` is an IAM principal that can be specified as an AWS
|
|
506
|
+
# account ID or an Amazon Resource Name (ARN). For more information,
|
|
507
|
+
# see [ Specifying a Principal][1] in the *AWS Identity and Access
|
|
508
|
+
# Management User Guide*.
|
|
509
|
+
#
|
|
510
|
+
#
|
|
511
|
+
#
|
|
512
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying
|
|
335
513
|
# @return [String]
|
|
336
514
|
#
|
|
337
515
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedbackRequest AWS API Documentation
|
|
@@ -340,6 +518,7 @@ module Aws::CodeGuruReviewer
|
|
|
340
518
|
:code_review_arn,
|
|
341
519
|
:recommendation_id,
|
|
342
520
|
:user_id)
|
|
521
|
+
SENSITIVE = []
|
|
343
522
|
include Aws::Structure
|
|
344
523
|
end
|
|
345
524
|
|
|
@@ -351,6 +530,7 @@ module Aws::CodeGuruReviewer
|
|
|
351
530
|
#
|
|
352
531
|
class DescribeRecommendationFeedbackResponse < Struct.new(
|
|
353
532
|
:recommendation_feedback)
|
|
533
|
+
SENSITIVE = []
|
|
354
534
|
include Aws::Structure
|
|
355
535
|
end
|
|
356
536
|
|
|
@@ -362,14 +542,19 @@ module Aws::CodeGuruReviewer
|
|
|
362
542
|
# }
|
|
363
543
|
#
|
|
364
544
|
# @!attribute [rw] association_arn
|
|
365
|
-
# The Amazon Resource Name (ARN)
|
|
366
|
-
# retrieve this ARN by calling `ListRepositories`.
|
|
545
|
+
# The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
|
|
546
|
+
# object. You can retrieve this ARN by calling `ListRepositories`.
|
|
547
|
+
#
|
|
548
|
+
#
|
|
549
|
+
#
|
|
550
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
|
|
367
551
|
# @return [String]
|
|
368
552
|
#
|
|
369
553
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociationRequest AWS API Documentation
|
|
370
554
|
#
|
|
371
555
|
class DescribeRepositoryAssociationRequest < Struct.new(
|
|
372
556
|
:association_arn)
|
|
557
|
+
SENSITIVE = []
|
|
373
558
|
include Aws::Structure
|
|
374
559
|
end
|
|
375
560
|
|
|
@@ -381,6 +566,7 @@ module Aws::CodeGuruReviewer
|
|
|
381
566
|
#
|
|
382
567
|
class DescribeRepositoryAssociationResponse < Struct.new(
|
|
383
568
|
:repository_association)
|
|
569
|
+
SENSITIVE = []
|
|
384
570
|
include Aws::Structure
|
|
385
571
|
end
|
|
386
572
|
|
|
@@ -392,13 +578,19 @@ module Aws::CodeGuruReviewer
|
|
|
392
578
|
# }
|
|
393
579
|
#
|
|
394
580
|
# @!attribute [rw] association_arn
|
|
395
|
-
# The Amazon Resource Name (ARN)
|
|
581
|
+
# The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
|
|
582
|
+
# object. You can retrieve this ARN by calling `ListRepositories`.
|
|
583
|
+
#
|
|
584
|
+
#
|
|
585
|
+
#
|
|
586
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
|
|
396
587
|
# @return [String]
|
|
397
588
|
#
|
|
398
589
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepositoryRequest AWS API Documentation
|
|
399
590
|
#
|
|
400
591
|
class DisassociateRepositoryRequest < Struct.new(
|
|
401
592
|
:association_arn)
|
|
593
|
+
SENSITIVE = []
|
|
402
594
|
include Aws::Structure
|
|
403
595
|
end
|
|
404
596
|
|
|
@@ -410,6 +602,7 @@ module Aws::CodeGuruReviewer
|
|
|
410
602
|
#
|
|
411
603
|
class DisassociateRepositoryResponse < Struct.new(
|
|
412
604
|
:repository_association)
|
|
605
|
+
SENSITIVE = []
|
|
413
606
|
include Aws::Structure
|
|
414
607
|
end
|
|
415
608
|
|
|
@@ -423,6 +616,7 @@ module Aws::CodeGuruReviewer
|
|
|
423
616
|
#
|
|
424
617
|
class InternalServerException < Struct.new(
|
|
425
618
|
:message)
|
|
619
|
+
SENSITIVE = []
|
|
426
620
|
include Aws::Structure
|
|
427
621
|
end
|
|
428
622
|
|
|
@@ -430,24 +624,35 @@ module Aws::CodeGuruReviewer
|
|
|
430
624
|
# data as a hash:
|
|
431
625
|
#
|
|
432
626
|
# {
|
|
433
|
-
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
|
|
627
|
+
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
|
|
434
628
|
# states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
|
|
435
629
|
# repository_names: ["Name"],
|
|
436
|
-
# type: "PullRequest", # required, accepts PullRequest
|
|
630
|
+
# type: "PullRequest", # required, accepts PullRequest, RepositoryAnalysis
|
|
437
631
|
# max_results: 1,
|
|
438
632
|
# next_token: "NextToken",
|
|
439
633
|
# }
|
|
440
634
|
#
|
|
441
635
|
# @!attribute [rw] provider_types
|
|
442
636
|
# List of provider types for filtering that needs to be applied before
|
|
443
|
-
# displaying the result. For example,
|
|
444
|
-
#
|
|
637
|
+
# displaying the result. For example, `providerTypes=[GitHub]` lists
|
|
638
|
+
# code reviews from GitHub.
|
|
445
639
|
# @return [Array<String>]
|
|
446
640
|
#
|
|
447
641
|
# @!attribute [rw] states
|
|
448
642
|
# List of states for filtering that needs to be applied before
|
|
449
|
-
# displaying the result. For example,
|
|
450
|
-
#
|
|
643
|
+
# displaying the result. For example, `states=[Pending]` lists code
|
|
644
|
+
# reviews in the Pending state.
|
|
645
|
+
#
|
|
646
|
+
# The valid code review states are:
|
|
647
|
+
#
|
|
648
|
+
# * `Completed`\: The code review is complete.
|
|
649
|
+
#
|
|
650
|
+
# * `Pending`\: The code review started and has not completed or
|
|
651
|
+
# failed.
|
|
652
|
+
#
|
|
653
|
+
# * `Failed`\: The code review failed.
|
|
654
|
+
#
|
|
655
|
+
# * `Deleting`\: The code review is being deleted.
|
|
451
656
|
# @return [Array<String>]
|
|
452
657
|
#
|
|
453
658
|
# @!attribute [rw] repository_names
|
|
@@ -480,6 +685,7 @@ module Aws::CodeGuruReviewer
|
|
|
480
685
|
:type,
|
|
481
686
|
:max_results,
|
|
482
687
|
:next_token)
|
|
688
|
+
SENSITIVE = []
|
|
483
689
|
include Aws::Structure
|
|
484
690
|
end
|
|
485
691
|
|
|
@@ -496,6 +702,7 @@ module Aws::CodeGuruReviewer
|
|
|
496
702
|
class ListCodeReviewsResponse < Struct.new(
|
|
497
703
|
:code_review_summaries,
|
|
498
704
|
:next_token)
|
|
705
|
+
SENSITIVE = []
|
|
499
706
|
include Aws::Structure
|
|
500
707
|
end
|
|
501
708
|
|
|
@@ -511,7 +718,7 @@ module Aws::CodeGuruReviewer
|
|
|
511
718
|
# }
|
|
512
719
|
#
|
|
513
720
|
# @!attribute [rw] next_token
|
|
514
|
-
# If nextToken is returned, there are more results available. The
|
|
721
|
+
# If `nextToken` is returned, there are more results available. The
|
|
515
722
|
# value of nextToken is a unique pagination token for each page. Make
|
|
516
723
|
# the call again using the returned token to retrieve the next page.
|
|
517
724
|
# Keep all other arguments unchanged.
|
|
@@ -523,19 +730,31 @@ module Aws::CodeGuruReviewer
|
|
|
523
730
|
# @return [Integer]
|
|
524
731
|
#
|
|
525
732
|
# @!attribute [rw] code_review_arn
|
|
526
|
-
# The Amazon Resource Name (ARN)
|
|
733
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
|
734
|
+
#
|
|
735
|
+
#
|
|
736
|
+
#
|
|
737
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
|
527
738
|
# @return [String]
|
|
528
739
|
#
|
|
529
740
|
# @!attribute [rw] user_ids
|
|
530
|
-
#
|
|
531
|
-
#
|
|
532
|
-
#
|
|
741
|
+
# An AWS user's account ID or Amazon Resource Name (ARN). Use this ID
|
|
742
|
+
# to query the recommendation feedback for a code review from that
|
|
743
|
+
# user.
|
|
744
|
+
#
|
|
745
|
+
# The `UserId` is an IAM principal that can be specified as an AWS
|
|
746
|
+
# account ID or an Amazon Resource Name (ARN). For more information,
|
|
747
|
+
# see [ Specifying a Principal][1] in the *AWS Identity and Access
|
|
748
|
+
# Management User Guide*.
|
|
749
|
+
#
|
|
750
|
+
#
|
|
751
|
+
#
|
|
752
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying
|
|
533
753
|
# @return [Array<String>]
|
|
534
754
|
#
|
|
535
755
|
# @!attribute [rw] recommendation_ids
|
|
536
|
-
#
|
|
537
|
-
#
|
|
538
|
-
# recommendation feedback for a given recommendation.
|
|
756
|
+
# Used to query the recommendation feedback for a given
|
|
757
|
+
# recommendation.
|
|
539
758
|
# @return [Array<String>]
|
|
540
759
|
#
|
|
541
760
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedbackRequest AWS API Documentation
|
|
@@ -546,11 +765,12 @@ module Aws::CodeGuruReviewer
|
|
|
546
765
|
:code_review_arn,
|
|
547
766
|
:user_ids,
|
|
548
767
|
:recommendation_ids)
|
|
768
|
+
SENSITIVE = []
|
|
549
769
|
include Aws::Structure
|
|
550
770
|
end
|
|
551
771
|
|
|
552
772
|
# @!attribute [rw] recommendation_feedback_summaries
|
|
553
|
-
# Recommendation feedback summaries corresponding to the code
|
|
773
|
+
# Recommendation feedback summaries corresponding to the code review
|
|
554
774
|
# ARN.
|
|
555
775
|
# @return [Array<Types::RecommendationFeedbackSummary>]
|
|
556
776
|
#
|
|
@@ -566,6 +786,7 @@ module Aws::CodeGuruReviewer
|
|
|
566
786
|
class ListRecommendationFeedbackResponse < Struct.new(
|
|
567
787
|
:recommendation_feedback_summaries,
|
|
568
788
|
:next_token)
|
|
789
|
+
SENSITIVE = []
|
|
569
790
|
include Aws::Structure
|
|
570
791
|
end
|
|
571
792
|
|
|
@@ -588,7 +809,11 @@ module Aws::CodeGuruReviewer
|
|
|
588
809
|
# @return [Integer]
|
|
589
810
|
#
|
|
590
811
|
# @!attribute [rw] code_review_arn
|
|
591
|
-
# The Amazon Resource Name (ARN) of the
|
|
812
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
|
813
|
+
#
|
|
814
|
+
#
|
|
815
|
+
#
|
|
816
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
|
592
817
|
# @return [String]
|
|
593
818
|
#
|
|
594
819
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationsRequest AWS API Documentation
|
|
@@ -597,6 +822,7 @@ module Aws::CodeGuruReviewer
|
|
|
597
822
|
:next_token,
|
|
598
823
|
:max_results,
|
|
599
824
|
:code_review_arn)
|
|
825
|
+
SENSITIVE = []
|
|
600
826
|
include Aws::Structure
|
|
601
827
|
end
|
|
602
828
|
|
|
@@ -613,6 +839,7 @@ module Aws::CodeGuruReviewer
|
|
|
613
839
|
class ListRecommendationsResponse < Struct.new(
|
|
614
840
|
:recommendation_summaries,
|
|
615
841
|
:next_token)
|
|
842
|
+
SENSITIVE = []
|
|
616
843
|
include Aws::Structure
|
|
617
844
|
end
|
|
618
845
|
|
|
@@ -620,7 +847,7 @@ module Aws::CodeGuruReviewer
|
|
|
620
847
|
# data as a hash:
|
|
621
848
|
#
|
|
622
849
|
# {
|
|
623
|
-
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
|
|
850
|
+
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
|
|
624
851
|
# states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
|
|
625
852
|
# names: ["Name"],
|
|
626
853
|
# owners: ["Owner"],
|
|
@@ -633,7 +860,32 @@ module Aws::CodeGuruReviewer
|
|
|
633
860
|
# @return [Array<String>]
|
|
634
861
|
#
|
|
635
862
|
# @!attribute [rw] states
|
|
636
|
-
# List of states to use as a filter.
|
|
863
|
+
# List of repository association states to use as a filter.
|
|
864
|
+
#
|
|
865
|
+
# The valid repository association states are:
|
|
866
|
+
#
|
|
867
|
+
# * **Associated**\: The repository association is complete.
|
|
868
|
+
#
|
|
869
|
+
# * **Associating**\: CodeGuru Reviewer is:
|
|
870
|
+
#
|
|
871
|
+
# * Setting up pull request notifications. This is required for pull
|
|
872
|
+
# requests to trigger a CodeGuru Reviewer review.
|
|
873
|
+
#
|
|
874
|
+
# <note markdown="1"> If your repository `ProviderType` is `GitHub`, `GitHub
|
|
875
|
+
# Enterprise Server`, or `Bitbucket`, CodeGuru Reviewer creates
|
|
876
|
+
# webhooks in your repository to trigger CodeGuru Reviewer
|
|
877
|
+
# reviews. If you delete these webhooks, reviews of code in your
|
|
878
|
+
# repository cannot be triggered.
|
|
879
|
+
#
|
|
880
|
+
# </note>
|
|
881
|
+
#
|
|
882
|
+
# * Setting up source code access. This is required for CodeGuru
|
|
883
|
+
# Reviewer to securely clone code in your repository.
|
|
884
|
+
#
|
|
885
|
+
# * **Failed**\: The repository failed to associate or disassociate.
|
|
886
|
+
#
|
|
887
|
+
# * **Disassociating**\: CodeGuru Reviewer is removing the
|
|
888
|
+
# repository's pull request notifications and source code access.
|
|
637
889
|
# @return [Array<String>]
|
|
638
890
|
#
|
|
639
891
|
# @!attribute [rw] names
|
|
@@ -641,10 +893,11 @@ module Aws::CodeGuruReviewer
|
|
|
641
893
|
# @return [Array<String>]
|
|
642
894
|
#
|
|
643
895
|
# @!attribute [rw] owners
|
|
644
|
-
# List of owners to use as a filter. For
|
|
645
|
-
#
|
|
646
|
-
#
|
|
647
|
-
#
|
|
896
|
+
# List of owners to use as a filter. For AWS CodeCommit, it is the
|
|
897
|
+
# name of the CodeCommit account that was used to associate the
|
|
898
|
+
# repository. For other repository source providers, such as Bitbucket
|
|
899
|
+
# and GitHub Enterprise Server, this is name of the account that was
|
|
900
|
+
# used to associate the repository.
|
|
648
901
|
# @return [Array<String>]
|
|
649
902
|
#
|
|
650
903
|
# @!attribute [rw] max_results
|
|
@@ -654,9 +907,9 @@ module Aws::CodeGuruReviewer
|
|
|
654
907
|
# `maxResults` results in a single page with a `nextToken` response
|
|
655
908
|
# element. The remaining results of the initial request can be seen by
|
|
656
909
|
# sending another `ListRepositoryAssociations` request with the
|
|
657
|
-
# returned `nextToken` value. This value can be between 1 and
|
|
910
|
+
# returned `nextToken` value. This value can be between 1 and 100. If
|
|
658
911
|
# this parameter is not used, `ListRepositoryAssociations` returns up
|
|
659
|
-
# to
|
|
912
|
+
# to 100 results and a `nextToken` value if applicable.
|
|
660
913
|
# @return [Integer]
|
|
661
914
|
#
|
|
662
915
|
# @!attribute [rw] next_token
|
|
@@ -682,6 +935,7 @@ module Aws::CodeGuruReviewer
|
|
|
682
935
|
:owners,
|
|
683
936
|
:max_results,
|
|
684
937
|
:next_token)
|
|
938
|
+
SENSITIVE = []
|
|
685
939
|
include Aws::Structure
|
|
686
940
|
end
|
|
687
941
|
|
|
@@ -703,13 +957,25 @@ module Aws::CodeGuruReviewer
|
|
|
703
957
|
class ListRepositoryAssociationsResponse < Struct.new(
|
|
704
958
|
:repository_association_summaries,
|
|
705
959
|
:next_token)
|
|
960
|
+
SENSITIVE = []
|
|
706
961
|
include Aws::Structure
|
|
707
962
|
end
|
|
708
963
|
|
|
709
964
|
# Information about the statistics from the code review.
|
|
710
965
|
#
|
|
711
966
|
# @!attribute [rw] metered_lines_of_code_count
|
|
712
|
-
# Lines of code metered in the code review.
|
|
967
|
+
# Lines of code metered in the code review. For the initial code
|
|
968
|
+
# review pull request and all subsequent revisions, this includes all
|
|
969
|
+
# lines of code in the files added to the pull request. In subsequent
|
|
970
|
+
# revisions, for files that already existed in the pull request, this
|
|
971
|
+
# includes only the changed lines of code. In both cases, this does
|
|
972
|
+
# not include non-code lines such as comments and import statements.
|
|
973
|
+
# For example, if you submit a pull request containing 5 files, each
|
|
974
|
+
# with 500 lines of code, and in a subsequent revision you added a new
|
|
975
|
+
# file with 200 lines of code, and also modified a total of 25 lines
|
|
976
|
+
# across the initial 5 files, `MeteredLinesOfCodeCount` includes the
|
|
977
|
+
# first 5 files (5 * 500 = 2,500 lines), the new file (200 lines) and
|
|
978
|
+
# the 25 changed lines of code for a total of 2,725 lines of code.
|
|
713
979
|
# @return [Integer]
|
|
714
980
|
#
|
|
715
981
|
# @!attribute [rw] findings_count
|
|
@@ -721,13 +987,25 @@ module Aws::CodeGuruReviewer
|
|
|
721
987
|
class Metrics < Struct.new(
|
|
722
988
|
:metered_lines_of_code_count,
|
|
723
989
|
:findings_count)
|
|
990
|
+
SENSITIVE = []
|
|
724
991
|
include Aws::Structure
|
|
725
992
|
end
|
|
726
993
|
|
|
727
994
|
# Information about metrics summaries.
|
|
728
995
|
#
|
|
729
996
|
# @!attribute [rw] metered_lines_of_code_count
|
|
730
|
-
# Lines of code metered in the code review.
|
|
997
|
+
# Lines of code metered in the code review. For the initial code
|
|
998
|
+
# review pull request and all subsequent revisions, this includes all
|
|
999
|
+
# lines of code in the files added to the pull request. In subsequent
|
|
1000
|
+
# revisions, for files that already existed in the pull request, this
|
|
1001
|
+
# includes only the changed lines of code. In both cases, this does
|
|
1002
|
+
# not include non-code lines such as comments and import statements.
|
|
1003
|
+
# For example, if you submit a pull request containing 5 files, each
|
|
1004
|
+
# with 500 lines of code, and in a subsequent revision you added a new
|
|
1005
|
+
# file with 200 lines of code, and also modified a total of 25 lines
|
|
1006
|
+
# across the initial 5 files, `MeteredLinesOfCodeCount` includes the
|
|
1007
|
+
# first 5 files (5 * 500 = 2,500 lines), the new file (200 lines) and
|
|
1008
|
+
# the 25 changed lines of code for a total of 2,725 lines of code.
|
|
731
1009
|
# @return [Integer]
|
|
732
1010
|
#
|
|
733
1011
|
# @!attribute [rw] findings_count
|
|
@@ -739,6 +1017,7 @@ module Aws::CodeGuruReviewer
|
|
|
739
1017
|
class MetricsSummary < Struct.new(
|
|
740
1018
|
:metered_lines_of_code_count,
|
|
741
1019
|
:findings_count)
|
|
1020
|
+
SENSITIVE = []
|
|
742
1021
|
include Aws::Structure
|
|
743
1022
|
end
|
|
744
1023
|
|
|
@@ -751,6 +1030,7 @@ module Aws::CodeGuruReviewer
|
|
|
751
1030
|
#
|
|
752
1031
|
class NotFoundException < Struct.new(
|
|
753
1032
|
:message)
|
|
1033
|
+
SENSITIVE = []
|
|
754
1034
|
include Aws::Structure
|
|
755
1035
|
end
|
|
756
1036
|
|
|
@@ -764,7 +1044,11 @@ module Aws::CodeGuruReviewer
|
|
|
764
1044
|
# }
|
|
765
1045
|
#
|
|
766
1046
|
# @!attribute [rw] code_review_arn
|
|
767
|
-
# The Amazon Resource Name (ARN)
|
|
1047
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
|
1048
|
+
#
|
|
1049
|
+
#
|
|
1050
|
+
#
|
|
1051
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
|
768
1052
|
# @return [String]
|
|
769
1053
|
#
|
|
770
1054
|
# @!attribute [rw] recommendation_id
|
|
@@ -783,6 +1067,7 @@ module Aws::CodeGuruReviewer
|
|
|
783
1067
|
:code_review_arn,
|
|
784
1068
|
:recommendation_id,
|
|
785
1069
|
:reactions)
|
|
1070
|
+
SENSITIVE = []
|
|
786
1071
|
include Aws::Structure
|
|
787
1072
|
end
|
|
788
1073
|
|
|
@@ -793,7 +1078,11 @@ module Aws::CodeGuruReviewer
|
|
|
793
1078
|
# Information about the recommendation feedback.
|
|
794
1079
|
#
|
|
795
1080
|
# @!attribute [rw] code_review_arn
|
|
796
|
-
# The Amazon Resource Name (ARN)
|
|
1081
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
|
1082
|
+
#
|
|
1083
|
+
#
|
|
1084
|
+
#
|
|
1085
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
|
797
1086
|
# @return [String]
|
|
798
1087
|
#
|
|
799
1088
|
# @!attribute [rw] recommendation_id
|
|
@@ -807,7 +1096,16 @@ module Aws::CodeGuruReviewer
|
|
|
807
1096
|
# @return [Array<String>]
|
|
808
1097
|
#
|
|
809
1098
|
# @!attribute [rw] user_id
|
|
810
|
-
# The user
|
|
1099
|
+
# The ID of the user that made the API call.
|
|
1100
|
+
#
|
|
1101
|
+
# The `UserId` is an IAM principal that can be specified as an AWS
|
|
1102
|
+
# account ID or an Amazon Resource Name (ARN). For more information,
|
|
1103
|
+
# see [ Specifying a Principal][1] in the *AWS Identity and Access
|
|
1104
|
+
# Management User Guide*.
|
|
1105
|
+
#
|
|
1106
|
+
#
|
|
1107
|
+
#
|
|
1108
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying
|
|
811
1109
|
# @return [String]
|
|
812
1110
|
#
|
|
813
1111
|
# @!attribute [rw] created_time_stamp
|
|
@@ -827,6 +1125,7 @@ module Aws::CodeGuruReviewer
|
|
|
827
1125
|
:user_id,
|
|
828
1126
|
:created_time_stamp,
|
|
829
1127
|
:last_updated_time_stamp)
|
|
1128
|
+
SENSITIVE = []
|
|
830
1129
|
include Aws::Structure
|
|
831
1130
|
end
|
|
832
1131
|
|
|
@@ -843,7 +1142,16 @@ module Aws::CodeGuruReviewer
|
|
|
843
1142
|
# @return [Array<String>]
|
|
844
1143
|
#
|
|
845
1144
|
# @!attribute [rw] user_id
|
|
846
|
-
# The
|
|
1145
|
+
# The ID of the user that gave the feedback.
|
|
1146
|
+
#
|
|
1147
|
+
# The `UserId` is an IAM principal that can be specified as an AWS
|
|
1148
|
+
# account ID or an Amazon Resource Name (ARN). For more information,
|
|
1149
|
+
# see [ Specifying a Principal][1] in the *AWS Identity and Access
|
|
1150
|
+
# Management User Guide*.
|
|
1151
|
+
#
|
|
1152
|
+
#
|
|
1153
|
+
#
|
|
1154
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying
|
|
847
1155
|
# @return [String]
|
|
848
1156
|
#
|
|
849
1157
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RecommendationFeedbackSummary AWS API Documentation
|
|
@@ -852,6 +1160,7 @@ module Aws::CodeGuruReviewer
|
|
|
852
1160
|
:recommendation_id,
|
|
853
1161
|
:reactions,
|
|
854
1162
|
:user_id)
|
|
1163
|
+
SENSITIVE = []
|
|
855
1164
|
include Aws::Structure
|
|
856
1165
|
end
|
|
857
1166
|
|
|
@@ -874,7 +1183,7 @@ module Aws::CodeGuruReviewer
|
|
|
874
1183
|
# @!attribute [rw] end_line
|
|
875
1184
|
# Last line where the recommendation is applicable in the source
|
|
876
1185
|
# commit or source branch. For a single line comment the start line
|
|
877
|
-
# and end line values
|
|
1186
|
+
# and end line values are the same.
|
|
878
1187
|
# @return [Integer]
|
|
879
1188
|
#
|
|
880
1189
|
# @!attribute [rw] description
|
|
@@ -890,10 +1199,14 @@ module Aws::CodeGuruReviewer
|
|
|
890
1199
|
:start_line,
|
|
891
1200
|
:end_line,
|
|
892
1201
|
:description)
|
|
1202
|
+
SENSITIVE = []
|
|
893
1203
|
include Aws::Structure
|
|
894
1204
|
end
|
|
895
1205
|
|
|
896
|
-
# Information about
|
|
1206
|
+
# Information about an associated AWS CodeCommit repository or an
|
|
1207
|
+
# associated repository that is managed by AWS CodeStar Connections (for
|
|
1208
|
+
# example, Bitbucket). This `Repository` object is not used if your
|
|
1209
|
+
# source code is in an associated GitHub repository.
|
|
897
1210
|
#
|
|
898
1211
|
# @note When making an API call, you may pass Repository
|
|
899
1212
|
# data as a hash:
|
|
@@ -907,6 +1220,11 @@ module Aws::CodeGuruReviewer
|
|
|
907
1220
|
# connection_arn: "ConnectionArn", # required
|
|
908
1221
|
# owner: "Owner", # required
|
|
909
1222
|
# },
|
|
1223
|
+
# git_hub_enterprise_server: {
|
|
1224
|
+
# name: "Name", # required
|
|
1225
|
+
# connection_arn: "ConnectionArn", # required
|
|
1226
|
+
# owner: "Owner", # required
|
|
1227
|
+
# },
|
|
910
1228
|
# }
|
|
911
1229
|
#
|
|
912
1230
|
# @!attribute [rw] code_commit
|
|
@@ -914,18 +1232,64 @@ module Aws::CodeGuruReviewer
|
|
|
914
1232
|
# @return [Types::CodeCommitRepository]
|
|
915
1233
|
#
|
|
916
1234
|
# @!attribute [rw] bitbucket
|
|
917
|
-
# Information about a Bitbucket
|
|
1235
|
+
# Information about a Bitbucket repository.
|
|
1236
|
+
# @return [Types::ThirdPartySourceRepository]
|
|
1237
|
+
#
|
|
1238
|
+
# @!attribute [rw] git_hub_enterprise_server
|
|
1239
|
+
# Information about a GitHub Enterprise Server repository.
|
|
918
1240
|
# @return [Types::ThirdPartySourceRepository]
|
|
919
1241
|
#
|
|
920
1242
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/Repository AWS API Documentation
|
|
921
1243
|
#
|
|
922
1244
|
class Repository < Struct.new(
|
|
923
1245
|
:code_commit,
|
|
924
|
-
:bitbucket
|
|
1246
|
+
:bitbucket,
|
|
1247
|
+
:git_hub_enterprise_server)
|
|
1248
|
+
SENSITIVE = []
|
|
1249
|
+
include Aws::Structure
|
|
1250
|
+
end
|
|
1251
|
+
|
|
1252
|
+
# A code review type that analyzes all code under a specified branch in
|
|
1253
|
+
# an associated respository. The assocated repository is specified using
|
|
1254
|
+
# its ARN when you call [ `CreateCodeReview` ][1].
|
|
1255
|
+
#
|
|
1256
|
+
#
|
|
1257
|
+
#
|
|
1258
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview
|
|
1259
|
+
#
|
|
1260
|
+
# @note When making an API call, you may pass RepositoryAnalysis
|
|
1261
|
+
# data as a hash:
|
|
1262
|
+
#
|
|
1263
|
+
# {
|
|
1264
|
+
# repository_head: { # required
|
|
1265
|
+
# branch_name: "BranchName", # required
|
|
1266
|
+
# },
|
|
1267
|
+
# }
|
|
1268
|
+
#
|
|
1269
|
+
# @!attribute [rw] repository_head
|
|
1270
|
+
# A [ `SourceCodeType` ][1] that specifies the tip of a branch in an
|
|
1271
|
+
# associated repository.
|
|
1272
|
+
#
|
|
1273
|
+
#
|
|
1274
|
+
#
|
|
1275
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
|
|
1276
|
+
# @return [Types::RepositoryHeadSourceCodeType]
|
|
1277
|
+
#
|
|
1278
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RepositoryAnalysis AWS API Documentation
|
|
1279
|
+
#
|
|
1280
|
+
class RepositoryAnalysis < Struct.new(
|
|
1281
|
+
:repository_head)
|
|
1282
|
+
SENSITIVE = []
|
|
925
1283
|
include Aws::Structure
|
|
926
1284
|
end
|
|
927
1285
|
|
|
928
|
-
# Information about a repository association.
|
|
1286
|
+
# Information about a repository association. The [
|
|
1287
|
+
# `DescribeRepositoryAssociation` ][1] operation returns a
|
|
1288
|
+
# `RepositoryAssociation` object.
|
|
1289
|
+
#
|
|
1290
|
+
#
|
|
1291
|
+
#
|
|
1292
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_DescribeRepositoryAssociation.html
|
|
929
1293
|
#
|
|
930
1294
|
# @!attribute [rw] association_id
|
|
931
1295
|
# The ID of the repository association.
|
|
@@ -937,8 +1301,15 @@ module Aws::CodeGuruReviewer
|
|
|
937
1301
|
# @return [String]
|
|
938
1302
|
#
|
|
939
1303
|
# @!attribute [rw] connection_arn
|
|
940
|
-
# The Amazon Resource Name (ARN)
|
|
941
|
-
# connection.
|
|
1304
|
+
# The Amazon Resource Name (ARN) of an AWS CodeStar Connections
|
|
1305
|
+
# connection. Its format is
|
|
1306
|
+
# `arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id`.
|
|
1307
|
+
# For more information, see [ `Connection` ][1] in the *AWS CodeStar
|
|
1308
|
+
# Connections API Reference*.
|
|
1309
|
+
#
|
|
1310
|
+
#
|
|
1311
|
+
#
|
|
1312
|
+
# [1]: https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html
|
|
942
1313
|
# @return [String]
|
|
943
1314
|
#
|
|
944
1315
|
# @!attribute [rw] name
|
|
@@ -946,7 +1317,10 @@ module Aws::CodeGuruReviewer
|
|
|
946
1317
|
# @return [String]
|
|
947
1318
|
#
|
|
948
1319
|
# @!attribute [rw] owner
|
|
949
|
-
# The owner of the repository.
|
|
1320
|
+
# The owner of the repository. For an AWS CodeCommit repository, this
|
|
1321
|
+
# is the AWS account ID of the account that owns the repository. For a
|
|
1322
|
+
# GitHub, GitHub Enterprise Server, or Bitbucket repository, this is
|
|
1323
|
+
# the username for the account that owns the repository.
|
|
950
1324
|
# @return [String]
|
|
951
1325
|
#
|
|
952
1326
|
# @!attribute [rw] provider_type
|
|
@@ -955,6 +1329,31 @@ module Aws::CodeGuruReviewer
|
|
|
955
1329
|
#
|
|
956
1330
|
# @!attribute [rw] state
|
|
957
1331
|
# The state of the repository association.
|
|
1332
|
+
#
|
|
1333
|
+
# The valid repository association states are:
|
|
1334
|
+
#
|
|
1335
|
+
# * **Associated**\: The repository association is complete.
|
|
1336
|
+
#
|
|
1337
|
+
# * **Associating**\: CodeGuru Reviewer is:
|
|
1338
|
+
#
|
|
1339
|
+
# * Setting up pull request notifications. This is required for pull
|
|
1340
|
+
# requests to trigger a CodeGuru Reviewer review.
|
|
1341
|
+
#
|
|
1342
|
+
# <note markdown="1"> If your repository `ProviderType` is `GitHub`, `GitHub
|
|
1343
|
+
# Enterprise Server`, or `Bitbucket`, CodeGuru Reviewer creates
|
|
1344
|
+
# webhooks in your repository to trigger CodeGuru Reviewer
|
|
1345
|
+
# reviews. If you delete these webhooks, reviews of code in your
|
|
1346
|
+
# repository cannot be triggered.
|
|
1347
|
+
#
|
|
1348
|
+
# </note>
|
|
1349
|
+
#
|
|
1350
|
+
# * Setting up source code access. This is required for CodeGuru
|
|
1351
|
+
# Reviewer to securely clone code in your repository.
|
|
1352
|
+
#
|
|
1353
|
+
# * **Failed**\: The repository failed to associate or disassociate.
|
|
1354
|
+
#
|
|
1355
|
+
# * **Disassociating**\: CodeGuru Reviewer is removing the
|
|
1356
|
+
# repository's pull request notifications and source code access.
|
|
958
1357
|
# @return [String]
|
|
959
1358
|
#
|
|
960
1359
|
# @!attribute [rw] state_reason
|
|
@@ -985,19 +1384,37 @@ module Aws::CodeGuruReviewer
|
|
|
985
1384
|
:state_reason,
|
|
986
1385
|
:last_updated_time_stamp,
|
|
987
1386
|
:created_time_stamp)
|
|
1387
|
+
SENSITIVE = []
|
|
988
1388
|
include Aws::Structure
|
|
989
1389
|
end
|
|
990
1390
|
|
|
991
|
-
#
|
|
1391
|
+
# Summary information about a repository association. The [
|
|
1392
|
+
# `ListRepositoryAssociations` ][1] operation returns a list of
|
|
1393
|
+
# `RepositoryAssociationSummary` objects.
|
|
1394
|
+
#
|
|
1395
|
+
#
|
|
1396
|
+
#
|
|
1397
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
|
|
992
1398
|
#
|
|
993
1399
|
# @!attribute [rw] association_arn
|
|
994
|
-
# The Amazon Resource Name (ARN)
|
|
995
|
-
#
|
|
1400
|
+
# The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
|
|
1401
|
+
# object. You can retrieve this ARN by calling `ListRepositories`.
|
|
1402
|
+
#
|
|
1403
|
+
#
|
|
1404
|
+
#
|
|
1405
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
|
|
996
1406
|
# @return [String]
|
|
997
1407
|
#
|
|
998
1408
|
# @!attribute [rw] connection_arn
|
|
999
|
-
# The Amazon Resource Name (ARN)
|
|
1000
|
-
# connection.
|
|
1409
|
+
# The Amazon Resource Name (ARN) of an AWS CodeStar Connections
|
|
1410
|
+
# connection. Its format is
|
|
1411
|
+
# `arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id`.
|
|
1412
|
+
# For more information, see [ `Connection` ][1] in the *AWS CodeStar
|
|
1413
|
+
# Connections API Reference*.
|
|
1414
|
+
#
|
|
1415
|
+
#
|
|
1416
|
+
#
|
|
1417
|
+
# [1]: https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html
|
|
1001
1418
|
# @return [String]
|
|
1002
1419
|
#
|
|
1003
1420
|
# @!attribute [rw] last_updated_time_stamp
|
|
@@ -1014,7 +1431,10 @@ module Aws::CodeGuruReviewer
|
|
|
1014
1431
|
# @return [String]
|
|
1015
1432
|
#
|
|
1016
1433
|
# @!attribute [rw] owner
|
|
1017
|
-
# The owner of the repository
|
|
1434
|
+
# The owner of the repository. For an AWS CodeCommit repository, this
|
|
1435
|
+
# is the AWS account ID of the account that owns the repository. For a
|
|
1436
|
+
# GitHub, GitHub Enterprise Server, or Bitbucket repository, this is
|
|
1437
|
+
# the username for the account that owns the repository.
|
|
1018
1438
|
# @return [String]
|
|
1019
1439
|
#
|
|
1020
1440
|
# @!attribute [rw] provider_type
|
|
@@ -1024,22 +1444,30 @@ module Aws::CodeGuruReviewer
|
|
|
1024
1444
|
# @!attribute [rw] state
|
|
1025
1445
|
# The state of the repository association.
|
|
1026
1446
|
#
|
|
1027
|
-
#
|
|
1447
|
+
# The valid repository association states are:
|
|
1448
|
+
#
|
|
1449
|
+
# * **Associated**\: The repository association is complete.
|
|
1028
1450
|
#
|
|
1029
|
-
#
|
|
1451
|
+
# * **Associating**\: CodeGuru Reviewer is:
|
|
1030
1452
|
#
|
|
1031
|
-
#
|
|
1453
|
+
# * Setting up pull request notifications. This is required for pull
|
|
1454
|
+
# requests to trigger a CodeGuru Reviewer review.
|
|
1032
1455
|
#
|
|
1033
|
-
#
|
|
1456
|
+
# <note markdown="1"> If your repository `ProviderType` is `GitHub`, `GitHub
|
|
1457
|
+
# Enterprise Server`, or `Bitbucket`, CodeGuru Reviewer creates
|
|
1458
|
+
# webhooks in your repository to trigger CodeGuru Reviewer
|
|
1459
|
+
# reviews. If you delete these webhooks, reviews of code in your
|
|
1460
|
+
# repository cannot be triggered.
|
|
1034
1461
|
#
|
|
1035
|
-
#
|
|
1462
|
+
# </note>
|
|
1036
1463
|
#
|
|
1037
|
-
#
|
|
1464
|
+
# * Setting up source code access. This is required for CodeGuru
|
|
1465
|
+
# Reviewer to securely clone code in your repository.
|
|
1038
1466
|
#
|
|
1039
|
-
#
|
|
1467
|
+
# * **Failed**\: The repository failed to associate or disassociate.
|
|
1040
1468
|
#
|
|
1041
|
-
#
|
|
1042
|
-
#
|
|
1469
|
+
# * **Disassociating**\: CodeGuru Reviewer is removing the
|
|
1470
|
+
# repository's pull request notifications and source code access.
|
|
1043
1471
|
# @return [String]
|
|
1044
1472
|
#
|
|
1045
1473
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RepositoryAssociationSummary AWS API Documentation
|
|
@@ -1053,6 +1481,34 @@ module Aws::CodeGuruReviewer
|
|
|
1053
1481
|
:owner,
|
|
1054
1482
|
:provider_type,
|
|
1055
1483
|
:state)
|
|
1484
|
+
SENSITIVE = []
|
|
1485
|
+
include Aws::Structure
|
|
1486
|
+
end
|
|
1487
|
+
|
|
1488
|
+
# A [ `SourceCodeType` ][1] that specifies the tip of a branch in an
|
|
1489
|
+
# associated repository.
|
|
1490
|
+
#
|
|
1491
|
+
#
|
|
1492
|
+
#
|
|
1493
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
|
|
1494
|
+
#
|
|
1495
|
+
# @note When making an API call, you may pass RepositoryHeadSourceCodeType
|
|
1496
|
+
# data as a hash:
|
|
1497
|
+
#
|
|
1498
|
+
# {
|
|
1499
|
+
# branch_name: "BranchName", # required
|
|
1500
|
+
# }
|
|
1501
|
+
#
|
|
1502
|
+
# @!attribute [rw] branch_name
|
|
1503
|
+
# The name of the branch in an associated repository. The
|
|
1504
|
+
# `RepositoryHeadSourceCodeType` specifies the tip of this branch.
|
|
1505
|
+
# @return [String]
|
|
1506
|
+
#
|
|
1507
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RepositoryHeadSourceCodeType AWS API Documentation
|
|
1508
|
+
#
|
|
1509
|
+
class RepositoryHeadSourceCodeType < Struct.new(
|
|
1510
|
+
:branch_name)
|
|
1511
|
+
SENSITIVE = []
|
|
1056
1512
|
include Aws::Structure
|
|
1057
1513
|
end
|
|
1058
1514
|
|
|
@@ -1065,24 +1521,43 @@ module Aws::CodeGuruReviewer
|
|
|
1065
1521
|
#
|
|
1066
1522
|
class ResourceNotFoundException < Struct.new(
|
|
1067
1523
|
:message)
|
|
1524
|
+
SENSITIVE = []
|
|
1068
1525
|
include Aws::Structure
|
|
1069
1526
|
end
|
|
1070
1527
|
|
|
1071
|
-
#
|
|
1528
|
+
# Specifies the source code that is analyzed in a code review. A code
|
|
1529
|
+
# review can analyze the source code that is specified using a pull
|
|
1530
|
+
# request diff or a branch in an associated repository.
|
|
1072
1531
|
#
|
|
1073
1532
|
# @!attribute [rw] commit_diff
|
|
1074
|
-
#
|
|
1533
|
+
# A [ `SourceCodeType` ][1] that specifies a commit diff created by a
|
|
1534
|
+
# pull request on an associated repository.
|
|
1535
|
+
#
|
|
1536
|
+
#
|
|
1537
|
+
#
|
|
1538
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
|
|
1075
1539
|
# @return [Types::CommitDiffSourceCodeType]
|
|
1076
1540
|
#
|
|
1541
|
+
# @!attribute [rw] repository_head
|
|
1542
|
+
# A [ `SourceCodeType` ][1] that specifies the tip of a branch in an
|
|
1543
|
+
# associated repository.
|
|
1544
|
+
#
|
|
1545
|
+
#
|
|
1546
|
+
#
|
|
1547
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
|
|
1548
|
+
# @return [Types::RepositoryHeadSourceCodeType]
|
|
1549
|
+
#
|
|
1077
1550
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/SourceCodeType AWS API Documentation
|
|
1078
1551
|
#
|
|
1079
1552
|
class SourceCodeType < Struct.new(
|
|
1080
|
-
:commit_diff
|
|
1553
|
+
:commit_diff,
|
|
1554
|
+
:repository_head)
|
|
1555
|
+
SENSITIVE = []
|
|
1081
1556
|
include Aws::Structure
|
|
1082
1557
|
end
|
|
1083
1558
|
|
|
1084
|
-
# Information about a third
|
|
1085
|
-
#
|
|
1559
|
+
# Information about a third-party source repository connected to
|
|
1560
|
+
# CodeGuru Reviewer.
|
|
1086
1561
|
#
|
|
1087
1562
|
# @note When making an API call, you may pass ThirdPartySourceRepository
|
|
1088
1563
|
# data as a hash:
|
|
@@ -1098,12 +1573,21 @@ module Aws::CodeGuruReviewer
|
|
|
1098
1573
|
# @return [String]
|
|
1099
1574
|
#
|
|
1100
1575
|
# @!attribute [rw] connection_arn
|
|
1101
|
-
# The Amazon Resource Name (ARN)
|
|
1102
|
-
# connection.
|
|
1576
|
+
# The Amazon Resource Name (ARN) of an AWS CodeStar Connections
|
|
1577
|
+
# connection. Its format is
|
|
1578
|
+
# `arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id`.
|
|
1579
|
+
# For more information, see [ `Connection` ][1] in the *AWS CodeStar
|
|
1580
|
+
# Connections API Reference*.
|
|
1581
|
+
#
|
|
1582
|
+
#
|
|
1583
|
+
#
|
|
1584
|
+
# [1]: https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html
|
|
1103
1585
|
# @return [String]
|
|
1104
1586
|
#
|
|
1105
1587
|
# @!attribute [rw] owner
|
|
1106
|
-
# The
|
|
1588
|
+
# The owner of the repository. For a GitHub, GitHub Enterprise, or
|
|
1589
|
+
# Bitbucket repository, this is the username for the account that owns
|
|
1590
|
+
# the repository.
|
|
1107
1591
|
# @return [String]
|
|
1108
1592
|
#
|
|
1109
1593
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ThirdPartySourceRepository AWS API Documentation
|
|
@@ -1112,6 +1596,7 @@ module Aws::CodeGuruReviewer
|
|
|
1112
1596
|
:name,
|
|
1113
1597
|
:connection_arn,
|
|
1114
1598
|
:owner)
|
|
1599
|
+
SENSITIVE = []
|
|
1115
1600
|
include Aws::Structure
|
|
1116
1601
|
end
|
|
1117
1602
|
|
|
@@ -1124,6 +1609,7 @@ module Aws::CodeGuruReviewer
|
|
|
1124
1609
|
#
|
|
1125
1610
|
class ThrottlingException < Struct.new(
|
|
1126
1611
|
:message)
|
|
1612
|
+
SENSITIVE = []
|
|
1127
1613
|
include Aws::Structure
|
|
1128
1614
|
end
|
|
1129
1615
|
|
|
@@ -1136,6 +1622,7 @@ module Aws::CodeGuruReviewer
|
|
|
1136
1622
|
#
|
|
1137
1623
|
class ValidationException < Struct.new(
|
|
1138
1624
|
:message)
|
|
1625
|
+
SENSITIVE = []
|
|
1139
1626
|
include Aws::Structure
|
|
1140
1627
|
end
|
|
1141
1628
|
|