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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95635d92ac2b9a5bb25b2bb5587f1ee420edcc2a28cb7cef07014823de286743
4
- data.tar.gz: 86daea73028bc83abe57d839cdc3cc1203cc0fd185728e7bec9f37a633316fb9
3
+ metadata.gz: e5bb7066f278efe2325e4805cc2e30c72fed363887d1345605ef548bc79865a5
4
+ data.tar.gz: 220bf1399f75bf06d262edbf8bb2fd2fe4715a3031b81be176898031c3045ff9
5
5
  SHA512:
6
- metadata.gz: 262fa960d536ef327545f48b306a48de7622272deb7ee1cbefdbbc16324d5b63ee623ad527ea749e772cead9c8bf2b74b800e9a6f49aa3e097278385412d62e7
7
- data.tar.gz: 2c651d482d3c4f531ff79eb635ad2b57dd6f57920751fd3c9208ac1c748023c22856654e7ce3baea18b1ed222d99e9a77815f4de4e959a4dd95f5c60250552f9
6
+ metadata.gz: 0e9ba79ff807d9efb7a35db7fc2fe2186cef3ce1f8216b16ea26f8b73bb3fc3da04f81beee7ce19acffbc369e2d7d678fb601836493b0bf16cbfac6c0525f340
7
+ data.tar.gz: 723dee67d5f981c22c3a779a5e024c3b413d8e314948be5fc82558eeacea52347c255a91efad296342b0ac947790edcf444aa3f97ee17fb7da6cf829f001d830
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
45
45
  # @service
46
46
  module Aws::CodeGuruReviewer
47
47
 
48
- GEM_VERSION = '1.2.0'
48
+ GEM_VERSION = '1.3.0'
49
49
 
50
50
  end
@@ -311,8 +311,8 @@ module Aws::CodeGuruReviewer
311
311
  # Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer.
312
312
  # When you associate an AWS CodeCommit repository with Amazon CodeGuru
313
313
  # Reviewer, Amazon CodeGuru Reviewer will provide recommendations for
314
- # each pull request. You can view recommendations in the AWS CodeCommit
315
- # repository.
314
+ # each pull request raised within the repository. You can view
315
+ # recommendations in the AWS CodeCommit repository.
316
316
  #
317
317
  # You can associate a GitHub repository using the Amazon CodeGuru
318
318
  # Reviewer console.
@@ -324,22 +324,21 @@ module Aws::CodeGuruReviewer
324
324
  # Unique, case-sensitive identifier that you provide to ensure the
325
325
  # idempotency of the request.
326
326
  #
327
- # If you want to add a new repository association, this parameter
328
- # specifies a unique identifier for the new repository association that
329
- # helps ensure idempotency.
327
+ # To add a new repository association, this parameter specifies a unique
328
+ # identifier for the new repository association that helps ensure
329
+ # idempotency.
330
330
  #
331
- # If you use the AWS CLI or one of the AWS SDK to call this operation,
332
- # then you can leave this parameter empty. The CLI or SDK generates a
333
- # random UUID for you and includes that in the request. If you don't
334
- # use the SDK and instead generate a raw HTTP request to the Secrets
335
- # Manager service endpoint, then you must generate a ClientRequestToken
336
- # yourself for new versions and include that value in the request.
331
+ # If you use the AWS CLI or one of the AWS SDKs to call this operation,
332
+ # you can leave this parameter empty. The CLI or SDK generates a random
333
+ # UUID for you and includes that in the request. If you don't use the
334
+ # SDK and instead generate a raw HTTP request to the Secrets Manager
335
+ # service endpoint, you must generate a ClientRequestToken yourself for
336
+ # new versions and include that value in the request.
337
337
  #
338
- # You typically only need to interact with this value if you implement
339
- # your own retry logic and want to ensure that a given repository
340
- # association is not created twice. We recommend that you generate a
341
- # UUID-type value to ensure uniqueness within the specified repository
342
- # association.
338
+ # You typically interact with this value if you implement your own retry
339
+ # logic and want to ensure that a given repository association is not
340
+ # created twice. We recommend that you generate a UUID-type value to
341
+ # ensure uniqueness within the specified repository association.
343
342
  #
344
343
  # Amazon CodeGuru Reviewer uses this value to prevent the accidental
345
344
  # creation of duplicate repository associations if there are failures
@@ -384,10 +383,99 @@ module Aws::CodeGuruReviewer
384
383
  req.send_request(options)
385
384
  end
386
385
 
