aws-sdk-codegurureviewer 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -40,22 +40,22 @@ module Aws::CodeGuruReviewer
40
40
  # Unique, case-sensitive identifier that you provide to ensure the
41
41
  # idempotency of the request.
42
42
  #
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.
46
- #
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
43
+ # To add a new repository association, this parameter specifies a
44
+ # unique identifier for the new repository association that helps
45
+ # ensure idempotency.
46
+ #
47
+ # If you use the AWS CLI or one of the AWS SDKs to call this
48
+ # operation, you can leave this parameter empty. The CLI or SDK
49
+ # generates a random UUID for you and includes that in the request. If
50
+ # you don't use the SDK and instead generate a raw HTTP request to
51
+ # the Secrets Manager service endpoint, you must generate a
52
52
  # ClientRequestToken yourself for new versions and include that value
53
53
  # in the request.
54
54
  #
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
55
+ # You typically interact with this value if you implement your own
56
+ # retry logic and want to ensure that a given repository association
57
+ # is not created twice. We recommend that you generate a UUID-type
58
+ # value to ensure uniqueness within the specified repository
59
59
  # association.
60
60
  #
61
61
  # Amazon CodeGuru Reviewer uses this value to prevent the accidental
@@ -105,6 +105,164 @@ module Aws::CodeGuruReviewer
105
105
  include Aws::Structure
106
106
  end
107
107
 
