aws-sdk-codegurureviewer 1.1.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,16 +18,41 @@ module Aws::CodeGuruReviewer
18
18
  AssociationId = Shapes::StringShape.new(name: 'AssociationId')
19
19
  ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
20
20
  CodeCommitRepository = Shapes::StructureShape.new(name: 'CodeCommitRepository')
21
+ CodeReview = Shapes::StructureShape.new(name: 'CodeReview')
22
+ CodeReviewSummaries = Shapes::ListShape.new(name: 'CodeReviewSummaries')
23
+ CodeReviewSummary = Shapes::StructureShape.new(name: 'CodeReviewSummary')
24
+ CommitDiffSourceCodeType = Shapes::StructureShape.new(name: 'CommitDiffSourceCodeType')
25
+ CommitId = Shapes::StringShape.new(name: 'CommitId')
21
26
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
27
+ ConnectionArn = Shapes::StringShape.new(name: 'ConnectionArn')
28
+ DescribeCodeReviewRequest = Shapes::StructureShape.new(name: 'DescribeCodeReviewRequest')
29
+ DescribeCodeReviewResponse = Shapes::StructureShape.new(name: 'DescribeCodeReviewResponse')
30
+ DescribeRecommendationFeedbackRequest = Shapes::StructureShape.new(name: 'DescribeRecommendationFeedbackRequest')
31
+ DescribeRecommendationFeedbackResponse = Shapes::StructureShape.new(name: 'DescribeRecommendationFeedbackResponse')
22
32
  DescribeRepositoryAssociationRequest = Shapes::StructureShape.new(name: 'DescribeRepositoryAssociationRequest')
23
33
  DescribeRepositoryAssociationResponse = Shapes::StructureShape.new(name: 'DescribeRepositoryAssociationResponse')
24
34
  DisassociateRepositoryRequest = Shapes::StructureShape.new(name: 'DisassociateRepositoryRequest')
25
35
  DisassociateRepositoryResponse = Shapes::StructureShape.new(name: 'DisassociateRepositoryResponse')
26
36
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
37
+ FilePath = Shapes::StringShape.new(name: 'FilePath')
38
+ FindingsCount = Shapes::IntegerShape.new(name: 'FindingsCount')
27
39
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
40
+ JobState = Shapes::StringShape.new(name: 'JobState')
41
+ JobStates = Shapes::ListShape.new(name: 'JobStates')
42
+ LineNumber = Shapes::IntegerShape.new(name: 'LineNumber')
43
+ ListCodeReviewsMaxResults = Shapes::IntegerShape.new(name: 'ListCodeReviewsMaxResults')
44
+ ListCodeReviewsRequest = Shapes::StructureShape.new(name: 'ListCodeReviewsRequest')
45
+ ListCodeReviewsResponse = Shapes::StructureShape.new(name: 'ListCodeReviewsResponse')
46
+ ListRecommendationFeedbackRequest = Shapes::StructureShape.new(name: 'ListRecommendationFeedbackRequest')
47
+ ListRecommendationFeedbackResponse = Shapes::StructureShape.new(name: 'ListRecommendationFeedbackResponse')
48
+ ListRecommendationsRequest = Shapes::StructureShape.new(name: 'ListRecommendationsRequest')
49
+ ListRecommendationsResponse = Shapes::StructureShape.new(name: 'ListRecommendationsResponse')
28
50
  ListRepositoryAssociationsRequest = Shapes::StructureShape.new(name: 'ListRepositoryAssociationsRequest')
29
51
  ListRepositoryAssociationsResponse = Shapes::StructureShape.new(name: 'ListRepositoryAssociationsResponse')
30
52
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
53
+ MeteredLinesOfCodeCount = Shapes::IntegerShape.new(name: 'MeteredLinesOfCodeCount')
54
+ Metrics = Shapes::StructureShape.new(name: 'Metrics')
55
+ MetricsSummary = Shapes::StructureShape.new(name: 'MetricsSummary')
31
56
  Name = Shapes::StringShape.new(name: 'Name')
32
57
  Names = Shapes::ListShape.new(name: 'Names')
33
58
  NextToken = Shapes::StringShape.new(name: 'NextToken')
@@ -36,15 +61,35 @@ module Aws::CodeGuruReviewer
36
61
  Owners = Shapes::ListShape.new(name: 'Owners')
37
62
  ProviderType = Shapes::StringShape.new(name: 'ProviderType')
38
63
  ProviderTypes = Shapes::ListShape.new(name: 'ProviderTypes')
64
+ PullRequestId = Shapes::StringShape.new(name: 'PullRequestId')
65
+ PutRecommendationFeedbackRequest = Shapes::StructureShape.new(name: 'PutRecommendationFeedbackRequest')
66
+ PutRecommendationFeedbackResponse = Shapes::StructureShape.new(name: 'PutRecommendationFeedbackResponse')
67
+ Reaction = Shapes::StringShape.new(name: 'Reaction')
68
+ Reactions = Shapes::ListShape.new(name: 'Reactions')
69
+ RecommendationFeedback = Shapes::StructureShape.new(name: 'RecommendationFeedback')
70
+ RecommendationFeedbackSummaries = Shapes::ListShape.new(name: 'RecommendationFeedbackSummaries')
71
+ RecommendationFeedbackSummary = Shapes::StructureShape.new(name: 'RecommendationFeedbackSummary')
72
+ RecommendationId = Shapes::StringShape.new(name: 'RecommendationId')
73
+ RecommendationIds = Shapes::ListShape.new(name: 'RecommendationIds')
74
+ RecommendationSummaries = Shapes::ListShape.new(name: 'RecommendationSummaries')
75
+ RecommendationSummary = Shapes::StructureShape.new(name: 'RecommendationSummary')
39
76
  Repository = Shapes::StructureShape.new(name: 'Repository')
40
77
  RepositoryAssociation = Shapes::StructureShape.new(name: 'RepositoryAssociation')
41
78
  RepositoryAssociationState = Shapes::StringShape.new(name: 'RepositoryAssociationState')
42
79
  RepositoryAssociationStates = Shapes::ListShape.new(name: 'RepositoryAssociationStates')
43
80
  RepositoryAssociationSummaries = Shapes::ListShape.new(name: 'RepositoryAssociationSummaries')
44
81
  RepositoryAssociationSummary = Shapes::StructureShape.new(name: 'RepositoryAssociationSummary')
82
+ RepositoryNames = Shapes::ListShape.new(name: 'RepositoryNames')
83
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
84
+ SourceCodeType = Shapes::StructureShape.new(name: 'SourceCodeType')
45
85
  StateReason = Shapes::StringShape.new(name: 'StateReason')
86
+ Text = Shapes::StringShape.new(name: 'Text')
87
+ ThirdPartySourceRepository = Shapes::StructureShape.new(name: 'ThirdPartySourceRepository')
46
88
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
47
89
  TimeStamp = Shapes::TimestampShape.new(name: 'TimeStamp')
90
+ Type = Shapes::StringShape.new(name: 'Type')
91
+ UserId = Shapes::StringShape.new(name: 'UserId')
92
+ UserIds = Shapes::ListShape.new(name: 'UserIds')
48
93
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
49
94
 
50
95
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -60,9 +105,57 @@ module Aws::CodeGuruReviewer
60
105
  CodeCommitRepository.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
61
106
  CodeCommitRepository.struct_class = Types::CodeCommitRepository
62
107
 