386
+ # Returns the metadaata associated with the code review along with its
387
+ # status.
388
+ #
389
+ # @option params [required, String] :code_review_arn
390
+ # The Amazon Resource Name (ARN) of the code review to describe.
391
+ #
392
+ # @return [Types::DescribeCodeReviewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
393
+ #
394
+ # * {Types::DescribeCodeReviewResponse#code_review #code_review} => Types::CodeReview
395
+ #
396
+ # @example Request syntax with placeholder values
397
+ #
398
+ # resp = client.describe_code_review({
399
+ # code_review_arn: "Arn", # required
400
+ # })
401
+ #
402
+ # @example Response structure
403
+ #
404
+ # resp.code_review.name #=> String
405
+ # resp.code_review.code_review_arn #=> String
406
+ # resp.code_review.repository_name #=> String
407
+ # resp.code_review.owner #=> String
408
+ # resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub"
409
+ # resp.code_review.state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
410
+ # resp.code_review.state_reason #=> String
411
+ # resp.code_review.created_time_stamp #=> Time
412
+ # resp.code_review.last_updated_time_stamp #=> Time
413
+ # resp.code_review.type #=> String, one of "PullRequest"
414
+ # resp.code_review.pull_request_id #=> String
415
+ # resp.code_review.source_code_type.commit_diff.source_commit #=> String
416
+ # resp.code_review.source_code_type.commit_diff.destination_commit #=> String
417
+ # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
418
+ # resp.code_review.metrics.findings_count #=> Integer
419
+ #
420
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReview AWS API Documentation
421
+ #
422
+ # @overload describe_code_review(params = {})
423
+ # @param [Hash] params ({})
424
+ def describe_code_review(params = {}, options = {})
425
+ req = build_request(:describe_code_review, params)
426
+ req.send_request(options)
427
+ end
428
+
429
+ # Describes the customer feedback for a CodeGuru Reviewer
430
+ # recommendation.
431
+ #
432
+ # @option params [required, String] :code_review_arn
433
+ # The Amazon Resource Name (ARN) that identifies the code review.
434
+ #
435
+ # @option params [required, String] :recommendation_id
436
+ # The recommendation ID that can be used to track the provided
437
+ # recommendations and then to collect the feedback.
438
+ #
439
+ # @option params [String] :user_id
440
+ # Optional parameter to describe the feedback for a given user. If this
441
+ # is not supplied, it defaults to the user making the request.
442
+ #
443
+ # @return [Types::DescribeRecommendationFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
444
+ #
445
+ # * {Types::DescribeRecommendationFeedbackResponse#recommendation_feedback #recommendation_feedback} => Types::RecommendationFeedback
446
+ #
447
+ # @example Request syntax with placeholder values
448
+ #
449
+ # resp = client.describe_recommendation_feedback({
450
+ # code_review_arn: "Arn", # required
451
+ # recommendation_id: "RecommendationId", # required
452
+ # user_id: "UserId",
453
+ # })
454
+ #
455
+ # @example Response structure
456
+ #
457
+ # resp.recommendation_feedback.code_review_arn #=> String
458
+ # resp.recommendation_feedback.recommendation_id #=> String
459
+ # resp.recommendation_feedback.reactions #=> Array
460
+ # resp.recommendation_feedback.reactions[0] #=> String, one of "ThumbsUp", "ThumbsDown"
461
+ # resp.recommendation_feedback.user_id #=> String
462
+ # resp.recommendation_feedback.created_time_stamp #=> Time
463
+ # resp.recommendation_feedback.last_updated_time_stamp #=> Time
464
+ #
465
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedback AWS API Documentation
466
+ #
467
+ # @overload describe_recommendation_feedback(params = {})
468
+ # @param [Hash] params ({})
469
+ def describe_recommendation_feedback(params = {}, options = {})
470
+ req = build_request(:describe_recommendation_feedback, params)
471
+ req.send_request(options)
472
+ end
473
+
387
474
  # Describes a repository association.
388
475
  #
389
476
  # @option params [required, String] :association_arn
390
- # The Amazon Resource Name (ARN) identifying the association.
477
+ # The Amazon Resource Name (ARN) identifying the association. You can
478
+ # retrieve this ARN by calling `ListRepositories`.
391
479
  #
392
480
  # @return [Types::DescribeRepositoryAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
393
481
  #
@@ -457,6 +545,189 @@ module Aws::CodeGuruReviewer
457
545
  req.send_request(options)
458
546
  end
459
547
 