108
+ # Information about a code review.
109
+ #
110
+ # @!attribute [rw] name
111
+ # The name of the code review.
112
+ # @return [String]
113
+ #
114
+ # @!attribute [rw] code_review_arn
115
+ # The Amazon Resource Name (ARN) of the code review to describe.
116
+ # @return [String]
117
+ #
118
+ # @!attribute [rw] repository_name
119
+ # The name of the repository.
120
+ # @return [String]
121
+ #
122
+ # @!attribute [rw] owner
123
+ # The owner of the repository.
124
+ # @return [String]
125
+ #
126
+ # @!attribute [rw] provider_type
127
+ # The provider type of the repository association.
128
+ # @return [String]
129
+ #
130
+ # @!attribute [rw] state
131
+ # The state of the code review.
132
+ # @return [String]
133
+ #
134
+ # @!attribute [rw] state_reason
135
+ # The reason for the state of the code review.
136
+ # @return [String]
137
+ #
138
+ # @!attribute [rw] created_time_stamp
139
+ # The time, in milliseconds since the epoch, when the code review was
140
+ # created.
141
+ # @return [Time]
142
+ #
143
+ # @!attribute [rw] last_updated_time_stamp
144
+ # The time, in milliseconds since the epoch, when the code review was
145
+ # last updated.
146
+ # @return [Time]
147
+ #
148
+ # @!attribute [rw] type
149
+ # The type of code review.
150
+ # @return [String]
151
+ #
152
+ # @!attribute [rw] pull_request_id
153
+ # The pull request ID for the code review.
154
+ # @return [String]
155
+ #
156
+ # @!attribute [rw] source_code_type
157
+ # The type of the source code for the code review.
158
+ # @return [Types::SourceCodeType]
159
+ #
160
+ # @!attribute [rw] metrics
161
+ # The statistics from the code review.
162
+ # @return [Types::Metrics]
163
+ #
164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeReview AWS API Documentation
165
+ #
166
+ class CodeReview < Struct.new(
167
+ :name,
168
+ :code_review_arn,
169
+ :repository_name,
170
+ :owner,
171
+ :provider_type,
172
+ :state,
173
+ :state_reason,
174
+ :created_time_stamp,
175
+ :last_updated_time_stamp,
176
+ :type,
177
+ :pull_request_id,
178
+ :source_code_type,
179
+ :metrics)
180
+ include Aws::Structure
181
+ end
182
+
183
+ # Information about the summary of the code review.
184
+ #
185
+ # @!attribute [rw] name
186
+ # The name of the code review.
187
+ # @return [String]
188
+ #
189
+ # @!attribute [rw] code_review_arn
190
+ # The Amazon Resource Name (ARN) of the code review to describe.
191
+ # @return [String]
192
+ #
193
+ # @!attribute [rw] repository_name
194
+ # The name of the repository.
195
+ # @return [String]
196
+ #
197
+ # @!attribute [rw] owner
198
+ # The owner of the repository.
199
+ # @return [String]
200
+ #
201
+ # @!attribute [rw] provider_type
202
+ # The provider type of the repository association.
203
+ # @return [String]
204
+ #
205
+ # @!attribute [rw] state
206
+ # The state of the code review.
207
+ # @return [String]
208
+ #
209
+ # @!attribute [rw] created_time_stamp
210
+ # The time, in milliseconds since the epoch, when the code review was
211
+ # created.
212
+ # @return [Time]
213
+ #
214
+ # @!attribute [rw] last_updated_time_stamp
215
+ # The time, in milliseconds since the epoch, when the code review was
216
+ # last updated.
217
+ # @return [Time]
218
+ #
219
+ # @!attribute [rw] type
220
+ # The type of the code review.
221
+ # @return [String]
222
+ #
223
+ # @!attribute [rw] pull_request_id
224
+ # The pull request ID for the code review.
225
+ # @return [String]
226
+ #
227
+ # @!attribute [rw] metrics_summary
228
+ # The statistics from the code review.
229
+ # @return [Types::MetricsSummary]
230
+ #
231
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeReviewSummary AWS API Documentation
232
+ #
233
+ class CodeReviewSummary < Struct.new(
234
+ :name,
235
+ :code_review_arn,
236
+ :repository_name,
237
+ :owner,
238
+ :provider_type,
239
+ :state,
240
+ :created_time_stamp,
241
+ :last_updated_time_stamp,
242
+ :type,
243
+ :pull_request_id,
244
+ :metrics_summary)
245
+ include Aws::Structure
246
+ end
247
+
248
+ # The commit diff for the pull request.
249
+ #
250
+ # @!attribute [rw] source_commit
251
+ # Source Commit SHA.
252
+ # @return [String]
253
+ #
254
+ # @!attribute [rw] destination_commit
255
+ # Destination Commit SHA
256
+ # @return [String]
257
+ #
258
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CommitDiffSourceCodeType AWS API Documentation
259
+ #
260
+ class CommitDiffSourceCodeType < Struct.new(
261
+ :source_commit,
262
+ :destination_commit)
263
+ include Aws::Structure
264
+ end
265
+
108
266
  # The requested operation would cause a conflict with the current state
109
267
  # of a service resource associated with the request. Resolve the
110
268
  # conflict before retrying this request.
@@ -119,6 +277,78 @@ module Aws::CodeGuruReviewer
119
277
  include Aws::Structure
120
278
  end
121
279
 