108
+ CodeReview.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
109
+ CodeReview.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CodeReviewArn"))
110
+ CodeReview.add_member(:repository_name, Shapes::ShapeRef.new(shape: Name, location_name: "RepositoryName"))
111
+ CodeReview.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "Owner"))
112
+ CodeReview.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
113
+ CodeReview.add_member(:state, Shapes::ShapeRef.new(shape: JobState, location_name: "State"))
114
+ CodeReview.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, location_name: "StateReason"))
115
+ CodeReview.add_member(:created_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "CreatedTimeStamp"))
116
+ CodeReview.add_member(:last_updated_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LastUpdatedTimeStamp"))
117
+ CodeReview.add_member(:type, Shapes::ShapeRef.new(shape: Type, location_name: "Type"))
118
+ CodeReview.add_member(:pull_request_id, Shapes::ShapeRef.new(shape: PullRequestId, location_name: "PullRequestId"))
119
+ CodeReview.add_member(:source_code_type, Shapes::ShapeRef.new(shape: SourceCodeType, location_name: "SourceCodeType"))
120
+ CodeReview.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
121
+ CodeReview.struct_class = Types::CodeReview
122
+
123
+ CodeReviewSummaries.member = Shapes::ShapeRef.new(shape: CodeReviewSummary)
124
+
125
+ CodeReviewSummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
126
+ CodeReviewSummary.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CodeReviewArn"))
127
+ CodeReviewSummary.add_member(:repository_name, Shapes::ShapeRef.new(shape: Name, location_name: "RepositoryName"))
128
+ CodeReviewSummary.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "Owner"))
129
+ CodeReviewSummary.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
130
+ CodeReviewSummary.add_member(:state, Shapes::ShapeRef.new(shape: JobState, location_name: "State"))
131
+ CodeReviewSummary.add_member(:created_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "CreatedTimeStamp"))
132
+ CodeReviewSummary.add_member(:last_updated_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LastUpdatedTimeStamp"))
133
+ CodeReviewSummary.add_member(:type, Shapes::ShapeRef.new(shape: Type, location_name: "Type"))
134
+ CodeReviewSummary.add_member(:pull_request_id, Shapes::ShapeRef.new(shape: PullRequestId, location_name: "PullRequestId"))
135
+ CodeReviewSummary.add_member(:metrics_summary, Shapes::ShapeRef.new(shape: MetricsSummary, location_name: "MetricsSummary"))
136
+ CodeReviewSummary.struct_class = Types::CodeReviewSummary
137
+
138
+ CommitDiffSourceCodeType.add_member(:source_commit, Shapes::ShapeRef.new(shape: CommitId, location_name: "SourceCommit"))
139
+ CommitDiffSourceCodeType.add_member(:destination_commit, Shapes::ShapeRef.new(shape: CommitId, location_name: "DestinationCommit"))
140
+ CommitDiffSourceCodeType.struct_class = Types::CommitDiffSourceCodeType
141
+
63
142
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
64
143
  ConflictException.struct_class = Types::ConflictException
65
144
 
145
+ DescribeCodeReviewRequest.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "CodeReviewArn"))
146
+ DescribeCodeReviewRequest.struct_class = Types::DescribeCodeReviewRequest
147
+
148
+ DescribeCodeReviewResponse.add_member(:code_review, Shapes::ShapeRef.new(shape: CodeReview, location_name: "CodeReview"))
149
+ DescribeCodeReviewResponse.struct_class = Types::DescribeCodeReviewResponse
150
+
151
+ DescribeRecommendationFeedbackRequest.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "CodeReviewArn"))
152
+ DescribeRecommendationFeedbackRequest.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, required: true, location: "querystring", location_name: "RecommendationId"))
153
+ DescribeRecommendationFeedbackRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, location: "querystring", location_name: "UserId"))
154
+ DescribeRecommendationFeedbackRequest.struct_class = Types::DescribeRecommendationFeedbackRequest
155
+
156
+ DescribeRecommendationFeedbackResponse.add_member(:recommendation_feedback, Shapes::ShapeRef.new(shape: RecommendationFeedback, location_name: "RecommendationFeedback"))
157
+ DescribeRecommendationFeedbackResponse.struct_class = Types::DescribeRecommendationFeedbackResponse
158
+
66
159
  DescribeRepositoryAssociationRequest.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "AssociationArn"))
67
160
  DescribeRepositoryAssociationRequest.struct_class = Types::DescribeRepositoryAssociationRequest
68
161
 
@@ -78,6 +171,40 @@ module Aws::CodeGuruReviewer
78
171
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
79
172
  InternalServerException.struct_class = Types::InternalServerException
80
173
 
174
+ JobStates.member = Shapes::ShapeRef.new(shape: JobState)
175
+
176
+ ListCodeReviewsRequest.add_member(:provider_types, Shapes::ShapeRef.new(shape: ProviderTypes, location: "querystring", location_name: "ProviderTypes"))
177
+ ListCodeReviewsRequest.add_member(:states, Shapes::ShapeRef.new(shape: JobStates, location: "querystring", location_name: "States"))
178
+ ListCodeReviewsRequest.add_member(:repository_names, Shapes::ShapeRef.new(shape: RepositoryNames, location: "querystring", location_name: "RepositoryNames"))
179
+ ListCodeReviewsRequest.add_member(:type, Shapes::ShapeRef.new(shape: Type, required: true, location: "querystring", location_name: "Type"))
180
+ ListCodeReviewsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListCodeReviewsMaxResults, location: "querystring", location_name: "MaxResults"))
181
+ ListCodeReviewsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
182
+ ListCodeReviewsRequest.struct_class = Types::ListCodeReviewsRequest
183
+
184
+ ListCodeReviewsResponse.add_member(:code_review_summaries, Shapes::ShapeRef.new(shape: CodeReviewSummaries, location_name: "CodeReviewSummaries"))
185
+ ListCodeReviewsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
186
+ ListCodeReviewsResponse.struct_class = Types::ListCodeReviewsResponse
187
+
188
+ ListRecommendationFeedbackRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
189
+ ListRecommendationFeedbackRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
190
+ ListRecommendationFeedbackRequest.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "CodeReviewArn"))
191
+ ListRecommendationFeedbackRequest.add_member(:user_ids, Shapes::ShapeRef.new(shape: UserIds, location: "querystring", location_name: "UserIds"))
192
+ ListRecommendationFeedbackRequest.add_member(:recommendation_ids, Shapes::ShapeRef.new(shape: RecommendationIds, location: "querystring", location_name: "RecommendationIds"))
193
+ ListRecommendationFeedbackRequest.struct_class = Types::ListRecommendationFeedbackRequest
194
+
195
+ ListRecommendationFeedbackResponse.add_member(:recommendation_feedback_summaries, Shapes::ShapeRef.new(shape: RecommendationFeedbackSummaries, location_name: "RecommendationFeedbackSummaries"))
196
+ ListRecommendationFeedbackResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
197
+ ListRecommendationFeedbackResponse.struct_class = Types::ListRecommendationFeedbackResponse
198
+
199
+ ListRecommendationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
200
+ ListRecommendationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
201
+ ListRecommendationsRequest.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "CodeReviewArn"))
202
+ ListRecommendationsRequest.struct_class = Types::ListRecommendationsRequest
203
+
204
+ ListRecommendationsResponse.add_member(:recommendation_summaries, Shapes::ShapeRef.new(shape: RecommendationSummaries, location_name: "RecommendationSummaries"))
205
+ ListRecommendationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
206
+ ListRecommendationsResponse.struct_class = Types::ListRecommendationsResponse
207
+
81
208
  ListRepositoryAssociationsRequest.add_member(:provider_types, Shapes::ShapeRef.new(shape: ProviderTypes, location: "querystring", location_name: "ProviderType"))
82
209
  ListRepositoryAssociationsRequest.add_member(:states, Shapes::ShapeRef.new(shape: RepositoryAssociationStates, location: "querystring", location_name: "State"))