548
+ # Lists all the code reviews that the customer has created in the past
549
+ # 90 days.
550
+ #
551
+ # @option params [Array<String>] :provider_types
552
+ # List of provider types for filtering that needs to be applied before
553
+ # displaying the result. For example, "providerTypes=\[GitHub\]" will
554
+ # list code reviews from GitHub.
555
+ #
556
+ # @option params [Array<String>] :states
557
+ # List of states for filtering that needs to be applied before
558
+ # displaying the result. For example, "states=\[Pending\]" will list
559
+ # code reviews in the Pending state.
560
+ #
561
+ # @option params [Array<String>] :repository_names
562
+ # List of repository names for filtering that needs to be applied before
563
+ # displaying the result.
564
+ #
565
+ # @option params [required, String] :type
566
+ # The type of code reviews to list in the response.
567
+ #
568
+ # @option params [Integer] :max_results
569
+ # The maximum number of results that are returned per call. The default
570
+ # is 100.
571
+ #
572
+ # @option params [String] :next_token
573
+ # If nextToken is returned, there are more results available. The value
574
+ # of nextToken is a unique pagination token for each page. Make the call
575
+ # again using the returned token to retrieve the next page. Keep all
576
+ # other arguments unchanged.
577
+ #
578
+ # @return [Types::ListCodeReviewsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
579
+ #
580
+ # * {Types::ListCodeReviewsResponse#code_review_summaries #code_review_summaries} => Array&lt;Types::CodeReviewSummary&gt;
581
+ # * {Types::ListCodeReviewsResponse#next_token #next_token} => String
582
+ #
583
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
584
+ #
585
+ # @example Request syntax with placeholder values
586
+ #
587
+ # resp = client.list_code_reviews({
588
+ # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub
589
+ # states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
590
+ # repository_names: ["Name"],
591
+ # type: "PullRequest", # required, accepts PullRequest
592
+ # max_results: 1,
593
+ # next_token: "NextToken",
594
+ # })
595
+ #
596
+ # @example Response structure
597
+ #
598
+ # resp.code_review_summaries #=> Array
599
+ # resp.code_review_summaries[0].name #=> String
600
+ # resp.code_review_summaries[0].code_review_arn #=> String
601
+ # resp.code_review_summaries[0].repository_name #=> String
602
+ # resp.code_review_summaries[0].owner #=> String
603
+ # resp.code_review_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub"
604
+ # resp.code_review_summaries[0].state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
605
+ # resp.code_review_summaries[0].created_time_stamp #=> Time
606
+ # resp.code_review_summaries[0].last_updated_time_stamp #=> Time
607
+ # resp.code_review_summaries[0].type #=> String, one of "PullRequest"
608
+ # resp.code_review_summaries[0].pull_request_id #=> String
609
+ # resp.code_review_summaries[0].metrics_summary.metered_lines_of_code_count #=> Integer
610
+ # resp.code_review_summaries[0].metrics_summary.findings_count #=> Integer
611
+ # resp.next_token #=> String
612
+ #
613
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviews AWS API Documentation
614
+ #
615
+ # @overload list_code_reviews(params = {})
616
+ # @param [Hash] params ({})
617
+ def list_code_reviews(params = {}, options = {})
618
+ req = build_request(:list_code_reviews, params)
619
+ req.send_request(options)
620
+ end
621
+
622
+ # Lists the customer feedback for a CodeGuru Reviewer recommendation for
623
+ # all users. This API will be used from the console to extract the
624
+ # previously given feedback by the user to pre-populate the feedback
625
+ # emojis for all recommendations.
626
+ #
627
+ # @option params [String] :next_token
628
+ # If nextToken is returned, there are more results available. The value
629
+ # of nextToken is a unique pagination token for each page. Make the call
630
+ # again using the returned token to retrieve the next page. Keep all
631
+ # other arguments unchanged.
632
+ #
633
+ # @option params [Integer] :max_results
634
+ # The maximum number of results that are returned per call. The default
635
+ # is 100.
636
+ #
637
+ # @option params [required, String] :code_review_arn
638
+ # The Amazon Resource Name (ARN) that identifies the code review.
639
+ #
640
+ # @option params [Array<String>] :user_ids
641
+ # Filter on userIds that need to be applied before displaying the
642
+ # result. This can be used to query all the recommendation feedback for
643
+ # a code review from a given user.
644
+ #
645
+ # @option params [Array<String>] :recommendation_ids
646
+ # Filter on recommendationIds that need to be applied before displaying
647
+ # the result. This can be used to query all the recommendation feedback
648
+ # for a given recommendation.
649
+ #
650
+ # @return [Types::ListRecommendationFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
651
+ #
652
+ # * {Types::ListRecommendationFeedbackResponse#recommendation_feedback_summaries #recommendation_feedback_summaries} => Array&lt;Types::RecommendationFeedbackSummary&gt;
653
+ # * {Types::ListRecommendationFeedbackResponse#next_token #next_token} => String
654
+ #
655
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
656
+ #
657
+ # @example Request syntax with placeholder values
658
+ #
659
+ # resp = client.list_recommendation_feedback({
660
+ # next_token: "NextToken",
661
+ # max_results: 1,
662
+ # code_review_arn: "Arn", # required
663
+ # user_ids: ["UserId"],
664
+ # recommendation_ids: ["RecommendationId"],
665
+ # })
666
+ #
667
+ # @example Response structure
668
+ #
669
+ # resp.recommendation_feedback_summaries #=> Array
670
+ # resp.recommendation_feedback_summaries[0].recommendation_id #=> String
671
+ # resp.recommendation_feedback_summaries[0].reactions #=> Array
672
+ # resp.recommendation_feedback_summaries[0].reactions[0] #=> String, one of "ThumbsUp", "ThumbsDown"
673
+ # resp.recommendation_feedback_summaries[0].user_id #=> String
674
+ # resp.next_token #=> String
675
+ #
676
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedback AWS API Documentation
677
+ #
678
+ # @overload list_recommendation_feedback(params = {})
679
+ # @param [Hash] params ({})
680
+ def list_recommendation_feedback(params = {}, options = {})
681
+ req = build_request(:list_recommendation_feedback, params)
682
+ req.send_request(options)
683
+ end
684
+
685
+ # Returns the list of all recommendations for a completed code review.
686
+ #
687
+ # @option params [String] :next_token
688
+ # Pagination token.
689
+ #
690
+ # @option params [Integer] :max_results
691
+ # The maximum number of results that are returned per call. The default
692
+ # is 100.
693
+ #
694
+ # @option params [required, String] :code_review_arn
695
+ # The Amazon Resource Name (ARN) of the code review to describe.
696
+ #
697
+ # @return [Types::ListRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
698
+ #
699
+ # * {Types::ListRecommendationsResponse#recommendation_summaries #recommendation_summaries} => Array&lt;Types::RecommendationSummary&gt;
700
+ # * {Types::ListRecommendationsResponse#next_token #next_token} => String
701
+ #
702
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
703
+ #
704
+ # @example Request syntax with placeholder values
705
+ #
706
+ # resp = client.list_recommendations({
707
+ # next_token: "NextToken",
708
+ # max_results: 1,
709
+ # code_review_arn: "Arn", # required
710
+ # })
711
+ #
712
+ # @example Response structure
713
+ #
714
+ # resp.recommendation_summaries #=> Array
715
+ # resp.recommendation_summaries[0].file_path #=> String
716
+ # resp.recommendation_summaries[0].recommendation_id #=> String
717
+ # resp.recommendation_summaries[0].start_line #=> Integer
718
+ # resp.recommendation_summaries[0].end_line #=> Integer
719
+ # resp.recommendation_summaries[0].description #=> String
720
+ # resp.next_token #=> String
721
+ #
722
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendations AWS API Documentation
723
+ #
724
+ # @overload list_recommendations(params = {})
725
+ # @param [Hash] params ({})
726
+ def list_recommendations(params = {}, options = {})
727
+ req = build_request(:list_recommendations, params)
728
+ req.send_request(options)
729
+ end
730
+
460
731
  # Lists repository associations. You can optionally filter on one or
461
732
  # more of the following recommendation properties: provider types,
462
733
  # states, names, and owners.
@@ -468,22 +739,24 @@ module Aws::CodeGuruReviewer
468
739
  # List of states to use as a filter.
469
740
  #
470
741
  # @option params [Array<String>] :names