280
+ # @note When making an API call, you may pass DescribeCodeReviewRequest
281
+ # data as a hash:
282
+ #
283
+ # {
284
+ # code_review_arn: "Arn", # required
285
+ # }
286
+ #
287
+ # @!attribute [rw] code_review_arn
288
+ # The Amazon Resource Name (ARN) of the code review to describe.
289
+ # @return [String]
290
+ #
291
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReviewRequest AWS API Documentation
292
+ #
293
+ class DescribeCodeReviewRequest < Struct.new(
294
+ :code_review_arn)
295
+ include Aws::Structure
296
+ end
297
+
298
+ # @!attribute [rw] code_review
299
+ # Information about the code review.
300
+ # @return [Types::CodeReview]
301
+ #
302
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReviewResponse AWS API Documentation
303
+ #
304
+ class DescribeCodeReviewResponse < Struct.new(
305
+ :code_review)
306
+ include Aws::Structure
307
+ end
308
+
309
+ # @note When making an API call, you may pass DescribeRecommendationFeedbackRequest
310
+ # data as a hash:
311
+ #
312
+ # {
313
+ # code_review_arn: "Arn", # required
314
+ # recommendation_id: "RecommendationId", # required
315
+ # user_id: "UserId",
316
+ # }
317
+ #
318
+ # @!attribute [rw] code_review_arn
319
+ # The Amazon Resource Name (ARN) that identifies the code review.
320
+ # @return [String]
321
+ #
322
+ # @!attribute [rw] recommendation_id
323
+ # The recommendation ID that can be used to track the provided
324
+ # recommendations and then to collect the feedback.
325
+ # @return [String]
326
+ #
327
+ # @!attribute [rw] user_id
328
+ # Optional parameter to describe the feedback for a given user. If
329
+ # this is not supplied, it defaults to the user making the request.
330
+ # @return [String]
331
+ #
332
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedbackRequest AWS API Documentation
333
+ #
334
+ class DescribeRecommendationFeedbackRequest < Struct.new(
335
+ :code_review_arn,
336
+ :recommendation_id,
337
+ :user_id)
338
+ include Aws::Structure
339
+ end
340
+
341
+ # @!attribute [rw] recommendation_feedback
342
+ # The recommendation feedback given by the user.
343
+ # @return [Types::RecommendationFeedback]
344
+ #
345
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedbackResponse AWS API Documentation
346
+ #
347
+ class DescribeRecommendationFeedbackResponse < Struct.new(
348
+ :recommendation_feedback)
349
+ include Aws::Structure
350
+ end
351
+
122
352
  # @note When making an API call, you may pass DescribeRepositoryAssociationRequest
123
353
  # data as a hash:
124
354
  #
@@ -127,7 +357,8 @@ module Aws::CodeGuruReviewer
127
357
  # }
128
358
  #
129
359
  # @!attribute [rw] association_arn
130
- # The Amazon Resource Name (ARN) identifying the association.
360
+ # The Amazon Resource Name (ARN) identifying the association. You can
361
+ # retrieve this ARN by calling `ListRepositories`.
131
362
  # @return [String]
132
363
  #
133
364
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociationRequest AWS API Documentation
@@ -190,6 +421,196 @@ module Aws::CodeGuruReviewer
190
421
  include Aws::Structure
191
422
  end
192
423
 
