aws-sdk-codegurureviewer 1.2.0 → 1.7.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6da7d158762ff6da67e8b399b3ac1e1ef320050e90dee794b02e118aece00d4
|
4
|
+
data.tar.gz: e1177b3e7950812bfc7f18281107a117642eb9416fd6642c3fcc21ae90b52a41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff03d52665593e7b2f92496740040a85e4cc3ca829f74afe05f9b76d14d1fa74175bd65b1058b906832e60263c86edd54d0470f8d0e3f37620e787c643f4f0da
|
7
|
+
data.tar.gz: a9376b5aad07946cb14f63eafeb4d82b11d2136efd7adf524df993ce0437ee1941fb606730c51ee061b357f82d675bb3efae760ceddb706e9b462257611b7e5f
|
@@ -24,6 +24,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
24
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
25
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
26
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
27
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
28
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
29
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
30
|
|
@@ -69,6 +70,7 @@ module Aws::CodeGuruReviewer
|
|
69
70
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
71
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
72
|
add_plugin(Aws::Plugins::TransferEncoding)
|
73
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
74
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
75
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
74
76
|
|
@@ -105,7 +107,7 @@ module Aws::CodeGuruReviewer
|
|
105
107
|
# @option options [required, String] :region
|
106
108
|
# The AWS region to connect to. The configured `:region` is
|
107
109
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
110
|
+
# a default `:region` is searched for in the following locations:
|
109
111
|
#
|
110
112
|
# * `Aws.config[:region]`
|
111
113
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +163,7 @@ module Aws::CodeGuruReviewer
|
|
161
163
|
# @option options [String] :endpoint
|
162
164
|
# The client endpoint is normally constructed from the `:region`
|
163
165
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
166
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
167
|
#
|
166
168
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
169
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +178,7 @@ module Aws::CodeGuruReviewer
|
|
176
178
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
179
|
#
|
178
180
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
181
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
182
|
#
|
181
183
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
184
|
# The log formatter.
|
@@ -311,8 +313,8 @@ module Aws::CodeGuruReviewer
|
|
311
313
|
# Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer.
|
312
314
|
# When you associate an AWS CodeCommit repository with Amazon CodeGuru
|
313
315
|
# Reviewer, Amazon CodeGuru Reviewer will provide recommendations for
|
314
|
-
# each pull request. You can view
|
315
|
-
# repository.
|
316
|
+
# each pull request raised within the repository. You can view
|
317
|
+
# recommendations in the AWS CodeCommit repository.
|
316
318
|
#
|
317
319
|
# You can associate a GitHub repository using the Amazon CodeGuru
|
318
320
|
# Reviewer console.
|
@@ -324,22 +326,21 @@ module Aws::CodeGuruReviewer
|
|
324
326
|
# Unique, case-sensitive identifier that you provide to ensure the
|
325
327
|
# idempotency of the request.
|
326
328
|
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
329
|
+
# To add a new repository association, this parameter specifies a unique
|
330
|
+
# identifier for the new repository association that helps ensure
|
331
|
+
# idempotency.
|
330
332
|
#
|
331
|
-
# If you use the AWS CLI or one of the AWS
|
332
|
-
#
|
333
|
-
#
|
334
|
-
#
|
335
|
-
#
|
336
|
-
#
|
333
|
+
# If you use the AWS CLI or one of the AWS SDKs to call this operation,
|
334
|
+
# you can leave this parameter empty. The CLI or SDK generates a random
|
335
|
+
# UUID for you and includes that in the request. If you don't use the
|
336
|
+
# SDK and instead generate a raw HTTP request to the Secrets Manager
|
337
|
+
# service endpoint, you must generate a ClientRequestToken yourself for
|
338
|
+
# new versions and include that value in the request.
|
337
339
|
#
|
338
|
-
# You typically
|
339
|
-
#
|
340
|
-
#
|
341
|
-
#
|
342
|
-
# association.
|
340
|
+
# You typically interact with this value if you implement your own retry
|
341
|
+
# logic and want to ensure that a given repository association is not
|
342
|
+
# created twice. We recommend that you generate a UUID-type value to
|
343
|
+
# ensure uniqueness within the specified repository association.
|
343
344
|
#
|
344
345
|
# Amazon CodeGuru Reviewer uses this value to prevent the accidental
|
345
346
|
# creation of duplicate repository associations if there are failures
|
@@ -359,6 +360,11 @@ module Aws::CodeGuruReviewer
|
|
359
360
|
# code_commit: {
|
360
361
|
# name: "Name", # required
|
361
362
|
# },
|
363
|
+
# bitbucket: {
|
364
|
+
# name: "Name", # required
|
365
|
+
# connection_arn: "ConnectionArn", # required
|
366
|
+
# owner: "Owner", # required
|
367
|
+
# },
|
362
368
|
# },
|
363
369
|
# client_request_token: "ClientRequestToken",
|
364
370
|
# })
|
@@ -367,9 +373,10 @@ module Aws::CodeGuruReviewer
|
|
367
373
|
#
|
368
374
|
# resp.repository_association.association_id #=> String
|
369
375
|
# resp.repository_association.association_arn #=> String
|
376
|
+
# resp.repository_association.connection_arn #=> String
|
370
377
|
# resp.repository_association.name #=> String
|
371
378
|
# resp.repository_association.owner #=> String
|
372
|
-
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub"
|
379
|
+
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
373
380
|
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
|
374
381
|
# resp.repository_association.state_reason #=> String
|
375
382
|
# resp.repository_association.last_updated_time_stamp #=> Time
|
@@ -384,10 +391,99 @@ module Aws::CodeGuruReviewer
|
|
384
391
|
req.send_request(options)
|
385
392
|
end
|
386
393
|
|
394
|
+
# Returns the metadaata associated with the code review along with its
|
395
|
+
# status.
|
396
|
+
#
|
397
|
+
# @option params [required, String] :code_review_arn
|
398
|
+
# The Amazon Resource Name (ARN) of the code review to describe.
|
399
|
+
#
|
400
|
+
# @return [Types::DescribeCodeReviewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
401
|
+
#
|
402
|
+
# * {Types::DescribeCodeReviewResponse#code_review #code_review} => Types::CodeReview
|
403
|
+
#
|
404
|
+
# @example Request syntax with placeholder values
|
405
|
+
#
|
406
|
+
# resp = client.describe_code_review({
|
407
|
+
# code_review_arn: "Arn", # required
|
408
|
+
# })
|
409
|
+
#
|
410
|
+
# @example Response structure
|
411
|
+
#
|
412
|
+
# resp.code_review.name #=> String
|
413
|
+
# resp.code_review.code_review_arn #=> String
|
414
|
+
# resp.code_review.repository_name #=> String
|
415
|
+
# resp.code_review.owner #=> String
|
416
|
+
# resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
417
|
+
# resp.code_review.state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
|
418
|
+
# resp.code_review.state_reason #=> String
|
419
|
+
# resp.code_review.created_time_stamp #=> Time
|
420
|
+
# resp.code_review.last_updated_time_stamp #=> Time
|
421
|
+
# resp.code_review.type #=> String, one of "PullRequest"
|
422
|
+
# resp.code_review.pull_request_id #=> String
|
423
|
+
# resp.code_review.source_code_type.commit_diff.source_commit #=> String
|
424
|
+
# resp.code_review.source_code_type.commit_diff.destination_commit #=> String
|
425
|
+
# resp.code_review.metrics.metered_lines_of_code_count #=> Integer
|
426
|
+
# resp.code_review.metrics.findings_count #=> Integer
|
427
|
+
#
|
428
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReview AWS API Documentation
|
429
|
+
#
|
430
|
+
# @overload describe_code_review(params = {})
|
431
|
+
# @param [Hash] params ({})
|
432
|
+
def describe_code_review(params = {}, options = {})
|
433
|
+
req = build_request(:describe_code_review, params)
|
434
|
+
req.send_request(options)
|
435
|
+
end
|
436
|
+
|
437
|
+
# Describes the customer feedback for a CodeGuru Reviewer
|
438
|
+
# recommendation.
|
439
|
+
#
|
440
|
+
# @option params [required, String] :code_review_arn
|
441
|
+
# The Amazon Resource Name (ARN) that identifies the code review.
|
442
|
+
#
|
443
|
+
# @option params [required, String] :recommendation_id
|
444
|
+
# The recommendation ID that can be used to track the provided
|
445
|
+
# recommendations and then to collect the feedback.
|
446
|
+
#
|
447
|
+
# @option params [String] :user_id
|
448
|
+
# Optional parameter to describe the feedback for a given user. If this
|
449
|
+
# is not supplied, it defaults to the user making the request.
|
450
|
+
#
|
451
|
+
# @return [Types::DescribeRecommendationFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
452
|
+
#
|
453
|
+
# * {Types::DescribeRecommendationFeedbackResponse#recommendation_feedback #recommendation_feedback} => Types::RecommendationFeedback
|
454
|
+
#
|
455
|
+
# @example Request syntax with placeholder values
|
456
|
+
#
|
457
|
+
# resp = client.describe_recommendation_feedback({
|
458
|
+
# code_review_arn: "Arn", # required
|
459
|
+
# recommendation_id: "RecommendationId", # required
|
460
|
+
# user_id: "UserId",
|
461
|
+
# })
|
462
|
+
#
|
463
|
+
# @example Response structure
|
464
|
+
#
|
465
|
+
# resp.recommendation_feedback.code_review_arn #=> String
|
466
|
+
# resp.recommendation_feedback.recommendation_id #=> String
|
467
|
+
# resp.recommendation_feedback.reactions #=> Array
|
468
|
+
# resp.recommendation_feedback.reactions[0] #=> String, one of "ThumbsUp", "ThumbsDown"
|
469
|
+
# resp.recommendation_feedback.user_id #=> String
|
470
|
+
# resp.recommendation_feedback.created_time_stamp #=> Time
|
471
|
+
# resp.recommendation_feedback.last_updated_time_stamp #=> Time
|
472
|
+
#
|
473
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedback AWS API Documentation
|
474
|
+
#
|
475
|
+
# @overload describe_recommendation_feedback(params = {})
|
476
|
+
# @param [Hash] params ({})
|
477
|
+
def describe_recommendation_feedback(params = {}, options = {})
|
478
|
+
req = build_request(:describe_recommendation_feedback, params)
|
479
|
+
req.send_request(options)
|
480
|
+
end
|
481
|
+
|
387
482
|
# Describes a repository association.
|
388
483
|
#
|
389
484
|
# @option params [required, String] :association_arn
|
390
|
-
# The Amazon Resource Name (ARN) identifying the association.
|
485
|
+
# The Amazon Resource Name (ARN) identifying the association. You can
|
486
|
+
# retrieve this ARN by calling `ListRepositories`.
|
391
487
|
#
|
392
488
|
# @return [Types::DescribeRepositoryAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
393
489
|
#
|
@@ -403,9 +499,10 @@ module Aws::CodeGuruReviewer
|
|
403
499
|
#
|
404
500
|
# resp.repository_association.association_id #=> String
|
405
501
|
# resp.repository_association.association_arn #=> String
|
502
|
+
# resp.repository_association.connection_arn #=> String
|
406
503
|
# resp.repository_association.name #=> String
|
407
504
|
# resp.repository_association.owner #=> String
|
408
|
-
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub"
|
505
|
+
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
409
506
|
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
|
410
507
|
# resp.repository_association.state_reason #=> String
|
411
508
|
# resp.repository_association.last_updated_time_stamp #=> Time
|
@@ -440,9 +537,10 @@ module Aws::CodeGuruReviewer
|
|
440
537
|
#
|
441
538
|
# resp.repository_association.association_id #=> String
|
442
539
|
# resp.repository_association.association_arn #=> String
|
540
|
+
# resp.repository_association.connection_arn #=> String
|
443
541
|
# resp.repository_association.name #=> String
|
444
542
|
# resp.repository_association.owner #=> String
|
445
|
-
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub"
|
543
|
+
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
446
544
|
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
|
447
545
|
# resp.repository_association.state_reason #=> String
|
448
546
|
# resp.repository_association.last_updated_time_stamp #=> Time
|
@@ -457,6 +555,189 @@ module Aws::CodeGuruReviewer
|
|
457
555
|
req.send_request(options)
|
458
556
|
end
|
459
557
|
|
558
|
+
# Lists all the code reviews that the customer has created in the past
|
559
|
+
# 90 days.
|
560
|
+
#
|
561
|
+
# @option params [Array<String>] :provider_types
|
562
|
+
# List of provider types for filtering that needs to be applied before
|
563
|
+
# displaying the result. For example, "providerTypes=\[GitHub\]" will
|
564
|
+
# list code reviews from GitHub.
|
565
|
+
#
|
566
|
+
# @option params [Array<String>] :states
|
567
|
+
# List of states for filtering that needs to be applied before
|
568
|
+
# displaying the result. For example, "states=\[Pending\]" will list
|
569
|
+
# code reviews in the Pending state.
|
570
|
+
#
|
571
|
+
# @option params [Array<String>] :repository_names
|
572
|
+
# List of repository names for filtering that needs to be applied before
|
573
|
+
# displaying the result.
|
574
|
+
#
|
575
|
+
# @option params [required, String] :type
|
576
|
+
# The type of code reviews to list in the response.
|
577
|
+
#
|
578
|
+
# @option params [Integer] :max_results
|
579
|
+
# The maximum number of results that are returned per call. The default
|
580
|
+
# is 100.
|
581
|
+
#
|
582
|
+
# @option params [String] :next_token
|
583
|
+
# If nextToken is returned, there are more results available. The value
|
584
|
+
# of nextToken is a unique pagination token for each page. Make the call
|
585
|
+
# again using the returned token to retrieve the next page. Keep all
|
586
|
+
# other arguments unchanged.
|
587
|
+
#
|
588
|
+
# @return [Types::ListCodeReviewsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
589
|
+
#
|
590
|
+
# * {Types::ListCodeReviewsResponse#code_review_summaries #code_review_summaries} => Array<Types::CodeReviewSummary>
|
591
|
+
# * {Types::ListCodeReviewsResponse#next_token #next_token} => String
|
592
|
+
#
|
593
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
594
|
+
#
|
595
|
+
# @example Request syntax with placeholder values
|
596
|
+
#
|
597
|
+
# resp = client.list_code_reviews({
|
598
|
+
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
|
599
|
+
# states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
|
600
|
+
# repository_names: ["Name"],
|
601
|
+
# type: "PullRequest", # required, accepts PullRequest
|
602
|
+
# max_results: 1,
|
603
|
+
# next_token: "NextToken",
|
604
|
+
# })
|
605
|
+
#
|
606
|
+
# @example Response structure
|
607
|
+
#
|
608
|
+
# resp.code_review_summaries #=> Array
|
609
|
+
# resp.code_review_summaries[0].name #=> String
|
610
|
+
# resp.code_review_summaries[0].code_review_arn #=> String
|
611
|
+
# resp.code_review_summaries[0].repository_name #=> String
|
612
|
+
# resp.code_review_summaries[0].owner #=> String
|
613
|
+
# resp.code_review_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
614
|
+
# resp.code_review_summaries[0].state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
|
615
|
+
# resp.code_review_summaries[0].created_time_stamp #=> Time
|
616
|
+
# resp.code_review_summaries[0].last_updated_time_stamp #=> Time
|
617
|
+
# resp.code_review_summaries[0].type #=> String, one of "PullRequest"
|
618
|
+
# resp.code_review_summaries[0].pull_request_id #=> String
|
619
|
+
# resp.code_review_summaries[0].metrics_summary.metered_lines_of_code_count #=> Integer
|
620
|
+
# resp.code_review_summaries[0].metrics_summary.findings_count #=> Integer
|
621
|
+
# resp.next_token #=> String
|
622
|
+
#
|
623
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviews AWS API Documentation
|
624
|
+
#
|
625
|
+
# @overload list_code_reviews(params = {})
|
626
|
+
# @param [Hash] params ({})
|
627
|
+
def list_code_reviews(params = {}, options = {})
|
628
|
+
req = build_request(:list_code_reviews, params)
|
629
|
+
req.send_request(options)
|
630
|
+
end
|
631
|
+
|
632
|
+
# Lists the customer feedback for a CodeGuru Reviewer recommendation for
|
633
|
+
# all users. This API will be used from the console to extract the
|
634
|
+
# previously given feedback by the user to pre-populate the feedback
|
635
|
+
# emojis for all recommendations.
|
636
|
+
#
|
637
|
+
# @option params [String] :next_token
|
638
|
+
# If nextToken is returned, there are more results available. The value
|
639
|
+
# of nextToken is a unique pagination token for each page. Make the call
|
640
|
+
# again using the returned token to retrieve the next page. Keep all
|
641
|
+
# other arguments unchanged.
|
642
|
+
#
|
643
|
+
# @option params [Integer] :max_results
|
644
|
+
# The maximum number of results that are returned per call. The default
|
645
|
+
# is 100.
|
646
|
+
#
|
647
|
+
# @option params [required, String] :code_review_arn
|
648
|
+
# The Amazon Resource Name (ARN) that identifies the code review.
|
649
|
+
#
|
650
|
+
# @option params [Array<String>] :user_ids
|
651
|
+
# Filter on userIds that need to be applied before displaying the
|
652
|
+
# result. This can be used to query all the recommendation feedback for
|
653
|
+
# a code review from a given user.
|
654
|
+
#
|
655
|
+
# @option params [Array<String>] :recommendation_ids
|
656
|
+
# Filter on recommendationIds that need to be applied before displaying
|
657
|
+
# the result. This can be used to query all the recommendation feedback
|
658
|
+
# for a given recommendation.
|
659
|
+
#
|
660
|
+
# @return [Types::ListRecommendationFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
661
|
+
#
|
662
|
+
# * {Types::ListRecommendationFeedbackResponse#recommendation_feedback_summaries #recommendation_feedback_summaries} => Array<Types::RecommendationFeedbackSummary>
|
663
|
+
# * {Types::ListRecommendationFeedbackResponse#next_token #next_token} => String
|
664
|
+
#
|
665
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
666
|
+
#
|
667
|
+
# @example Request syntax with placeholder values
|
668
|
+
#
|
669
|
+
# resp = client.list_recommendation_feedback({
|
670
|
+
# next_token: "NextToken",
|
671
|
+
# max_results: 1,
|
672
|
+
# code_review_arn: "Arn", # required
|
673
|
+
# user_ids: ["UserId"],
|
674
|
+
# recommendation_ids: ["RecommendationId"],
|
675
|
+
# })
|
676
|
+
#
|
677
|
+
# @example Response structure
|
678
|
+
#
|
679
|
+
# resp.recommendation_feedback_summaries #=> Array
|
680
|
+
# resp.recommendation_feedback_summaries[0].recommendation_id #=> String
|
681
|
+
# resp.recommendation_feedback_summaries[0].reactions #=> Array
|
682
|
+
# resp.recommendation_feedback_summaries[0].reactions[0] #=> String, one of "ThumbsUp", "ThumbsDown"
|
683
|
+
# resp.recommendation_feedback_summaries[0].user_id #=> String
|
684
|
+
# resp.next_token #=> String
|
685
|
+
#
|
686
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedback AWS API Documentation
|
687
|
+
#
|
688
|
+
# @overload list_recommendation_feedback(params = {})
|
689
|
+
# @param [Hash] params ({})
|
690
|
+
def list_recommendation_feedback(params = {}, options = {})
|
691
|
+
req = build_request(:list_recommendation_feedback, params)
|
692
|
+
req.send_request(options)
|
693
|
+
end
|
694
|
+
|
695
|
+
# Returns the list of all recommendations for a completed code review.
|
696
|
+
#
|
697
|
+
# @option params [String] :next_token
|
698
|
+
# Pagination token.
|
699
|
+
#
|
700
|
+
# @option params [Integer] :max_results
|
701
|
+
# The maximum number of results that are returned per call. The default
|
702
|
+
# is 100.
|
703
|
+
#
|
704
|
+
# @option params [required, String] :code_review_arn
|
705
|
+
# The Amazon Resource Name (ARN) of the code review to describe.
|
706
|
+
#
|
707
|
+
# @return [Types::ListRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
708
|
+
#
|
709
|
+
# * {Types::ListRecommendationsResponse#recommendation_summaries #recommendation_summaries} => Array<Types::RecommendationSummary>
|
710
|
+
# * {Types::ListRecommendationsResponse#next_token #next_token} => String
|
711
|
+
#
|
712
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
713
|
+
#
|
714
|
+
# @example Request syntax with placeholder values
|
715
|
+
#
|
716
|
+
# resp = client.list_recommendations({
|
717
|
+
# next_token: "NextToken",
|
718
|
+
# max_results: 1,
|
719
|
+
# code_review_arn: "Arn", # required
|
720
|
+
# })
|
721
|
+
#
|
722
|
+
# @example Response structure
|
723
|
+
#
|
724
|
+
# resp.recommendation_summaries #=> Array
|
725
|
+
# resp.recommendation_summaries[0].file_path #=> String
|
726
|
+
# resp.recommendation_summaries[0].recommendation_id #=> String
|
727
|
+
# resp.recommendation_summaries[0].start_line #=> Integer
|
728
|
+
# resp.recommendation_summaries[0].end_line #=> Integer
|
729
|
+
# resp.recommendation_summaries[0].description #=> String
|
730
|
+
# resp.next_token #=> String
|
731
|
+
#
|
732
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendations AWS API Documentation
|
733
|
+
#
|
734
|
+
# @overload list_recommendations(params = {})
|
735
|
+
# @param [Hash] params ({})
|
736
|
+
def list_recommendations(params = {}, options = {})
|
737
|
+
req = build_request(:list_recommendations, params)
|
738
|
+
req.send_request(options)
|
739
|
+
end
|
740
|
+
|
460
741
|
# Lists repository associations. You can optionally filter on one or
|
461
742
|
# more of the following recommendation properties: provider types,
|
462
743
|
# states, names, and owners.
|
@@ -468,22 +749,24 @@ module Aws::CodeGuruReviewer
|
|
468
749
|
# List of states to use as a filter.
|
469
750
|
#
|
470
751
|
# @option params [Array<String>] :names
|
471
|
-
# List of names to use as a filter.
|
752
|
+
# List of repository names to use as a filter.
|
472
753
|
#
|
473
754
|
# @option params [Array<String>] :owners
|
474
|
-
# List of owners to use as a filter. For
|
475
|
-
#
|
755
|
+
# List of owners to use as a filter. For GitHub, this is name of the
|
756
|
+
# GitHub account that was used to associate the repository. For AWS
|
757
|
+
# CodeCommit, it is the name of the CodeCommit account that was used to
|
758
|
+
# associate the repository.
|
476
759
|
#
|
477
760
|
# @option params [Integer] :max_results
|
478
761
|
# The maximum number of repository association results returned by
|
479
762
|
# `ListRepositoryAssociations` in paginated output. When this parameter
|
480
763
|
# is used, `ListRepositoryAssociations` only returns `maxResults`
|
481
|
-
# results in a single page
|
482
|
-
#
|
764
|
+
# results in a single page with a `nextToken` response element. The
|
765
|
+
# remaining results of the initial request can be seen by sending
|
483
766
|
# another `ListRepositoryAssociations` request with the returned
|
484
|
-
# `nextToken` value. This value can be between 1 and
|
485
|
-
# parameter is not used,
|
486
|
-
#
|
767
|
+
# `nextToken` value. This value can be between 1 and 25. If this
|
768
|
+
# parameter is not used, `ListRepositoryAssociations` returns up to 25
|
769
|
+
# results and a `nextToken` value if applicable.
|
487
770
|
#
|
488
771
|
# @option params [String] :next_token
|
489
772
|
# The `nextToken` value returned from a previous paginated
|
@@ -492,9 +775,8 @@ module Aws::CodeGuruReviewer
|
|
492
775
|
# from the end of the previous results that returned the `nextToken`
|
493
776
|
# value.
|
494
777
|
#
|
495
|
-
# <note markdown="1">
|
496
|
-
#
|
497
|
-
# purposes.
|
778
|
+
# <note markdown="1"> Treat this token as an opaque identifier that is only used to retrieve
|
779
|
+
# the next items in a list and not for other programmatic purposes.
|
498
780
|
#
|
499
781
|
# </note>
|
500
782
|
#
|
@@ -508,7 +790,7 @@ module Aws::CodeGuruReviewer
|
|
508
790
|
# @example Request syntax with placeholder values
|
509
791
|
#
|
510
792
|
# resp = client.list_repository_associations({
|
511
|
-
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub
|
793
|
+
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
|
512
794
|
# states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
|
513
795
|
# names: ["Name"],
|
514
796
|
# owners: ["Owner"],
|
@@ -520,11 +802,12 @@ module Aws::CodeGuruReviewer
|
|
520
802
|
#
|
521
803
|
# resp.repository_association_summaries #=> Array
|
522
804
|
# resp.repository_association_summaries[0].association_arn #=> String
|
805
|
+
# resp.repository_association_summaries[0].connection_arn #=> String
|
523
806
|
# resp.repository_association_summaries[0].last_updated_time_stamp #=> Time
|
524
807
|
# resp.repository_association_summaries[0].association_id #=> String
|
525
808
|
# resp.repository_association_summaries[0].name #=> String
|
526
809
|
# resp.repository_association_summaries[0].owner #=> String
|
527
|
-
# resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub"
|
810
|
+
# resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
528
811
|
# resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
|
529
812
|
# resp.next_token #=> String
|
530
813
|
#
|
@@ -537,6 +820,40 @@ module Aws::CodeGuruReviewer
|
|
537
820
|
req.send_request(options)
|
538
821
|
end
|
539
822
|
|
823
|
+
# Stores customer feedback for a CodeGuru-Reviewer recommendation. When
|
824
|
+
# this API is called again with different reactions the previous
|
825
|
+
# feedback is overwritten.
|
826
|
+
#
|
827
|
+
# @option params [required, String] :code_review_arn
|
828
|
+
# The Amazon Resource Name (ARN) that identifies the code review.
|
829
|
+
#
|
830
|
+
# @option params [required, String] :recommendation_id
|
831
|
+
# The recommendation ID that can be used to track the provided
|
832
|
+
# recommendations and then to collect the feedback.
|
833
|
+
#
|
834
|
+
# @option params [required, Array<String>] :reactions
|
835
|
+
# List for storing reactions. Reactions are utf-8 text code for emojis.
|
836
|
+
# If you send an empty list it clears all your feedback.
|
837
|
+
#
|
838
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
839
|
+
#
|
840
|
+
# @example Request syntax with placeholder values
|
841
|
+
#
|
842
|
+
# resp = client.put_recommendation_feedback({
|
843
|
+
# code_review_arn: "Arn", # required
|
844
|
+
# recommendation_id: "RecommendationId", # required
|
845
|
+
# reactions: ["ThumbsUp"], # required, accepts ThumbsUp, ThumbsDown
|
846
|
+
# })
|
847
|
+
#
|
848
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/PutRecommendationFeedback AWS API Documentation
|
849
|
+
#
|
850
|
+
# @overload put_recommendation_feedback(params = {})
|
851
|
+
# @param [Hash] params ({})
|
852
|
+
def put_recommendation_feedback(params = {}, options = {})
|
853
|
+
req = build_request(:put_recommendation_feedback, params)
|
854
|
+
req.send_request(options)
|
855
|
+
end
|
856
|
+
|
540
857
|
# @!endgroup
|
541
858
|
|
542
859
|
# @param params ({})
|
@@ -550,7 +867,7 @@ module Aws::CodeGuruReviewer
|
|
550
867
|
params: params,
|
551
868
|
config: config)
|
552
869
|
context[:gem_name] = 'aws-sdk-codegurureviewer'
|
553
|
-
context[:gem_version] = '1.
|
870
|
+
context[:gem_version] = '1.7.1'
|
554
871
|
Seahorse::Client::Request.new(handlers, context)
|
555
872
|
end
|
556
873
|
|