83
210
  ListRepositoryAssociationsRequest.add_member(:names, Shapes::ShapeRef.new(shape: Names, location: "querystring", location_name: "Name"))
@@ -90,6 +217,14 @@ module Aws::CodeGuruReviewer
90
217
  ListRepositoryAssociationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
91
218
  ListRepositoryAssociationsResponse.struct_class = Types::ListRepositoryAssociationsResponse
92
219
 
220
+ Metrics.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape: MeteredLinesOfCodeCount, location_name: "MeteredLinesOfCodeCount"))
221
+ Metrics.add_member(:findings_count, Shapes::ShapeRef.new(shape: FindingsCount, location_name: "FindingsCount"))
222
+ Metrics.struct_class = Types::Metrics
223
+
224
+ MetricsSummary.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape: MeteredLinesOfCodeCount, location_name: "MeteredLinesOfCodeCount"))
225
+ MetricsSummary.add_member(:findings_count, Shapes::ShapeRef.new(shape: FindingsCount, location_name: "FindingsCount"))
226
+ MetricsSummary.struct_class = Types::MetricsSummary
227
+
93
228
  Names.member = Shapes::ShapeRef.new(shape: Name)
94
229
 
95
230
  NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -99,11 +234,48 @@ module Aws::CodeGuruReviewer
99
234
 
100
235
  ProviderTypes.member = Shapes::ShapeRef.new(shape: ProviderType)
101
236
 
237
+ PutRecommendationFeedbackRequest.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CodeReviewArn"))
238
+ PutRecommendationFeedbackRequest.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, required: true, location_name: "RecommendationId"))
239
+ PutRecommendationFeedbackRequest.add_member(:reactions, Shapes::ShapeRef.new(shape: Reactions, required: true, location_name: "Reactions"))
240
+ PutRecommendationFeedbackRequest.struct_class = Types::PutRecommendationFeedbackRequest
241
+
242
+ PutRecommendationFeedbackResponse.struct_class = Types::PutRecommendationFeedbackResponse
243
+
244
+ Reactions.member = Shapes::ShapeRef.new(shape: Reaction)
245
+
246
+ RecommendationFeedback.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CodeReviewArn"))
247
+ RecommendationFeedback.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, location_name: "RecommendationId"))
248
+ RecommendationFeedback.add_member(:reactions, Shapes::ShapeRef.new(shape: Reactions, location_name: "Reactions"))
249
+ RecommendationFeedback.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, location_name: "UserId"))
250
+ RecommendationFeedback.add_member(:created_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "CreatedTimeStamp"))
251
+ RecommendationFeedback.add_member(:last_updated_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LastUpdatedTimeStamp"))
252
+ RecommendationFeedback.struct_class = Types::RecommendationFeedback
253
+
254
+ RecommendationFeedbackSummaries.member = Shapes::ShapeRef.new(shape: RecommendationFeedbackSummary)
255
+
256
+ RecommendationFeedbackSummary.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, location_name: "RecommendationId"))
257
+ RecommendationFeedbackSummary.add_member(:reactions, Shapes::ShapeRef.new(shape: Reactions, location_name: "Reactions"))
258
+ RecommendationFeedbackSummary.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, location_name: "UserId"))
259
+ RecommendationFeedbackSummary.struct_class = Types::RecommendationFeedbackSummary
260
+
261
+ RecommendationIds.member = Shapes::ShapeRef.new(shape: RecommendationId)
262
+
263
+ RecommendationSummaries.member = Shapes::ShapeRef.new(shape: RecommendationSummary)
264
+
265
+ RecommendationSummary.add_member(:file_path, Shapes::ShapeRef.new(shape: FilePath, location_name: "FilePath"))
266
+ RecommendationSummary.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, location_name: "RecommendationId"))
267
+ RecommendationSummary.add_member(:start_line, Shapes::ShapeRef.new(shape: LineNumber, location_name: "StartLine"))
268
+ RecommendationSummary.add_member(:end_line, Shapes::ShapeRef.new(shape: LineNumber, location_name: "EndLine"))
269
+ RecommendationSummary.add_member(:description, Shapes::ShapeRef.new(shape: Text, location_name: "Description"))
270
+ RecommendationSummary.struct_class = Types::RecommendationSummary
271
+
102
272
  Repository.add_member(:code_commit, Shapes::ShapeRef.new(shape: CodeCommitRepository, location_name: "CodeCommit"))
273
+ Repository.add_member(:bitbucket, Shapes::ShapeRef.new(shape: ThirdPartySourceRepository, location_name: "Bitbucket"))
103
274
  Repository.struct_class = Types::Repository
104
275
 
105
276
  RepositoryAssociation.add_member(:association_id, Shapes::ShapeRef.new(shape: AssociationId, location_name: "AssociationId"))
106
277
  RepositoryAssociation.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AssociationArn"))
278
+ RepositoryAssociation.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, location_name: "ConnectionArn"))
107
279
  RepositoryAssociation.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
108
280
  RepositoryAssociation.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "Owner"))
109
281
  RepositoryAssociation.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
@@ -118,6 +290,7 @@ module Aws::CodeGuruReviewer
118
290
  RepositoryAssociationSummaries.member = Shapes::ShapeRef.new(shape: RepositoryAssociationSummary)
119
291
 
120
292
  RepositoryAssociationSummary.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AssociationArn"))
293
+ RepositoryAssociationSummary.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, location_name: "ConnectionArn"))
121
294
  RepositoryAssociationSummary.add_member(:last_updated_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LastUpdatedTimeStamp"))
122
295
  RepositoryAssociationSummary.add_member(:association_id, Shapes::ShapeRef.new(shape: AssociationId, location_name: "AssociationId"))
123
296
  RepositoryAssociationSummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
@@ -126,9 +299,24 @@ module Aws::CodeGuruReviewer
126
299
  RepositoryAssociationSummary.add_member(:state, Shapes::ShapeRef.new(shape: RepositoryAssociationState, location_name: "State"))
127
300
  RepositoryAssociationSummary.struct_class = Types::RepositoryAssociationSummary
128
301
 
302
+ RepositoryNames.member = Shapes::ShapeRef.new(shape: Name)
303
+
304
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
305
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
306
+
307
+ SourceCodeType.add_member(:commit_diff, Shapes::ShapeRef.new(shape: CommitDiffSourceCodeType, location_name: "CommitDiff"))
308
+ SourceCodeType.struct_class = Types::SourceCodeType
309
+
310
+ ThirdPartySourceRepository.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
311
+ ThirdPartySourceRepository.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
312
+ ThirdPartySourceRepository.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, required: true, location_name: "Owner"))
313
+ ThirdPartySourceRepository.struct_class = Types::ThirdPartySourceRepository
314
+
129
315
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
130
316
  ThrottlingException.struct_class = Types::ThrottlingException
131
317
 
318
+ UserIds.member = Shapes::ShapeRef.new(shape: UserId)
319
+
132
320
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
133
321
  ValidationException.struct_class = Types::ValidationException
134
322
 
@@ -164,6 +352,32 @@ module Aws::CodeGuruReviewer
164
352
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
165
353
  end)
166
354
 