471
- # List of names to use as a filter.
742
+ # List of repository names to use as a filter.
472
743
  #
473
744
  # @option params [Array<String>] :owners
474
- # List of owners to use as a filter. For AWS CodeCommit, the owner is
475
- # the AWS account id. For GitHub, it is the GitHub account name.
745
+ # List of owners to use as a filter. For GitHub, this is name of the
746
+ # GitHub account that was used to associate the repository. For AWS
747
+ # CodeCommit, it is the name of the CodeCommit account that was used to
748
+ # associate the repository.
476
749
  #
477
750
  # @option params [Integer] :max_results
478
751
  # The maximum number of repository association results returned by
479
752
  # `ListRepositoryAssociations` in paginated output. When this parameter
480
753
  # is used, `ListRepositoryAssociations` only returns `maxResults`
481
- # results in a single page along with a `nextToken` response element.
482
- # The remaining results of the initial request can be seen by sending
754
+ # results in a single page with a `nextToken` response element. The
755
+ # remaining results of the initial request can be seen by sending
483
756
  # another `ListRepositoryAssociations` request with the returned
484
- # `nextToken` value. This value can be between 1 and 100. If this
485
- # parameter is not used, then `ListRepositoryAssociations` returns up to
486
- # 100 results and a `nextToken` value if applicable.
757
+ # `nextToken` value. This value can be between 1 and 25. If this
758
+ # parameter is not used, `ListRepositoryAssociations` returns up to 25
759
+ # results and a `nextToken` value if applicable.
487
760
  #
488
761
  # @option params [String] :next_token
489
762
  # The `nextToken` value returned from a previous paginated
@@ -492,9 +765,8 @@ module Aws::CodeGuruReviewer
492
765
  # from the end of the previous results that returned the `nextToken`
493
766
  # value.
494
767
  #
495
- # <note markdown="1"> This token should be treated as an opaque identifier that is only used
496
- # to retrieve the next items in a list and not for other programmatic
497
- # purposes.
768
+ # <note markdown="1"> Treat this token as an opaque identifier that is only used to retrieve
769
+ # the next items in a list and not for other programmatic purposes.
498
770
  #
499
771
  # </note>
500
772
  #
@@ -537,6 +809,40 @@ module Aws::CodeGuruReviewer
537
809
  req.send_request(options)
538
810
  end
539
811
 
812
+ # Stores customer feedback for a CodeGuru-Reviewer recommendation. When
813
+ # this API is called again with different reactions the previous
814
+ # feedback is overwritten.
815
+ #
816
+ # @option params [required, String] :code_review_arn
817
+ # The Amazon Resource Name (ARN) that identifies the code review.
818
+ #
819
+ # @option params [required, String] :recommendation_id
820
+ # The recommendation ID that can be used to track the provided
821
+ # recommendations and then to collect the feedback.
822
+ #
823
+ # @option params [required, Array<String>] :reactions
824
+ # List for storing reactions. Reactions are utf-8 text code for emojis.
825
+ # If you send an empty list it clears all your feedback.
826
+ #
827
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
828
+ #
829
+ # @example Request syntax with placeholder values
830
+ #
831
+ # resp = client.put_recommendation_feedback({
832
+ # code_review_arn: "Arn", # required
833
+ # recommendation_id: "RecommendationId", # required
834
+ # reactions: ["ThumbsUp"], # required, accepts ThumbsUp, ThumbsDown
835
+ # })
836
+ #
837
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/PutRecommendationFeedback AWS API Documentation
838
+ #
839
+ # @overload put_recommendation_feedback(params = {})
840
+ # @param [Hash] params ({})
841
+ def put_recommendation_feedback(params = {}, options = {})
842
+ req = build_request(:put_recommendation_feedback, params)
843
+ req.send_request(options)
844
+ end
845
+
540
846
  # @!endgroup
541
847
 
542
848
  # @param params ({})
@@ -550,7 +856,7 @@ module Aws::CodeGuruReviewer
550
856
  params: params,
551
857
  config: config)
552
858
  context[:gem_name] = 'aws-sdk-codegurureviewer'
553
- context[:gem_version] = '1.2.0'
859
+ context[:gem_version] = '1.3.0'
554
860
  Seahorse::Client::Request.new(handlers, context)
555
861
  end
556
862
 
@@ -18,16 +18,40 @@ 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
+ DescribeCodeReviewRequest = Shapes::StructureShape.new(name: 'DescribeCodeReviewRequest')
28
+ DescribeCodeReviewResponse = Shapes::StructureShape.new(name: 'DescribeCodeReviewResponse')
29
+ DescribeRecommendationFeedbackRequest = Shapes::StructureShape.new(name: 'DescribeRecommendationFeedbackRequest')
30
+ DescribeRecommendationFeedbackResponse = Shapes::StructureShape.new(name: 'DescribeRecommendationFeedbackResponse')
22
31
  DescribeRepositoryAssociationRequest = Shapes::StructureShape.new(name: 'DescribeRepositoryAssociationRequest')
23
32
  DescribeRepositoryAssociationResponse = Shapes::StructureShape.new(name: 'DescribeRepositoryAssociationResponse')
24
33
  DisassociateRepositoryRequest = Shapes::StructureShape.new(name: 'DisassociateRepositoryRequest')
25
34
  DisassociateRepositoryResponse = Shapes::StructureShape.new(name: 'DisassociateRepositoryResponse')