424
+ # @note When making an API call, you may pass ListCodeReviewsRequest
425
+ # data as a hash:
426
+ #
427
+ # {
428
+ # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub
429
+ # states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
430
+ # repository_names: ["Name"],
431
+ # type: "PullRequest", # required, accepts PullRequest
432
+ # max_results: 1,
433
+ # next_token: "NextToken",
434
+ # }
435
+ #
436
+ # @!attribute [rw] provider_types
437
+ # List of provider types for filtering that needs to be applied before
438
+ # displaying the result. For example, "providerTypes=\[GitHub\]"
439
+ # will list code reviews from GitHub.
440
+ # @return [Array<String>]
441
+ #
442
+ # @!attribute [rw] states
443
+ # List of states for filtering that needs to be applied before
444
+ # displaying the result. For example, "states=\[Pending\]" will list
445
+ # code reviews in the Pending state.
446
+ # @return [Array<String>]
447
+ #
448
+ # @!attribute [rw] repository_names
449
+ # List of repository names for filtering that needs to be applied
450
+ # before displaying the result.
451
+ # @return [Array<String>]
452
+ #
453
+ # @!attribute [rw] type
454
+ # The type of code reviews to list in the response.
455
+ # @return [String]
456
+ #
457
+ # @!attribute [rw] max_results
458
+ # The maximum number of results that are returned per call. The
459
+ # default is 100.
460
+ # @return [Integer]
461
+ #
462
+ # @!attribute [rw] next_token
463
+ # If nextToken is returned, there are more results available. The
464
+ # value of nextToken is a unique pagination token for each page. Make
465
+ # the call again using the returned token to retrieve the next page.
466
+ # Keep all other arguments unchanged.
467
+ # @return [String]
468
+ #
469
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviewsRequest AWS API Documentation
470
+ #
471
+ class ListCodeReviewsRequest < Struct.new(
472
+ :provider_types,
473
+ :states,
474
+ :repository_names,
475
+ :type,
476
+ :max_results,
477
+ :next_token)
478
+ include Aws::Structure
479
+ end
480
+
481
+ # @!attribute [rw] code_review_summaries
482
+ # A list of code reviews that meet the criteria of the request.
483
+ # @return [Array<Types::CodeReviewSummary>]
484
+ #
485
+ # @!attribute [rw] next_token
486
+ # Pagination token.
487
+ # @return [String]
488
+ #
489
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviewsResponse AWS API Documentation
490
+ #
491
+ class ListCodeReviewsResponse < Struct.new(
492
+ :code_review_summaries,
493
+ :next_token)
494
+ include Aws::Structure
495
+ end
496
+
497
+ # @note When making an API call, you may pass ListRecommendationFeedbackRequest
498
+ # data as a hash:
499
+ #
500
+ # {
501
+ # next_token: "NextToken",
502
+ # max_results: 1,
503
+ # code_review_arn: "Arn", # required
504
+ # user_ids: ["UserId"],
505
+ # recommendation_ids: ["RecommendationId"],
506
+ # }
507
+ #
508
+ # @!attribute [rw] next_token
509
+ # If nextToken is returned, there are more results available. The
510
+ # value of nextToken is a unique pagination token for each page. Make
511
+ # the call again using the returned token to retrieve the next page.
512
+ # Keep all other arguments unchanged.
513
+ # @return [String]
514
+ #
515
+ # @!attribute [rw] max_results
516
+ # The maximum number of results that are returned per call. The
517
+ # default is 100.
518
+ # @return [Integer]
519
+ #
520
+ # @!attribute [rw] code_review_arn
521
+ # The Amazon Resource Name (ARN) that identifies the code review.
522
+ # @return [String]
523
+ #
524
+ # @!attribute [rw] user_ids
525
+ # Filter on userIds that need to be applied before displaying the
526
+ # result. This can be used to query all the recommendation feedback
527
+ # for a code review from a given user.
528
+ # @return [Array<String>]
529
+ #
530
+ # @!attribute [rw] recommendation_ids
531
+ # Filter on recommendationIds that need to be applied before
532
+ # displaying the result. This can be used to query all the
533
+ # recommendation feedback for a given recommendation.
534
+ # @return [Array<String>]
535
+ #
536
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedbackRequest AWS API Documentation
537
+ #
538
+ class ListRecommendationFeedbackRequest < Struct.new(
539
+ :next_token,
540
+ :max_results,
541
+ :code_review_arn,
542
+ :user_ids,
543
+ :recommendation_ids)
544
+ include Aws::Structure
545
+ end
546
+
547
+ # @!attribute [rw] recommendation_feedback_summaries
548
+ # Recommendation feedback summaries corresponding to the code reivew
549
+ # ARN.
550
+ # @return [Array<Types::RecommendationFeedbackSummary>]
551
+ #
552
+ # @!attribute [rw] next_token
553
+ # If nextToken is returned, there are more results available. The
554
+ # value of nextToken is a unique pagination token for each page. Make
555
+ # the call again using the returned token to retrieve the next page.
556
+ # Keep all other arguments unchanged.
557
+ # @return [String]
558
+ #
559
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedbackResponse AWS API Documentation
560
+ #
561
+ class ListRecommendationFeedbackResponse < Struct.new(
562
+ :recommendation_feedback_summaries,
563
+ :next_token)
564
+ include Aws::Structure
565
+ end
566
+
567
+ # @note When making an API call, you may pass ListRecommendationsRequest
568
+ # data as a hash:
569
+ #
570
+ # {
571
+ # next_token: "NextToken",
572
+ # max_results: 1,
573
+ # code_review_arn: "Arn", # required
574
+ # }
575
+ #
576
+ # @!attribute [rw] next_token
577
+ # Pagination token.
578
+ # @return [String]
579
+ #
580
+ # @!attribute [rw] max_results
581
+ # The maximum number of results that are returned per call. The
582
+ # default is 100.
583
+ # @return [Integer]
584
+ #
585
+ # @!attribute [rw] code_review_arn
586
+ # The Amazon Resource Name (ARN) of the code review to describe.
587
+ # @return [String]
588
+ #
589
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationsRequest AWS API Documentation
590
+ #
591
+ class ListRecommendationsRequest < Struct.new(
592
+ :next_token,
593
+ :max_results,
594
+ :code_review_arn)
595
+ include Aws::Structure
596
+ end
597
+
598
+ # @!attribute [rw] recommendation_summaries
599
+ # List of recommendations for the requested code review.
600
+ # @return [Array<Types::RecommendationSummary>]
601
+ #
602
+ # @!attribute [rw] next_token
603
+ # Pagination token.
604
+ # @return [String]
605
+ #
606
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationsResponse AWS API Documentation
607
+ #
608
+ class ListRecommendationsResponse < Struct.new(
609
+ :recommendation_summaries,
610
+ :next_token)
611
+ include Aws::Structure
612
+ end
613
+
193
614
  # @note When making an API call, you may pass ListRepositoryAssociationsRequest