355
+ api.add_operation(:describe_code_review, Seahorse::Model::Operation.new.tap do |o|
356
+ o.name = "DescribeCodeReview"
357
+ o.http_method = "GET"
358
+ o.http_request_uri = "/codereviews/{CodeReviewArn}"
359
+ o.input = Shapes::ShapeRef.new(shape: DescribeCodeReviewRequest)
360
+ o.output = Shapes::ShapeRef.new(shape: DescribeCodeReviewResponse)
361
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
362
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
363
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
364
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
365
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
366
+ end)
367
+
368
+ api.add_operation(:describe_recommendation_feedback, Seahorse::Model::Operation.new.tap do |o|
369
+ o.name = "DescribeRecommendationFeedback"
370
+ o.http_method = "GET"
371
+ o.http_request_uri = "/feedback/{CodeReviewArn}"
372
+ o.input = Shapes::ShapeRef.new(shape: DescribeRecommendationFeedbackRequest)
373
+ o.output = Shapes::ShapeRef.new(shape: DescribeRecommendationFeedbackResponse)
374
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
375
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
376
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
377
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
378
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
379
+ end)
380
+
167
381
  api.add_operation(:describe_repository_association, Seahorse::Model::Operation.new.tap do |o|
168
382
  o.name = "DescribeRepositoryAssociation"
169
383
  o.http_method = "GET"
@@ -191,6 +405,62 @@ module Aws::CodeGuruReviewer
191
405
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
192
406
  end)
193
407
 
408
+ api.add_operation(:list_code_reviews, Seahorse::Model::Operation.new.tap do |o|
409
+ o.name = "ListCodeReviews"
410
+ o.http_method = "GET"
411
+ o.http_request_uri = "/codereviews"
412
+ o.input = Shapes::ShapeRef.new(shape: ListCodeReviewsRequest)
413
+ o.output = Shapes::ShapeRef.new(shape: ListCodeReviewsResponse)
414
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
415
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
416
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
417
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
418
+ o[:pager] = Aws::Pager.new(
419
+ limit_key: "max_results",
420
+ tokens: {
421
+ "next_token" => "next_token"
422
+ }
423
+ )
424
+ end)
425
+
426
+ api.add_operation(:list_recommendation_feedback, Seahorse::Model::Operation.new.tap do |o|
427
+ o.name = "ListRecommendationFeedback"
428
+ o.http_method = "GET"
429
+ o.http_request_uri = "/feedback/{CodeReviewArn}/RecommendationFeedback"
430
+ o.input = Shapes::ShapeRef.new(shape: ListRecommendationFeedbackRequest)
431
+ o.output = Shapes::ShapeRef.new(shape: ListRecommendationFeedbackResponse)
432
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
433
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
434
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
435
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
436
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
437
+ o[:pager] = Aws::Pager.new(
438
+ limit_key: "max_results",
439
+ tokens: {
440
+ "next_token" => "next_token"
441
+ }
442
+ )
443
+ end)
444
+
445
+ api.add_operation(:list_recommendations, Seahorse::Model::Operation.new.tap do |o|
446
+ o.name = "ListRecommendations"
447
+ o.http_method = "GET"
448
+ o.http_request_uri = "/codereviews/{CodeReviewArn}/Recommendations"
449
+ o.input = Shapes::ShapeRef.new(shape: ListRecommendationsRequest)
450
+ o.output = Shapes::ShapeRef.new(shape: ListRecommendationsResponse)
451
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
452
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
453
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
454
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
455
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
456
+ o[:pager] = Aws::Pager.new(
457
+ limit_key: "max_results",
458
+ tokens: {
459
+ "next_token" => "next_token"
460
+ }
461
+ )
462
+ end)
463
+
194
464
  api.add_operation(:list_repository_associations, Seahorse::Model::Operation.new.tap do |o|
195
465
  o.name = "ListRepositoryAssociations"
196
466
  o.http_method = "GET"
@@ -207,6 +477,19 @@ module Aws::CodeGuruReviewer
207
477
  }
208
478
  )
209
479
  end)
480
+
481
+ api.add_operation(:put_recommendation_feedback, Seahorse::Model::Operation.new.tap do |o|
482
+ o.name = "PutRecommendationFeedback"
483
+ o.http_method = "PUT"
484
+ o.http_request_uri = "/feedback"
485
+ o.input = Shapes::ShapeRef.new(shape: PutRecommendationFeedbackRequest)
486
+ o.output = Shapes::ShapeRef.new(shape: PutRecommendationFeedbackResponse)
487
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
488
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
489
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
490
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
491
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
492
+ end)
210
493
  end
211
494
 
212
495
  end
@@ -29,6 +29,7 @@ module Aws::CodeGuruReviewer
29
29
  # * {ConflictException}
30
30
  # * {InternalServerException}
31
31
  # * {NotFoundException}
32
+ # * {ResourceNotFoundException}
32
33
  # * {ThrottlingException}
33
34
  # * {ValidationException}
34
35
  #
@@ -98,6 +99,21 @@ module Aws::CodeGuruReviewer
98
99
  end
99
100
  end
100
101
 
102
+ class ResourceNotFoundException < ServiceError
103
+
104
+ # @param [Seahorse::Client::RequestContext] context
105
+ # @param [String] message
106
+ # @param [Aws::CodeGuruReviewer::Types::ResourceNotFoundException] data
107
+ def initialize(context, message, data = Aws::EmptyStructure.new)
108
+ super(context, message, data)
109
+ end
110
+
111
+ # @return [String]
112
+ def message
113
+ @message || @data[:message]
114
+ end
115
+ end
116
+
101
117
  class ThrottlingException < ServiceError
102
118
 
103
119
  # @param [Seahorse::Client::RequestContext] context
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::CodeGuruReviewer
9
- # This class provides a resource oriented interface for CodeGuruReviewer.
10
- # To create a resource object:
11
- # resource = Aws::CodeGuruReviewer::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::CodeGuruReviewer::Client.new(region: 'us-west-2')
15
- # resource = Aws::CodeGuruReviewer::Resource.new(client: client)
9
+
16
10
  class Resource
17
11
 
18
12
  # @param options ({})
@@ -28,6 +28,11 @@ module Aws::CodeGuruReviewer
28
28
  # code_commit: {
29
29
  # name: "Name", # required
30
30
  # },
31
+ # bitbucket: {
32
+ # name: "Name", # required
33
+ # connection_arn: "ConnectionArn", # required
34
+ # owner: "Owner", # required
35
+ # },
31
36
  # },
32
37
  # client_request_token: "ClientRequestToken",
33
38
  # }
@@ -40,22 +45,22 @@ module Aws::CodeGuruReviewer
40
45
  # Unique, case-sensitive identifier that you provide to ensure the
41
46
  # idempotency of the request.
42
47
  #
43
- # If you want to add a new repository association, this parameter
44
- # specifies a unique identifier for the new repository association
45
- # that helps ensure idempotency.
48
+ # To add a new repository association, this parameter specifies a
49
+ # unique identifier for the new repository association that helps
50
+ # ensure idempotency.
46
51
  #
47
- # If you use the AWS CLI or one of the AWS SDK to call this operation,
48
- # then you can leave this parameter empty. The CLI or SDK generates a
49
- # random UUID for you and includes that in the request. If you don't
50
- # use the SDK and instead generate a raw HTTP request to the Secrets
51
- # Manager service endpoint, then you must generate a
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
52
57
  # ClientRequestToken yourself for new versions and include that value
53
58
  # in the request.
54
59
  #
55
- # You typically only need to interact with this value if you implement
56
- # your own retry logic and want to ensure that a given repository
57
- # association is not created twice. We recommend that you generate a
58
- # UUID-type value to ensure uniqueness within the specified repository
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
59
64
  # association.
60
65
  #
61
66
  # Amazon CodeGuru Reviewer uses this value to prevent the accidental
@@ -105,6 +110,164 @@ module Aws::CodeGuruReviewer
105
110
  include Aws::Structure
106
111
  end
107
112
 