26
35
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
36
+ FilePath = Shapes::StringShape.new(name: 'FilePath')
37
+ FindingsCount = Shapes::IntegerShape.new(name: 'FindingsCount')
27
38
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
39
+ JobState = Shapes::StringShape.new(name: 'JobState')
40
+ JobStates = Shapes::ListShape.new(name: 'JobStates')
41
+ LineNumber = Shapes::IntegerShape.new(name: 'LineNumber')
42
+ ListCodeReviewsMaxResults = Shapes::IntegerShape.new(name: 'ListCodeReviewsMaxResults')
43
+ ListCodeReviewsRequest = Shapes::StructureShape.new(name: 'ListCodeReviewsRequest')
44
+ ListCodeReviewsResponse = Shapes::StructureShape.new(name: 'ListCodeReviewsResponse')
45
+ ListRecommendationFeedbackRequest = Shapes::StructureShape.new(name: 'ListRecommendationFeedbackRequest')
46
+ ListRecommendationFeedbackResponse = Shapes::StructureShape.new(name: 'ListRecommendationFeedbackResponse')
47
+ ListRecommendationsRequest = Shapes::StructureShape.new(name: 'ListRecommendationsRequest')
48
+ ListRecommendationsResponse = Shapes::StructureShape.new(name: 'ListRecommendationsResponse')
28
49
  ListRepositoryAssociationsRequest = Shapes::StructureShape.new(name: 'ListRepositoryAssociationsRequest')
29
50
  ListRepositoryAssociationsResponse = Shapes::StructureShape.new(name: 'ListRepositoryAssociationsResponse')
30
51
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
52
+ MeteredLinesOfCodeCount = Shapes::IntegerShape.new(name: 'MeteredLinesOfCodeCount')
53
+ Metrics = Shapes::StructureShape.new(name: 'Metrics')
54
+ MetricsSummary = Shapes::StructureShape.new(name: 'MetricsSummary')
31
55
  Name = Shapes::StringShape.new(name: 'Name')
32
56
  Names = Shapes::ListShape.new(name: 'Names')
33
57
  NextToken = Shapes::StringShape.new(name: 'NextToken')
@@ -36,15 +60,34 @@ module Aws::CodeGuruReviewer
36
60
  Owners = Shapes::ListShape.new(name: 'Owners')
37
61
  ProviderType = Shapes::StringShape.new(name: 'ProviderType')
38
62
  ProviderTypes = Shapes::ListShape.new(name: 'ProviderTypes')
63
+ PullRequestId = Shapes::StringShape.new(name: 'PullRequestId')
64
+ PutRecommendationFeedbackRequest = Shapes::StructureShape.new(name: 'PutRecommendationFeedbackRequest')
65
+ PutRecommendationFeedbackResponse = Shapes::StructureShape.new(name: 'PutRecommendationFeedbackResponse')
66
+ Reaction = Shapes::StringShape.new(name: 'Reaction')
67
+ Reactions = Shapes::ListShape.new(name: 'Reactions')
68
+ RecommendationFeedback = Shapes::StructureShape.new(name: 'RecommendationFeedback')
69
+ RecommendationFeedbackSummaries = Shapes::ListShape.new(name: 'RecommendationFeedbackSummaries')
70
+ RecommendationFeedbackSummary = Shapes::StructureShape.new(name: 'RecommendationFeedbackSummary')
71
+ RecommendationId = Shapes::StringShape.new(name: 'RecommendationId')
72
+ RecommendationIds = Shapes::ListShape.new(name: 'RecommendationIds')
73
+ RecommendationSummaries = Shapes::ListShape.new(name: 'RecommendationSummaries')
74
+ RecommendationSummary = Shapes::StructureShape.new(name: 'RecommendationSummary')
39
75
  Repository = Shapes::StructureShape.new(name: 'Repository')
40
76
  RepositoryAssociation = Shapes::StructureShape.new(name: 'RepositoryAssociation')
41
77
  RepositoryAssociationState = Shapes::StringShape.new(name: 'RepositoryAssociationState')
42
78
  RepositoryAssociationStates = Shapes::ListShape.new(name: 'RepositoryAssociationStates')
43
79
  RepositoryAssociationSummaries = Shapes::ListShape.new(name: 'RepositoryAssociationSummaries')
44
80
  RepositoryAssociationSummary = Shapes::StructureShape.new(name: 'RepositoryAssociationSummary')
81
+ RepositoryNames = Shapes::ListShape.new(name: 'RepositoryNames')
82
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
83
+ SourceCodeType = Shapes::StructureShape.new(name: 'SourceCodeType')
45
84
  StateReason = Shapes::StringShape.new(name: 'StateReason')
85
+ Text = Shapes::StringShape.new(name: 'Text')
46
86
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
47
87
  TimeStamp = Shapes::TimestampShape.new(name: 'TimeStamp')
88
+ Type = Shapes::StringShape.new(name: 'Type')
89
+ UserId = Shapes::StringShape.new(name: 'UserId')
90
+ UserIds = Shapes::ListShape.new(name: 'UserIds')
48
91
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
49
92
 
50
93
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -60,9 +103,57 @@ module Aws::CodeGuruReviewer
60
103
  CodeCommitRepository.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
61
104
  CodeCommitRepository.struct_class = Types::CodeCommitRepository
62
105
 