194
615
  # data as a hash:
195
616
  #
@@ -211,24 +632,26 @@ module Aws::CodeGuruReviewer
211
632
  # @return [Array<String>]
212
633
  #
213
634
  # @!attribute [rw] names
214
- # List of names to use as a filter.
635
+ # List of repository names to use as a filter.
215
636
  # @return [Array<String>]
216
637
  #
217
638
  # @!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.
639
+ # List of owners to use as a filter. For GitHub, this is name of the
640
+ # GitHub account that was used to associate the repository. For AWS
641
+ # CodeCommit, it is the name of the CodeCommit account that was used
642
+ # to associate the repository.
220
643
  # @return [Array<String>]
221
644
  #
222
645
  # @!attribute [rw] max_results
223
646
  # The maximum number of repository association results returned by
224
647
  # `ListRepositoryAssociations` in paginated output. When this
225
648
  # 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.
649
+ # `maxResults` results in a single page with a `nextToken` response
650
+ # element. The remaining results of the initial request can be seen by
651
+ # sending another `ListRepositoryAssociations` request with the
652
+ # returned `nextToken` value. This value can be between 1 and 25. If
653
+ # this parameter is not used, `ListRepositoryAssociations` returns up
654
+ # to 25 results and a `nextToken` value if applicable.
232
655
  # @return [Integer]
233
656
  #
234
657
  # @!attribute [rw] next_token
@@ -238,9 +661,9 @@ module Aws::CodeGuruReviewer
238
661
  # continues from the end of the previous results that returned the
239
662
  # `nextToken` value.
240
663
  #
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.
664
+ # <note markdown="1"> Treat this token as an opaque identifier that is only used to
665
+ # retrieve the next items in a list and not for other programmatic
666
+ # purposes.
244
667
  #
245
668
  # </note>
246
669
  # @return [String]
@@ -278,6 +701,42 @@ module Aws::CodeGuruReviewer
278
701
  include Aws::Structure
279
702
  end
280
703
 
704
+ # Information about the statistics from the code review.
705
+ #
706
+ # @!attribute [rw] metered_lines_of_code_count
707
+ # Lines of code metered in the code review.
708
+ # @return [Integer]
709
+ #
710
+ # @!attribute [rw] findings_count
711
+ # Total number of recommendations found in the code review.
712
+ # @return [Integer]
713
+ #
714
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/Metrics AWS API Documentation
715
+ #
716
+ class Metrics < Struct.new(
717
+ :metered_lines_of_code_count,
718
+ :findings_count)
719
+ include Aws::Structure
720
+ end
721
+
722
+ # Information about metrics summaries.
723
+ #
724
+ # @!attribute [rw] metered_lines_of_code_count
725
+ # Lines of code metered in the code review.
726
+ # @return [Integer]
727
+ #
728
+ # @!attribute [rw] findings_count
729
+ # Total number of recommendations found in the code review.
730
+ # @return [Integer]
731
+ #
732
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/MetricsSummary AWS API Documentation
733
+ #
734
+ class MetricsSummary < Struct.new(
735
+ :metered_lines_of_code_count,
736
+ :findings_count)
737
+ include Aws::Structure
738
+ end
739
+
281
740
  # The resource specified in the request was not found.