113
+ # Information about a code review.
114
+ #
115
+ # @!attribute [rw] name
116
+ # The name of the code review.
117
+ # @return [String]
118
+ #
119
+ # @!attribute [rw] code_review_arn
120
+ # The Amazon Resource Name (ARN) of the code review to describe.
121
+ # @return [String]
122
+ #
123
+ # @!attribute [rw] repository_name
124
+ # The name of the repository.
125
+ # @return [String]
126
+ #
127
+ # @!attribute [rw] owner
128
+ # The owner of the repository.
129
+ # @return [String]
130
+ #
131
+ # @!attribute [rw] provider_type
132
+ # The provider type of the repository association.
133
+ # @return [String]
134
+ #
135
+ # @!attribute [rw] state
136
+ # The state of the code review.
137
+ # @return [String]
138
+ #
139
+ # @!attribute [rw] state_reason
140
+ # The reason for the state of the code review.
141
+ # @return [String]
142
+ #
143
+ # @!attribute [rw] created_time_stamp
144
+ # The time, in milliseconds since the epoch, when the code review was
145
+ # created.
146
+ # @return [Time]
147
+ #
148
+ # @!attribute [rw] last_updated_time_stamp
149
+ # The time, in milliseconds since the epoch, when the code review was
150
+ # last updated.
151
+ # @return [Time]
152
+ #
153
+ # @!attribute [rw] type
154
+ # The type of code review.
155
+ # @return [String]
156
+ #
157
+ # @!attribute [rw] pull_request_id
158
+ # The pull request ID for the code review.
159
+ # @return [String]
160
+ #
161
+ # @!attribute [rw] source_code_type
162
+ # The type of the source code for the code review.
163
+ # @return [Types::SourceCodeType]
164
+ #
165
+ # @!attribute [rw] metrics
166
+ # The statistics from the code review.
167
+ # @return [Types::Metrics]
168
+ #
169
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeReview AWS API Documentation
170
+ #
171
+ class CodeReview < Struct.new(
172
+ :name,
173
+ :code_review_arn,
174
+ :repository_name,
175
+ :owner,
176
+ :provider_type,
177
+ :state,
178
+ :state_reason,
179
+ :created_time_stamp,
180
+ :last_updated_time_stamp,
181
+ :type,
182
+ :pull_request_id,
183
+ :source_code_type,
184
+ :metrics)
185
+ include Aws::Structure
186
+ end
187
+
188
+ # Information about the summary of the code review.
189
+ #
190
+ # @!attribute [rw] name
191
+ # The name of the code review.
192
+ # @return [String]
193
+ #
194
+ # @!attribute [rw] code_review_arn
195
+ # The Amazon Resource Name (ARN) of the code review to describe.
196
+ # @return [String]
197
+ #
198
+ # @!attribute [rw] repository_name
199
+ # The name of the repository.
200
+ # @return [String]
201
+ #
202
+ # @!attribute [rw] owner
203
+ # The owner of the repository.
204
+ # @return [String]
205
+ #
206
+ # @!attribute [rw] provider_type
207
+ # The provider type of the repository association.
208
+ # @return [String]
209
+ #
210
+ # @!attribute [rw] state
211
+ # The state of the code review.
212
+ # @return [String]
213
+ #
214
+ # @!attribute [rw] created_time_stamp
215
+ # The time, in milliseconds since the epoch, when the code review was
216
+ # created.
217
+ # @return [Time]
218
+ #
219
+ # @!attribute [rw] last_updated_time_stamp
220
+ # The time, in milliseconds since the epoch, when the code review was
221
+ # last updated.
222
+ # @return [Time]
223
+ #
224
+ # @!attribute [rw] type
225
+ # The type of the code review.
226
+ # @return [String]
227
+ #
228
+ # @!attribute [rw] pull_request_id
229
+ # The pull request ID for the code review.
230
+ # @return [String]
231
+ #
232
+ # @!attribute [rw] metrics_summary
233
+ # The statistics from the code review.
234
+ # @return [Types::MetricsSummary]
235
+ #
236
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeReviewSummary AWS API Documentation
237
+ #
238
+ class CodeReviewSummary < Struct.new(
239
+ :name,
240
+ :code_review_arn,
241
+ :repository_name,
242
+ :owner,
243
+ :provider_type,
244
+ :state,
245
+ :created_time_stamp,
246
+ :last_updated_time_stamp,
247
+ :type,
248
+ :pull_request_id,
249
+ :metrics_summary)
250
+ include Aws::Structure
251
+ end
252
+
253
+ # The commit diff for the pull request.
254
+ #
255
+ # @!attribute [rw] source_commit
256
+ # Source Commit SHA.
257
+ # @return [String]
258
+ #
259
+ # @!attribute [rw] destination_commit
260
+ # Destination Commit SHA
261
+ # @return [String]
262
+ #
263
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CommitDiffSourceCodeType AWS API Documentation
264
+ #
265
+ class CommitDiffSourceCodeType < Struct.new(
266
+ :source_commit,
267
+ :destination_commit)
268
+ include Aws::Structure
269
+ end
270
+
108
271
  # The requested operation would cause a conflict with the current state
109
272
  # of a service resource associated with the request. Resolve the
110
273
  # conflict before retrying this request.
@@ -119,6 +282,78 @@ module Aws::CodeGuruReviewer
119
282
  include Aws::Structure
120
283
  end
121
284
 
285
+ # @note When making an API call, you may pass DescribeCodeReviewRequest
286
+ # data as a hash:
287
+ #
288
+ # {
289
+ # code_review_arn: "Arn", # required
290
+ # }
291
+ #
292
+ # @!attribute [rw] code_review_arn
293
+ # The Amazon Resource Name (ARN) of the code review to describe.
294
+ # @return [String]
295
+ #
296
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReviewRequest AWS API Documentation
297
+ #
298
+ class DescribeCodeReviewRequest < Struct.new(
299
+ :code_review_arn)
300
+ include Aws::Structure
301
+ end
302
+
303
+ # @!attribute [rw] code_review
304
+ # Information about the code review.
305
+ # @return [Types::CodeReview]
306
+ #
307
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReviewResponse AWS API Documentation
308
+ #
309
+ class DescribeCodeReviewResponse < Struct.new(
310
+ :code_review)
311
+ include Aws::Structure
312
+ end
313
+
314
+ # @note When making an API call, you may pass DescribeRecommendationFeedbackRequest
315
+ # data as a hash:
316
+ #
317
+ # {
318
+ # code_review_arn: "Arn", # required
319
+ # recommendation_id: "RecommendationId", # required
320
+ # user_id: "UserId",
321
+ # }
322
+ #
323
+ # @!attribute [rw] code_review_arn
324
+ # The Amazon Resource Name (ARN) that identifies the code review.
325
+ # @return [String]
326
+ #
327
+ # @!attribute [rw] recommendation_id
328
+ # The recommendation ID that can be used to track the provided
329
+ # recommendations and then to collect the feedback.
330
+ # @return [String]
331
+ #
332
+ # @!attribute [rw] user_id
333
+ # Optional parameter to describe the feedback for a given user. If
334
+ # this is not supplied, it defaults to the user making the request.
335
+ # @return [String]
336
+ #
337
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedbackRequest AWS API Documentation
338
+ #
339
+ class DescribeRecommendationFeedbackRequest < Struct.new(
340
+ :code_review_arn,
341
+ :recommendation_id,
342
+ :user_id)
343
+ include Aws::Structure
344
+ end
345
+
346
+ # @!attribute [rw] recommendation_feedback
347
+ # The recommendation feedback given by the user.
348
+ # @return [Types::RecommendationFeedback]
349
+ #
350
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedbackResponse AWS API Documentation
351
+ #
352
+ class DescribeRecommendationFeedbackResponse < Struct.new(
353
+ :recommendation_feedback)
354
+ include Aws::Structure
355
+ end
356
+
122
357
  # @note When making an API call, you may pass DescribeRepositoryAssociationRequest