106
+ CodeReview.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
107
+ CodeReview.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CodeReviewArn"))
108
+ CodeReview.add_member(:repository_name, Shapes::ShapeRef.new(shape: Name, location_name: "RepositoryName"))
109
+ CodeReview.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "Owner"))
110
+ CodeReview.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
111
+ CodeReview.add_member(:state, Shapes::ShapeRef.new(shape: JobState, location_name: "State"))
112
+ CodeReview.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, location_name: "StateReason"))
113
+ CodeReview.add_member(:created_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "CreatedTimeStamp"))
114
+ CodeReview.add_member(:last_updated_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LastUpdatedTimeStamp"))
115
+ CodeReview.add_member(:type, Shapes::ShapeRef.new(shape: Type, location_name: "Type"))
116
+ CodeReview.add_member(:pull_request_id, Shapes::ShapeRef.new(shape: PullRequestId, location_name: "PullRequestId"))
117
+ CodeReview.add_member(:source_code_type, Shapes::ShapeRef.new(shape: SourceCodeType, location_name: "SourceCodeType"))
118
+ CodeReview.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
119
+ CodeReview.struct_class = Types::CodeReview
120
+
121
+ CodeReviewSummaries.member = Shapes::ShapeRef.new(shape: CodeReviewSummary)
122
+
123
+ CodeReviewSummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
124
+ CodeReviewSummary.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CodeReviewArn"))
125
+ CodeReviewSummary.add_member(:repository_name, Shapes::ShapeRef.new(shape: Name, location_name: "RepositoryName"))
126
+ CodeReviewSummary.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "Owner"))
127
+ CodeReviewSummary.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
128
+ CodeReviewSummary.add_member(:state, Shapes::ShapeRef.new(shape: JobState, location_name: "State"))
129
+ CodeReviewSummary.add_member(:created_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "CreatedTimeStamp"))
130
+ CodeReviewSummary.add_member(:last_updated_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LastUpdatedTimeStamp"))
131
+ CodeReviewSummary.add_member(:type, Shapes::ShapeRef.new(shape: Type, location_name: "Type"))
132
+ CodeReviewSummary.add_member(:pull_request_id, Shapes::ShapeRef.new(shape: PullRequestId, location_name: "PullRequestId"))
133
+ CodeReviewSummary.add_member(:metrics_summary, Shapes::ShapeRef.new(shape: MetricsSummary, location_name: "MetricsSummary"))
134
+ CodeReviewSummary.struct_class = Types::CodeReviewSummary
135
+
136
+ CommitDiffSourceCodeType.add_member(:source_commit, Shapes::ShapeRef.new(shape: CommitId, location_name: "SourceCommit"))
137
+ CommitDiffSourceCodeType.add_member(:destination_commit, Shapes::ShapeRef.new(shape: CommitId, location_name: "DestinationCommit"))
138
+ CommitDiffSourceCodeType.struct_class = Types::CommitDiffSourceCodeType
139
+
63
140
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
64
141
  ConflictException.struct_class = Types::ConflictException
65
142
 
143
+ DescribeCodeReviewRequest.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "CodeReviewArn"))
144
+ DescribeCodeReviewRequest.struct_class = Types::DescribeCodeReviewRequest
145
+
146
+ DescribeCodeReviewResponse.add_member(:code_review, Shapes::ShapeRef.new(shape: CodeReview, location_name: "CodeReview"))
147
+ DescribeCodeReviewResponse.struct_class = Types::DescribeCodeReviewResponse
148
+
149
+ DescribeRecommendationFeedbackRequest.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "CodeReviewArn"))
150
+ DescribeRecommendationFeedbackRequest.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, required: true, location: "querystring", location_name: "RecommendationId"))
151
+ DescribeRecommendationFeedbackRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, location: "querystring", location_name: "UserId"))
152
+ DescribeRecommendationFeedbackRequest.struct_class = Types::DescribeRecommendationFeedbackRequest
153
+
154
+ DescribeRecommendationFeedbackResponse.add_member(:recommendation_feedback, Shapes::ShapeRef.new(shape: RecommendationFeedback, location_name: "RecommendationFeedback"))
155
+ DescribeRecommendationFeedbackResponse.struct_class = Types::DescribeRecommendationFeedbackResponse
156
+
66
157
  DescribeRepositoryAssociationRequest.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "AssociationArn"))
67
158
  DescribeRepositoryAssociationRequest.struct_class = Types::DescribeRepositoryAssociationRequest
68
159
 
@@ -78,6 +169,40 @@ module Aws::CodeGuruReviewer
78
169
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
79
170
  InternalServerException.struct_class = Types::InternalServerException
80
171
 
172
+ JobStates.member = Shapes::ShapeRef.new(shape: JobState)
173
+
174
+ ListCodeReviewsRequest.add_member(:provider_types, Shapes::ShapeRef.new(shape: ProviderTypes, location: "querystring", location_name: "ProviderTypes"))
175
+ ListCodeReviewsRequest.add_member(:states, Shapes::ShapeRef.new(shape: JobStates, location: "querystring", location_name: "States"))
176
+ ListCodeReviewsRequest.add_member(:repository_names, Shapes::ShapeRef.new(shape: RepositoryNames, location: "querystring", location_name: "RepositoryNames"))
177
+ ListCodeReviewsRequest.add_member(:type, Shapes::ShapeRef.new(shape: Type, required: true, location: "querystring", location_name: "Type"))
178
+ ListCodeReviewsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListCodeReviewsMaxResults, location: "querystring", location_name: "MaxResults"))
179
+ ListCodeReviewsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
180
+ ListCodeReviewsRequest.struct_class = Types::ListCodeReviewsRequest
181
+
182
+ ListCodeReviewsResponse.add_member(:code_review_summaries, Shapes::ShapeRef.new(shape: CodeReviewSummaries, location_name: "CodeReviewSummaries"))
183
+ ListCodeReviewsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
184
+ ListCodeReviewsResponse.struct_class = Types::ListCodeReviewsResponse
185
+
186
+ ListRecommendationFeedbackRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
187
+ ListRecommendationFeedbackRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
188
+ ListRecommendationFeedbackRequest.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "CodeReviewArn"))
189
+ ListRecommendationFeedbackRequest.add_member(:user_ids, Shapes::ShapeRef.new(shape: UserIds, location: "querystring", location_name: "UserIds"))
190
+ ListRecommendationFeedbackRequest.add_member(:recommendation_ids, Shapes::ShapeRef.new(shape: RecommendationIds, location: "querystring", location_name: "RecommendationIds"))
191
+ ListRecommendationFeedbackRequest.struct_class = Types::ListRecommendationFeedbackRequest
192
+
193
+ ListRecommendationFeedbackResponse.add_member(:recommendation_feedback_summaries, Shapes::ShapeRef.new(shape: RecommendationFeedbackSummaries, location_name: "RecommendationFeedbackSummaries"))
194
+ ListRecommendationFeedbackResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
195
+ ListRecommendationFeedbackResponse.struct_class = Types::ListRecommendationFeedbackResponse
196
+
197
+ ListRecommendationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
198
+ ListRecommendationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
199
+ ListRecommendationsRequest.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "CodeReviewArn"))
200
+ ListRecommendationsRequest.struct_class = Types::ListRecommendationsRequest
201
+
202
+ ListRecommendationsResponse.add_member(:recommendation_summaries, Shapes::ShapeRef.new(shape: RecommendationSummaries, location_name: "RecommendationSummaries"))
203
+ ListRecommendationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
204
+ ListRecommendationsResponse.struct_class = Types::ListRecommendationsResponse
205
+
81
206
  ListRepositoryAssociationsRequest.add_member(:provider_types, Shapes::ShapeRef.new(shape: ProviderTypes, location: "querystring", location_name: "ProviderType"))