282
741
  #
283
742
  # @!attribute [rw] message
@@ -290,6 +749,145 @@ module Aws::CodeGuruReviewer
290
749
  include Aws::Structure
291
750
  end
292
751
 
752
+ # @note When making an API call, you may pass PutRecommendationFeedbackRequest
753
+ # data as a hash:
754
+ #
755
+ # {
756
+ # code_review_arn: "Arn", # required
757
+ # recommendation_id: "RecommendationId", # required
758
+ # reactions: ["ThumbsUp"], # required, accepts ThumbsUp, ThumbsDown
759
+ # }
760
+ #
761
+ # @!attribute [rw] code_review_arn
762
+ # The Amazon Resource Name (ARN) that identifies the code review.
763
+ # @return [String]
764
+ #
765
+ # @!attribute [rw] recommendation_id
766
+ # The recommendation ID that can be used to track the provided
767
+ # recommendations and then to collect the feedback.
768
+ # @return [String]
769
+ #
770
+ # @!attribute [rw] reactions
771
+ # List for storing reactions. Reactions are utf-8 text code for
772
+ # emojis. If you send an empty list it clears all your feedback.
773
+ # @return [Array<String>]
774
+ #
775
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/PutRecommendationFeedbackRequest AWS API Documentation
776
+ #
777
+ class PutRecommendationFeedbackRequest < Struct.new(
778
+ :code_review_arn,
779
+ :recommendation_id,
780
+ :reactions)
781
+ include Aws::Structure
782
+ end
783
+
784
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/PutRecommendationFeedbackResponse AWS API Documentation
785
+ #
786
+ class PutRecommendationFeedbackResponse < Aws::EmptyStructure; end
787
+
788
+ # Information about the recommendation feedback.
789
+ #
790
+ # @!attribute [rw] code_review_arn
791
+ # The Amazon Resource Name (ARN) that identifies the code review.
792
+ # @return [String]
793
+ #
794
+ # @!attribute [rw] recommendation_id
795
+ # The recommendation ID that can be used to track the provided
796
+ # recommendations. Later on it can be used to collect the feedback.
797
+ # @return [String]
798
+ #
799
+ # @!attribute [rw] reactions
800
+ # List for storing reactions. Reactions are utf-8 text code for
801
+ # emojis. You can send an empty list to clear off all your feedback.
802
+ # @return [Array<String>]
803
+ #
804
+ # @!attribute [rw] user_id
805
+ # The user principal that made the API call.
806
+ # @return [String]
807
+ #
808
+ # @!attribute [rw] created_time_stamp
809
+ # The time at which the feedback was created.
810
+ # @return [Time]
811
+ #
812
+ # @!attribute [rw] last_updated_time_stamp
813
+ # The time at which the feedback was last updated.
814
+ # @return [Time]
815
+ #
816
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RecommendationFeedback AWS API Documentation
817
+ #
818
+ class RecommendationFeedback < Struct.new(
819
+ :code_review_arn,
820
+ :recommendation_id,
821
+ :reactions,
822
+ :user_id,
823
+ :created_time_stamp,
824
+ :last_updated_time_stamp)
825
+ include Aws::Structure
826
+ end
827
+
828
+ # Information about recommendation feedback summaries.
829
+ #
830
+ # @!attribute [rw] recommendation_id
831
+ # The recommendation ID that can be used to track the provided
832
+ # recommendations. Later on it can be used to collect the feedback.
833
+ # @return [String]
834
+ #
835
+ # @!attribute [rw] reactions
836
+ # List for storing reactions. Reactions are utf-8 text code for
837
+ # emojis.
838
+ # @return [Array<String>]
839
+ #
840
+ # @!attribute [rw] user_id
841
+ # The identifier for the user that gave the feedback.
842
+ # @return [String]
843
+ #
844
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RecommendationFeedbackSummary AWS API Documentation
845
+ #
846
+ class RecommendationFeedbackSummary < Struct.new(
847
+ :recommendation_id,
848
+ :reactions,
849
+ :user_id)
850
+ include Aws::Structure
851
+ end
852
+
853
+ # Information about recommendations.
854
+ #
855
+ # @!attribute [rw] file_path
856
+ # Name of the file on which a recommendation is provided.
857
+ # @return [String]
858
+ #
859
+ # @!attribute [rw] recommendation_id
860
+ # The recommendation ID that can be used to track the provided
861
+ # recommendations. Later on it can be used to collect the feedback.
862
+ # @return [String]
863
+ #
864
+ # @!attribute [rw] start_line
865
+ # Start line from where the recommendation is applicable in the source
866
+ # commit or source branch.
867
+ # @return [Integer]
868
+ #
869
+ # @!attribute [rw] end_line
870
+ # Last line where the recommendation is applicable in the source
871
+ # commit or source branch. For a single line comment the start line
872
+ # and end line values will be the same.
873
+ # @return [Integer]
874
+ #
875
+ # @!attribute [rw] description
876
+ # A description of the recommendation generated by CodeGuru Reviewer
877
+ # for the lines of code between the start line and the end line.
878
+ # @return [String]
879
+ #
880
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RecommendationSummary AWS API Documentation
881
+ #
882
+ class RecommendationSummary < Struct.new(
883
+ :file_path,
884
+ :recommendation_id,
885
+ :start_line,
886
+ :end_line,
887
+ :description)
888
+ include Aws::Structure
889
+ end
890
+
293
891
  # Information about a repository.