123
358
  # data as a hash:
124
359
  #
@@ -127,7 +362,8 @@ module Aws::CodeGuruReviewer
127
362
  # }
128
363
  #
129
364
  # @!attribute [rw] association_arn
130
- # The Amazon Resource Name (ARN) identifying the association.
365
+ # The Amazon Resource Name (ARN) identifying the association. You can
366
+ # retrieve this ARN by calling `ListRepositories`.
131
367
  # @return [String]
132
368
  #
133
369
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociationRequest AWS API Documentation
@@ -190,11 +426,201 @@ module Aws::CodeGuruReviewer
190
426
  include Aws::Structure
191
427
  end
192
428
 
429
+ # @note When making an API call, you may pass ListCodeReviewsRequest
430
+ # data as a hash:
431
+ #
432
+ # {
433
+ # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
434
+ # states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
435
+ # repository_names: ["Name"],
436
+ # type: "PullRequest", # required, accepts PullRequest
437
+ # max_results: 1,
438
+ # next_token: "NextToken",
439
+ # }
440
+ #
441
+ # @!attribute [rw] provider_types
442
+ # List of provider types for filtering that needs to be applied before
443
+ # displaying the result. For example, "providerTypes=\[GitHub\]"
444
+ # will list code reviews from GitHub.
445
+ # @return [Array<String>]
446
+ #
447
+ # @!attribute [rw] states
448
+ # List of states for filtering that needs to be applied before
449
+ # displaying the result. For example, "states=\[Pending\]" will list
450
+ # code reviews in the Pending state.
451
+ # @return [Array<String>]
452
+ #
453
+ # @!attribute [rw] repository_names
454
+ # List of repository names for filtering that needs to be applied
455
+ # before displaying the result.
456
+ # @return [Array<String>]
457
+ #
458
+ # @!attribute [rw] type
459
+ # The type of code reviews to list in the response.
460
+ # @return [String]
461
+ #
462
+ # @!attribute [rw] max_results
463
+ # The maximum number of results that are returned per call. The
464
+ # default is 100.
465
+ # @return [Integer]
466
+ #
467
+ # @!attribute [rw] next_token
468
+ # If nextToken is returned, there are more results available. The
469
+ # value of nextToken is a unique pagination token for each page. Make
470
+ # the call again using the returned token to retrieve the next page.
471
+ # Keep all other arguments unchanged.
472
+ # @return [String]
473
+ #
474
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviewsRequest AWS API Documentation
475
+ #
476
+ class ListCodeReviewsRequest < Struct.new(
477
+ :provider_types,
478
+ :states,
479
+ :repository_names,
480
+ :type,
481
+ :max_results,
482
+ :next_token)
483
+ include Aws::Structure
484
+ end
485
+
486
+ # @!attribute [rw] code_review_summaries
487
+ # A list of code reviews that meet the criteria of the request.
488
+ # @return [Array<Types::CodeReviewSummary>]
489
+ #
490
+ # @!attribute [rw] next_token
491
+ # Pagination token.
492
+ # @return [String]
493
+ #
494
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviewsResponse AWS API Documentation
495
+ #
496
+ class ListCodeReviewsResponse < Struct.new(
497
+ :code_review_summaries,
498
+ :next_token)
499
+ include Aws::Structure
500
+ end
501
+
502
+ # @note When making an API call, you may pass ListRecommendationFeedbackRequest
503
+ # data as a hash:
504
+ #
505
+ # {
506
+ # next_token: "NextToken",
507
+ # max_results: 1,
508
+ # code_review_arn: "Arn", # required
509
+ # user_ids: ["UserId"],
510
+ # recommendation_ids: ["RecommendationId"],
511
+ # }
512
+ #
513
+ # @!attribute [rw] next_token
514
+ # If nextToken is returned, there are more results available. The
515
+ # value of nextToken is a unique pagination token for each page. Make
516
+ # the call again using the returned token to retrieve the next page.
517
+ # Keep all other arguments unchanged.
518
+ # @return [String]
519
+ #
520
+ # @!attribute [rw] max_results
521
+ # The maximum number of results that are returned per call. The
522
+ # default is 100.
523
+ # @return [Integer]
524
+ #
525
+ # @!attribute [rw] code_review_arn
526
+ # The Amazon Resource Name (ARN) that identifies the code review.
527
+ # @return [String]
528
+ #
529
+ # @!attribute [rw] user_ids
530
+ # Filter on userIds that need to be applied before displaying the
531
+ # result. This can be used to query all the recommendation feedback
532
+ # for a code review from a given user.
533
+ # @return [Array<String>]
534
+ #
535
+ # @!attribute [rw] recommendation_ids
536
+ # Filter on recommendationIds that need to be applied before
537
+ # displaying the result. This can be used to query all the
538
+ # recommendation feedback for a given recommendation.
539
+ # @return [Array<String>]
540
+ #
541
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedbackRequest AWS API Documentation
542
+ #
543
+ class ListRecommendationFeedbackRequest < Struct.new(
544
+ :next_token,
545
+ :max_results,
546
+ :code_review_arn,
547
+ :user_ids,
548
+ :recommendation_ids)
549
+ include Aws::Structure
550
+ end
551
+
552
+ # @!attribute [rw] recommendation_feedback_summaries
553
+ # Recommendation feedback summaries corresponding to the code reivew
554
+ # ARN.
555
+ # @return [Array<Types::RecommendationFeedbackSummary>]
556
+ #
557
+ # @!attribute [rw] next_token
558
+ # If nextToken is returned, there are more results available. The
559
+ # value of nextToken is a unique pagination token for each page. Make
560
+ # the call again using the returned token to retrieve the next page.
561
+ # Keep all other arguments unchanged.
562
+ # @return [String]
563
+ #
564
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedbackResponse AWS API Documentation
565
+ #
566
+ class ListRecommendationFeedbackResponse < Struct.new(
567
+ :recommendation_feedback_summaries,
568
+ :next_token)
569
+ include Aws::Structure
570
+ end
571
+
572
+ # @note When making an API call, you may pass ListRecommendationsRequest
573
+ # data as a hash:
574
+ #
575
+ # {
576
+ # next_token: "NextToken",
577
+ # max_results: 1,
578
+ # code_review_arn: "Arn", # required
579
+ # }
580
+ #
581
+ # @!attribute [rw] next_token
582
+ # Pagination token.
583
+ # @return [String]
584
+ #
585
+ # @!attribute [rw] max_results
586
+ # The maximum number of results that are returned per call. The
587
+ # default is 100.
588
+ # @return [Integer]
589
+ #
590
+ # @!attribute [rw] code_review_arn
591
+ # The Amazon Resource Name (ARN) of the code review to describe.
592
+ # @return [String]
593
+ #
594
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationsRequest AWS API Documentation
595
+ #
596
+ class ListRecommendationsRequest < Struct.new(
597
+ :next_token,
598
+ :max_results,
599
+ :code_review_arn)
600
+ include Aws::Structure
601
+ end
602
+
603
+ # @!attribute [rw] recommendation_summaries
604
+ # List of recommendations for the requested code review.
605
+ # @return [Array<Types::RecommendationSummary>]
606
+ #
607
+ # @!attribute [rw] next_token
608
+ # Pagination token.
609
+ # @return [String]
610
+ #
611
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationsResponse AWS API Documentation
612
+ #
613
+ class ListRecommendationsResponse < Struct.new(
614
+ :recommendation_summaries,
615
+ :next_token)
616
+ include Aws::Structure
617
+ end
618
+
193
619
  # @note When making an API call, you may pass ListRepositoryAssociationsRequest