82
207
  ListRepositoryAssociationsRequest.add_member(:states, Shapes::ShapeRef.new(shape: RepositoryAssociationStates, location: "querystring", location_name: "State"))
83
208
  ListRepositoryAssociationsRequest.add_member(:names, Shapes::ShapeRef.new(shape: Names, location: "querystring", location_name: "Name"))
@@ -90,6 +215,14 @@ module Aws::CodeGuruReviewer
90
215
  ListRepositoryAssociationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
91
216
  ListRepositoryAssociationsResponse.struct_class = Types::ListRepositoryAssociationsResponse
92
217
 
218
+ Metrics.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape: MeteredLinesOfCodeCount, location_name: "MeteredLinesOfCodeCount"))
219
+ Metrics.add_member(:findings_count, Shapes::ShapeRef.new(shape: FindingsCount, location_name: "FindingsCount"))
220
+ Metrics.struct_class = Types::Metrics
221
+
222
+ MetricsSummary.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape: MeteredLinesOfCodeCount, location_name: "MeteredLinesOfCodeCount"))
223
+ MetricsSummary.add_member(:findings_count, Shapes::ShapeRef.new(shape: FindingsCount, location_name: "FindingsCount"))
224
+ MetricsSummary.struct_class = Types::MetricsSummary
225
+
93
226
  Names.member = Shapes::ShapeRef.new(shape: Name)
94
227
 
95
228
  NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -99,6 +232,41 @@ module Aws::CodeGuruReviewer
99
232
 
100
233
  ProviderTypes.member = Shapes::ShapeRef.new(shape: ProviderType)
101
234
 
235
+ PutRecommendationFeedbackRequest.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CodeReviewArn"))
236
+ PutRecommendationFeedbackRequest.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, required: true, location_name: "RecommendationId"))
237
+ PutRecommendationFeedbackRequest.add_member(:reactions, Shapes::ShapeRef.new(shape: Reactions, required: true, location_name: "Reactions"))
238
+ PutRecommendationFeedbackRequest.struct_class = Types::PutRecommendationFeedbackRequest
239
+
240
+ PutRecommendationFeedbackResponse.struct_class = Types::PutRecommendationFeedbackResponse
241
+
242
+ Reactions.member = Shapes::ShapeRef.new(shape: Reaction)
243
+
244
+ RecommendationFeedback.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "CodeReviewArn"))
245
+ RecommendationFeedback.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, location_name: "RecommendationId"))
246
+ RecommendationFeedback.add_member(:reactions, Shapes::ShapeRef.new(shape: Reactions, location_name: "Reactions"))
247
+ RecommendationFeedback.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, location_name: "UserId"))
248
+ RecommendationFeedback.add_member(:created_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "CreatedTimeStamp"))
249
+ RecommendationFeedback.add_member(:last_updated_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LastUpdatedTimeStamp"))
250
+ RecommendationFeedback.struct_class = Types::RecommendationFeedback
251
+
252
+ RecommendationFeedbackSummaries.member = Shapes::ShapeRef.new(shape: RecommendationFeedbackSummary)
253
+
254
+ RecommendationFeedbackSummary.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, location_name: "RecommendationId"))
255
+ RecommendationFeedbackSummary.add_member(:reactions, Shapes::ShapeRef.new(shape: Reactions, location_name: "Reactions"))
256
+ RecommendationFeedbackSummary.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, location_name: "UserId"))
257
+ RecommendationFeedbackSummary.struct_class = Types::RecommendationFeedbackSummary
258
+
259
+ RecommendationIds.member = Shapes::ShapeRef.new(shape: RecommendationId)
260
+
261
+ RecommendationSummaries.member = Shapes::ShapeRef.new(shape: RecommendationSummary)
262
+
263
+ RecommendationSummary.add_member(:file_path, Shapes::ShapeRef.new(shape: FilePath, location_name: "FilePath"))
264
+ RecommendationSummary.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, location_name: "RecommendationId"))
265
+ RecommendationSummary.add_member(:start_line, Shapes::ShapeRef.new(shape: LineNumber, location_name: "StartLine"))
266
+ RecommendationSummary.add_member(:end_line, Shapes::ShapeRef.new(shape: LineNumber, location_name: "EndLine"))
267
+ RecommendationSummary.add_member(:description, Shapes::ShapeRef.new(shape: Text, location_name: "Description"))
268
+ RecommendationSummary.struct_class = Types::RecommendationSummary
269
+
102
270
  Repository.add_member(:code_commit, Shapes::ShapeRef.new(shape: CodeCommitRepository, location_name: "CodeCommit"))
103
271
  Repository.struct_class = Types::Repository