294
892
  #
295
893
  # @note When making an API call, you may pass Repository
@@ -315,7 +913,7 @@ module Aws::CodeGuruReviewer
315
913
  # Information about a repository association.
316
914
  #
317
915
  # @!attribute [rw] association_id
318
- # The id of the repository association.
916
+ # The ID of the repository association.
319
917
  # @return [String]
320
918
  #
321
919
  # @!attribute [rw] association_arn
@@ -410,8 +1008,7 @@ module Aws::CodeGuruReviewer
410
1008
  #
411
1009
  # Failed
412
1010
  #
413
- # : The association failed. For more information about troubleshooting
414
- # (or why it failed), see \[troubleshooting topic\].
1011
+ # : The association failed.
415
1012
  #
416
1013
  # Disassociating
417
1014
  #
@@ -432,6 +1029,31 @@ module Aws::CodeGuruReviewer
432
1029
  include Aws::Structure
433
1030
  end
434
1031
 
1032
+ # The resource specified in the request was not found.
1033
+ #
1034
+ # @!attribute [rw] message
1035
+ # @return [String]
1036
+ #
1037
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ResourceNotFoundException AWS API Documentation
1038
+ #
1039
+ class ResourceNotFoundException < Struct.new(
1040
+ :message)
1041
+ include Aws::Structure
1042
+ end
1043
+
1044
+ # Information about the source code type.
1045
+ #
1046
+ # @!attribute [rw] commit_diff
1047
+ # The commit diff for the pull request.
1048
+ # @return [Types::CommitDiffSourceCodeType]
1049
+ #
1050
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/SourceCodeType AWS API Documentation
1051
+ #
1052
+ class SourceCodeType < Struct.new(
1053
+ :commit_diff)
1054
+ include Aws::Structure
1055
+ end
1056
+
435
1057
  # The request was denied due to request throttling.
436
1058
  #
437
1059
  # @!attribute [rw] message