194
620
  # data as a hash:
195
621
  #
196
622
  # {
197
- # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub
623
+ # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
198
624
  # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
199
625
  # names: ["Name"],
200
626
  # owners: ["Owner"],
@@ -211,24 +637,26 @@ module Aws::CodeGuruReviewer
211
637
  # @return [Array<String>]
212
638
  #
213
639
  # @!attribute [rw] names
214
- # List of names to use as a filter.
640
+ # List of repository names to use as a filter.
215
641
  # @return [Array<String>]
216
642
  #
217
643
  # @!attribute [rw] owners
218
- # List of owners to use as a filter. For AWS CodeCommit, the owner is
219
- # the AWS account id. For GitHub, it is the GitHub account name.
644
+ # List of owners to use as a filter. For GitHub, this is name of the
645
+ # GitHub account that was used to associate the repository. For AWS
646
+ # CodeCommit, it is the name of the CodeCommit account that was used
647
+ # to associate the repository.
220
648
  # @return [Array<String>]
221
649
  #
222
650
  # @!attribute [rw] max_results
223
651
  # The maximum number of repository association results returned by
224
652
  # `ListRepositoryAssociations` in paginated output. When this
225
653
  # parameter is used, `ListRepositoryAssociations` only returns
226
- # `maxResults` results in a single page along with a `nextToken`
227
- # response element. The remaining results of the initial request can
228
- # be seen by sending another `ListRepositoryAssociations` request with
229
- # the returned `nextToken` value. This value can be between 1 and 100.
230
- # If this parameter is not used, then `ListRepositoryAssociations`
231
- # returns up to 100 results and a `nextToken` value if applicable.
654
+ # `maxResults` results in a single page with a `nextToken` response
655
+ # element. The remaining results of the initial request can be seen by
656
+ # sending another `ListRepositoryAssociations` request with the
657
+ # returned `nextToken` value. This value can be between 1 and 25. If
658
+ # this parameter is not used, `ListRepositoryAssociations` returns up
659
+ # to 25 results and a `nextToken` value if applicable.
232
660
  # @return [Integer]
233
661
  #
234
662
  # @!attribute [rw] next_token
@@ -238,9 +666,9 @@ module Aws::CodeGuruReviewer
238
666
  # continues from the end of the previous results that returned the
239
667
  # `nextToken` value.
240
668
  #
241
- # <note markdown="1"> This token should be treated as an opaque identifier that is only
242
- # used to retrieve the next items in a list and not for other
243
- # programmatic purposes.
669
+ # <note markdown="1"> Treat this token as an opaque identifier that is only used to
670
+ # retrieve the next items in a list and not for other programmatic
671
+ # purposes.
244
672
  #
245
673
  # </note>
246
674
  # @return [String]
@@ -278,6 +706,42 @@ module Aws::CodeGuruReviewer
278
706
  include Aws::Structure
279
707
  end
280
708
 
709
+ # Information about the statistics from the code review.
710
+ #
711
+ # @!attribute [rw] metered_lines_of_code_count
712
+ # Lines of code metered in the code review.
713
+ # @return [Integer]
714
+ #
715
+ # @!attribute [rw] findings_count
716
+ # Total number of recommendations found in the code review.
717
+ # @return [Integer]
718
+ #
719
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/Metrics AWS API Documentation
720
+ #
721
+ class Metrics < Struct.new(
722
+ :metered_lines_of_code_count,
723
+ :findings_count)
724
+ include Aws::Structure
725
+ end
726
+
727
+ # Information about metrics summaries.
728
+ #
729
+ # @!attribute [rw] metered_lines_of_code_count
730
+ # Lines of code metered in the code review.
731
+ # @return [Integer]
732
+ #
733
+ # @!attribute [rw] findings_count
734
+ # Total number of recommendations found in the code review.
735
+ # @return [Integer]
736
+ #
737
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/MetricsSummary AWS API Documentation
738
+ #
739
+ class MetricsSummary < Struct.new(
740
+ :metered_lines_of_code_count,
741
+ :findings_count)
742
+ include Aws::Structure
743
+ end
744
+
281
745
  # The resource specified in the request was not found.
282
746
  #
283
747
  # @!attribute [rw] message
@@ -290,6 +754,145 @@ module Aws::CodeGuruReviewer
290
754
  include Aws::Structure
291
755
  end
292
756
 
757
+ # @note When making an API call, you may pass PutRecommendationFeedbackRequest
758
+ # data as a hash:
759
+ #
760
+ # {
761
+ # code_review_arn: "Arn", # required
762
+ # recommendation_id: "RecommendationId", # required
763
+ # reactions: ["ThumbsUp"], # required, accepts ThumbsUp, ThumbsDown
764
+ # }
765
+ #
766
+ # @!attribute [rw] code_review_arn
767
+ # The Amazon Resource Name (ARN) that identifies the code review.
768
+ # @return [String]
769
+ #
770
+ # @!attribute [rw] recommendation_id
771
+ # The recommendation ID that can be used to track the provided
772
+ # recommendations and then to collect the feedback.
773
+ # @return [String]
774
+ #
775
+ # @!attribute [rw] reactions
776
+ # List for storing reactions. Reactions are utf-8 text code for
777
+ # emojis. If you send an empty list it clears all your feedback.
778
+ # @return [Array<String>]
779
+ #
780
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/PutRecommendationFeedbackRequest AWS API Documentation
781
+ #
782
+ class PutRecommendationFeedbackRequest < Struct.new(
783
+ :code_review_arn,
784
+ :recommendation_id,
785
+ :reactions)
786
+ include Aws::Structure
787
+ end
788
+
789
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/PutRecommendationFeedbackResponse AWS API Documentation
790
+ #
791
+ class PutRecommendationFeedbackResponse < Aws::EmptyStructure; end
792
+
793
+ # Information about the recommendation feedback.
794
+ #
795
+ # @!attribute [rw] code_review_arn
796
+ # The Amazon Resource Name (ARN) that identifies the code review.
797
+ # @return [String]
798
+ #
799
+ # @!attribute [rw] recommendation_id
800
+ # The recommendation ID that can be used to track the provided
801
+ # recommendations. Later on it can be used to collect the feedback.
802
+ # @return [String]
803
+ #
804
+ # @!attribute [rw] reactions
805
+ # List for storing reactions. Reactions are utf-8 text code for
806
+ # emojis. You can send an empty list to clear off all your feedback.
807
+ # @return [Array<String>]
808
+ #
809
+ # @!attribute [rw] user_id
810
+ # The user principal that made the API call.
811
+ # @return [String]
812
+ #
813
+ # @!attribute [rw] created_time_stamp
814
+ # The time at which the feedback was created.
815
+ # @return [Time]
816
+ #
817
+ # @!attribute [rw] last_updated_time_stamp
818
+ # The time at which the feedback was last updated.
819
+ # @return [Time]
820
+ #
821
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RecommendationFeedback AWS API Documentation
822
+ #
823
+ class RecommendationFeedback < Struct.new(
824
+ :code_review_arn,
825
+ :recommendation_id,
826
+ :reactions,
827
+ :user_id,
828
+ :created_time_stamp,
829
+ :last_updated_time_stamp)
830
+ include Aws::Structure
831
+ end
832
+
833
+ # Information about recommendation feedback summaries.
834
+ #
835
+ # @!attribute [rw] recommendation_id
836
+ # The recommendation ID that can be used to track the provided
837
+ # recommendations. Later on it can be used to collect the feedback.
838
+ # @return [String]
839
+ #
840
+ # @!attribute [rw] reactions
841
+ # List for storing reactions. Reactions are utf-8 text code for
842
+ # emojis.
843
+ # @return [Array<String>]
844
+ #
845
+ # @!attribute [rw] user_id
846
+ # The identifier for the user that gave the feedback.
847
+ # @return [String]
848
+ #
849
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RecommendationFeedbackSummary AWS API Documentation
850
+ #
851
+ class RecommendationFeedbackSummary < Struct.new(
852
+ :recommendation_id,
853
+ :reactions,
854
+ :user_id)
855
+ include Aws::Structure
856
+ end
857
+
858
+ # Information about recommendations.
859
+ #
860
+ # @!attribute [rw] file_path
861
+ # Name of the file on which a recommendation is provided.
862
+ # @return [String]
863
+ #
864
+ # @!attribute [rw] recommendation_id
865
+ # The recommendation ID that can be used to track the provided
866
+ # recommendations. Later on it can be used to collect the feedback.
867
+ # @return [String]
868
+ #
869
+ # @!attribute [rw] start_line
870
+ # Start line from where the recommendation is applicable in the source
871
+ # commit or source branch.
872
+ # @return [Integer]
873
+ #
874
+ # @!attribute [rw] end_line
875
+ # Last line where the recommendation is applicable in the source
876
+ # commit or source branch. For a single line comment the start line
877
+ # and end line values will be the same.
878
+ # @return [Integer]
879
+ #
880
+ # @!attribute [rw] description
881
+ # A description of the recommendation generated by CodeGuru Reviewer
882
+ # for the lines of code between the start line and the end line.
883
+ # @return [String]
884
+ #
885
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RecommendationSummary AWS API Documentation
886
+ #
887
+ class RecommendationSummary < Struct.new(
888
+ :file_path,
889
+ :recommendation_id,
890
+ :start_line,
891
+ :end_line,
892
+ :description)
893
+ include Aws::Structure
894
+ end
895
+
293
896
  # Information about a repository.