104
272
 
@@ -126,9 +294,19 @@ module Aws::CodeGuruReviewer
126
294
  RepositoryAssociationSummary.add_member(:state, Shapes::ShapeRef.new(shape: RepositoryAssociationState, location_name: "State"))
127
295
  RepositoryAssociationSummary.struct_class = Types::RepositoryAssociationSummary
128
296
 
297
+ RepositoryNames.member = Shapes::ShapeRef.new(shape: Name)
298
+
299
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
300
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
301
+
302
+ SourceCodeType.add_member(:commit_diff, Shapes::ShapeRef.new(shape: CommitDiffSourceCodeType, location_name: "CommitDiff"))
303
+ SourceCodeType.struct_class = Types::SourceCodeType
304
+
129
305
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
130
306
  ThrottlingException.struct_class = Types::ThrottlingException
131
307
 
308
+ UserIds.member = Shapes::ShapeRef.new(shape: UserId)
309
+
132
310
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
133
311
  ValidationException.struct_class = Types::ValidationException
134
312
 
@@ -164,6 +342,32 @@ module Aws::CodeGuruReviewer
164
342
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
165
343
  end)
166
344
 
345
+ api.add_operation(:describe_code_review, Seahorse::Model::Operation.new.tap do |o|
346
+ o.name = "DescribeCodeReview"
347
+ o.http_method = "GET"
348
+ o.http_request_uri = "/codereviews/{CodeReviewArn}"
349
+ o.input = Shapes::ShapeRef.new(shape: DescribeCodeReviewRequest)
350
+ o.output = Shapes::ShapeRef.new(shape: DescribeCodeReviewResponse)
351
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
352
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
353
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
354
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
355
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
356
+ end)
357
+
358
+ api.add_operation(:describe_recommendation_feedback, Seahorse::Model::Operation.new.tap do |o|
359
+ o.name = "DescribeRecommendationFeedback"
360
+ o.http_method = "GET"
361
+ o.http_request_uri = "/feedback/{CodeReviewArn}"
362
+ o.input = Shapes::ShapeRef.new(shape: DescribeRecommendationFeedbackRequest)
363
+ o.output = Shapes::ShapeRef.new(shape: DescribeRecommendationFeedbackResponse)
364
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
365
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
366
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
367
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
368
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
369
+ end)
370
+
167
371
  api.add_operation(:describe_repository_association, Seahorse::Model::Operation.new.tap do |o|
168
372
  o.name = "DescribeRepositoryAssociation"
169
373
  o.http_method = "GET"
@@ -191,6 +395,62 @@ module Aws::CodeGuruReviewer
191
395
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
192
396
  end)
193
397
 
398
+ api.add_operation(:list_code_reviews, Seahorse::Model::Operation.new.tap do |o|
399
+ o.name = "ListCodeReviews"
400
+ o.http_method = "GET"
401
+ o.http_request_uri = "/codereviews"
402
+ o.input = Shapes::ShapeRef.new(shape: ListCodeReviewsRequest)
403
+ o.output = Shapes::ShapeRef.new(shape: ListCodeReviewsResponse)
404
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
405
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
406
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
407
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
408
+ o[:pager] = Aws::Pager.new(
409
+ limit_key: "max_results",
410
+ tokens: {
411
+ "next_token" => "next_token"
412
+ }
413
+ )
414
+ end)
415
+
416
+ api.add_operation(:list_recommendation_feedback, Seahorse::Model::Operation.new.tap do |o|
417
+ o.name = "ListRecommendationFeedback"
418
+ o.http_method = "GET"
419
+ o.http_request_uri = "/feedback/{CodeReviewArn}/RecommendationFeedback"
420
+ o.input = Shapes::ShapeRef.new(shape: ListRecommendationFeedbackRequest)
421
+ o.output = Shapes::ShapeRef.new(shape: ListRecommendationFeedbackResponse)
422
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
423
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
424
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
425
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
426
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
427
+ o[:pager] = Aws::Pager.new(
428
+ limit_key: "max_results",
429
+ tokens: {
430
+ "next_token" => "next_token"
431
+ }
432
+ )
433
+ end)
434
+
435
+ api.add_operation(:list_recommendations, Seahorse::Model::Operation.new.tap do |o|
436
+ o.name = "ListRecommendations"
437
+ o.http_method = "GET"
438
+ o.http_request_uri = "/codereviews/{CodeReviewArn}/Recommendations"
439
+ o.input = Shapes::ShapeRef.new(shape: ListRecommendationsRequest)
440
+ o.output = Shapes::ShapeRef.new(shape: ListRecommendationsResponse)
441
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
442
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
443
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
444
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
445
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
446
+ o[:pager] = Aws::Pager.new(
447
+ limit_key: "max_results",
448
+ tokens: {
449
+ "next_token" => "next_token"
450
+ }
451
+ )
452
+ end)
453
+
194
454
  api.add_operation(:list_repository_associations, Seahorse::Model::Operation.new.tap do |o|
195
455
  o.name = "ListRepositoryAssociations"
196
456
  o.http_method = "GET"
@@ -207,6 +467,19 @@ module Aws::CodeGuruReviewer
207
467
  }
208
468
  )
209
469
  end)
470
+
471
+ api.add_operation(:put_recommendation_feedback, Seahorse::Model::Operation.new.tap do |o|
472
+ o.name = "PutRecommendationFeedback"
473
+ o.http_method = "PUT"
474
+ o.http_request_uri = "/feedback"
475
+ o.input = Shapes::ShapeRef.new(shape: PutRecommendationFeedbackRequest)
476
+ o.output = Shapes::ShapeRef.new(shape: PutRecommendationFeedbackResponse)
477
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
478
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
479
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
480
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
481
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
482
+ end)
210
483
  end
211
484
 
212
485
  end