294
897
  #
295
898
  # @note When making an API call, you may pass Repository
@@ -299,23 +902,33 @@ module Aws::CodeGuruReviewer
299
902
  # code_commit: {
300
903
  # name: "Name", # required
301
904
  # },
905
+ # bitbucket: {
906
+ # name: "Name", # required
907
+ # connection_arn: "ConnectionArn", # required
908
+ # owner: "Owner", # required
909
+ # },
302
910
  # }
303
911
  #
304
912
  # @!attribute [rw] code_commit
305
913
  # Information about an AWS CodeCommit repository.
306
914
  # @return [Types::CodeCommitRepository]
307
915
  #
916
+ # @!attribute [rw] bitbucket
917
+ # Information about a Bitbucket Cloud repository.
918
+ # @return [Types::ThirdPartySourceRepository]
919
+ #
308
920
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/Repository AWS API Documentation
309
921
  #
310
922
  class Repository < Struct.new(
311
- :code_commit)
923
+ :code_commit,
924
+ :bitbucket)
312
925
  include Aws::Structure
313
926
  end
314
927
 
315
928
  # Information about a repository association.
316
929
  #
317
930
  # @!attribute [rw] association_id
318
- # The id of the repository association.
931
+ # The ID of the repository association.
319
932
  # @return [String]
320
933
  #
321
934
  # @!attribute [rw] association_arn
@@ -323,6 +936,11 @@ module Aws::CodeGuruReviewer
323
936
  # association.
324
937
  # @return [String]
325
938
  #
939
+ # @!attribute [rw] connection_arn
940
+ # The Amazon Resource Name (ARN) identifying the repository
941
+ # connection.
942
+ # @return [String]
943
+ #
326
944
  # @!attribute [rw] name
327
945
  # The name of the repository.
328
946
  # @return [String]
@@ -359,6 +977,7 @@ module Aws::CodeGuruReviewer
359
977
  class RepositoryAssociation < Struct.new(
360
978
  :association_id,
361
979
  :association_arn,
980
+ :connection_arn,
362
981
  :name,
363
982
  :owner,
364
983
  :provider_type,
@@ -376,6 +995,11 @@ module Aws::CodeGuruReviewer
376
995
  # association.
377
996
  # @return [String]
378
997
  #
998
+ # @!attribute [rw] connection_arn
999
+ # The Amazon Resource Name (ARN) identifying the repository
1000
+ # connection.
1001
+ # @return [String]
1002
+ #
379
1003
  # @!attribute [rw] last_updated_time_stamp
380
1004
  # The time, in milliseconds since the epoch, since the repository
381
1005
  # association was last updated.
@@ -410,8 +1034,7 @@ module Aws::CodeGuruReviewer
410
1034
  #
411
1035
  # Failed
412
1036
  #
413
- # : The association failed. For more information about troubleshooting
414
- # (or why it failed), see \[troubleshooting topic\].
1037
+ # : The association failed.
415
1038
  #
416
1039
  # Disassociating
417
1040
  #
@@ -423,6 +1046,7 @@ module Aws::CodeGuruReviewer
423
1046
  #
424
1047
  class RepositoryAssociationSummary < Struct.new(
425
1048
  :association_arn,
1049
+ :connection_arn,
426
1050
  :last_updated_time_stamp,
427
1051
  :association_id,
428
1052
  :name,
@@ -432,6 +1056,65 @@ module Aws::CodeGuruReviewer
432
1056
  include Aws::Structure
433
1057
  end
434
1058
 
1059
+ # The resource specified in the request was not found.
1060
+ #
1061
+ # @!attribute [rw] message
1062
+ # @return [String]
1063
+ #
1064
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ResourceNotFoundException AWS API Documentation
1065
+ #
1066
+ class ResourceNotFoundException < Struct.new(
1067
+ :message)
1068
+ include Aws::Structure
1069
+ end
1070
+
1071
+ # Information about the source code type.
1072
+ #
1073
+ # @!attribute [rw] commit_diff
1074
+ # The commit diff for the pull request.
1075
+ # @return [Types::CommitDiffSourceCodeType]
1076
+ #
1077
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/SourceCodeType AWS API Documentation
1078
+ #
1079
+ class SourceCodeType < Struct.new(
1080
+ :commit_diff)
1081
+ include Aws::Structure
1082
+ end
1083
+
1084
+ # Information about a third party source repository connected through
1085
+ # CodeStar Connections.
1086
+ #
1087
+ # @note When making an API call, you may pass ThirdPartySourceRepository
1088
+ # data as a hash:
1089
+ #
1090
+ # {
1091
+ # name: "Name", # required
1092
+ # connection_arn: "ConnectionArn", # required
1093
+ # owner: "Owner", # required
1094
+ # }
1095
+ #
1096
+ # @!attribute [rw] name
1097
+ # The name of the third party source repository.
1098
+ # @return [String]
1099
+ #
1100
+ # @!attribute [rw] connection_arn
1101
+ # The Amazon Resource Name (ARN) identifying the repository
1102
+ # connection.
1103
+ # @return [String]
1104
+ #
1105
+ # @!attribute [rw] owner
1106
+ # The username of the owner of the repository.
1107
+ # @return [String]
1108
+ #
1109
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ThirdPartySourceRepository AWS API Documentation
1110
+ #
1111
+ class ThirdPartySourceRepository < Struct.new(
1112
+ :name,
1113
+ :connection_arn,
1114
+ :owner)
1115
+ include Aws::Structure
1116
+ end
1117
+
435
1118
  # The request was denied due to request throttling.
436
1119
  #
437
1120
  # @!attribute [rw] message