aws-sdk-codegurureviewer 1.1.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/aws-sdk-codegurureviewer.rb +1 -1
- data/lib/aws-sdk-codegurureviewer/client.rb +374 -54
- data/lib/aws-sdk-codegurureviewer/client_api.rb +283 -0
- data/lib/aws-sdk-codegurureviewer/errors.rb +16 -0
- data/lib/aws-sdk-codegurureviewer/resource.rb +1 -7
- data/lib/aws-sdk-codegurureviewer/types.rb +713 -30
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2c3492806f0e3419708645d5dd13eabaebf46df016ee55ea79b8d4c0f97b7261
|
4
|
+
data.tar.gz: 1d3b053ea16e00b871aa3bf54db56a19eed80bbb12c7e6ab87456e4cc3e1afd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6047c8a01d453f228bb8bd26a6e4e41009fbbb94469020ddde287f097e4de2db3ae1ba69241560891bb5576a0bbf3d1e434daeb8ad2abead85200b9ecdcda4e9
|
7
|
+
data.tar.gz: 0c40e38a1b0c3ae695ddf56c3f7e75482b88fc9b6744b425e83eb633cf24f9e45477a48037987b47a6ff6b7269853932850674da478b7f6e830b46db3d5fd26f
|
@@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:codegurureviewer)
|
|
32
32
|
module Aws::CodeGuruReviewer
|
33
33
|
# An API client for CodeGuruReviewer. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
34
|
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
35
|
+
# client = Aws::CodeGuruReviewer::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
40
|
#
|
41
41
|
# For details on configuring region and credentials see
|
42
42
|
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
@@ -105,7 +105,7 @@ module Aws::CodeGuruReviewer
|
|
105
105
|
# @option options [required, String] :region
|
106
106
|
# The AWS region to connect to. The configured `:region` is
|
107
107
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
108
|
+
# a default `:region` is searched for in the following locations:
|
109
109
|
#
|
110
110
|
# * `Aws.config[:region]`
|
111
111
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +161,7 @@ module Aws::CodeGuruReviewer
|
|
161
161
|
# @option options [String] :endpoint
|
162
162
|
# The client endpoint is normally constructed from the `:region`
|
163
163
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
164
|
+
# to test endpoints. This should be a valid HTTP(S) URI.
|
165
165
|
#
|
166
166
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
167
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +176,7 @@ module Aws::CodeGuruReviewer
|
|
176
176
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
177
|
#
|
178
178
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
179
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
180
|
#
|
181
181
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
182
|
# The log formatter.
|
@@ -229,15 +229,19 @@ module Aws::CodeGuruReviewer
|
|
229
229
|
#
|
230
230
|
# @option options [String] :retry_mode ("legacy")
|
231
231
|
# Specifies which retry algorithm to use. Values are:
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
232
|
+
#
|
233
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
234
|
+
# no retry mode is provided.
|
235
|
+
#
|
236
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
237
|
+
# This includes support for retry quotas, which limit the number of
|
238
|
+
# unsuccessful retries a client can make.
|
239
|
+
#
|
240
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
241
|
+
# functionality of `standard` mode along with automatic client side
|
242
|
+
# throttling. This is a provisional mode that may change behavior
|
243
|
+
# in the future.
|
244
|
+
#
|
241
245
|
#
|
242
246
|
# @option options [String] :secret_access_key
|
243
247
|
#
|
@@ -265,8 +269,7 @@ module Aws::CodeGuruReviewer
|
|
265
269
|
#
|
266
270
|
# @option options [Integer] :http_read_timeout (60) The default
|
267
271
|
# number of seconds to wait for response data. This value can
|
268
|
-
# safely be set
|
269
|
-
# per-request on the session yielded by {#session_for}.
|
272
|
+
# safely be set per-request on the session.
|
270
273
|
#
|
271
274
|
# @option options [Float] :http_idle_timeout (5) The number of
|
272
275
|
# seconds a connection is allowed to sit idle before it is
|
@@ -278,7 +281,7 @@ module Aws::CodeGuruReviewer
|
|
278
281
|
# request body. This option has no effect unless the request has
|
279
282
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
280
283
|
# disables this behaviour. This value can safely be set per
|
281
|
-
# request on the session
|
284
|
+
# request on the session.
|
282
285
|
#
|
283
286
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
284
287
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -308,8 +311,8 @@ module Aws::CodeGuruReviewer
|
|
308
311
|
# Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer.
|
309
312
|
# When you associate an AWS CodeCommit repository with Amazon CodeGuru
|
310
313
|
# Reviewer, Amazon CodeGuru Reviewer will provide recommendations for
|
311
|
-
# each pull request. You can view
|
312
|
-
# repository.
|
314
|
+
# each pull request raised within the repository. You can view
|
315
|
+
# recommendations in the AWS CodeCommit repository.
|
313
316
|
#
|
314
317
|
# You can associate a GitHub repository using the Amazon CodeGuru
|
315
318
|
# Reviewer console.
|
@@ -321,22 +324,21 @@ module Aws::CodeGuruReviewer
|
|
321
324
|
# Unique, case-sensitive identifier that you provide to ensure the
|
322
325
|
# idempotency of the request.
|
323
326
|
#
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
+
# To add a new repository association, this parameter specifies a unique
|
328
|
+
# identifier for the new repository association that helps ensure
|
329
|
+
# idempotency.
|
327
330
|
#
|
328
|
-
# If you use the AWS CLI or one of the AWS
|
329
|
-
#
|
330
|
-
#
|
331
|
-
#
|
332
|
-
#
|
333
|
-
#
|
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.
|
334
337
|
#
|
335
|
-
# You typically
|
336
|
-
#
|
337
|
-
#
|
338
|
-
#
|
339
|
-
# 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.
|
340
342
|
#
|
341
343
|
# Amazon CodeGuru Reviewer uses this value to prevent the accidental
|
342
344
|
# creation of duplicate repository associations if there are failures
|
@@ -356,6 +358,11 @@ module Aws::CodeGuruReviewer
|
|
356
358
|
# code_commit: {
|
357
359
|
# name: "Name", # required
|
358
360
|
# },
|
361
|
+
# bitbucket: {
|
362
|
+
# name: "Name", # required
|
363
|
+
# connection_arn: "ConnectionArn", # required
|
364
|
+
# owner: "Owner", # required
|
365
|
+
# },
|
359
366
|
# },
|
360
367
|
# client_request_token: "ClientRequestToken",
|
361
368
|
# })
|
@@ -364,9 +371,10 @@ module Aws::CodeGuruReviewer
|
|
364
371
|
#
|
365
372
|
# resp.repository_association.association_id #=> String
|
366
373
|
# resp.repository_association.association_arn #=> String
|
374
|
+
# resp.repository_association.connection_arn #=> String
|
367
375
|
# resp.repository_association.name #=> String
|
368
376
|
# resp.repository_association.owner #=> String
|
369
|
-
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub"
|
377
|
+
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
370
378
|
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
|
371
379
|
# resp.repository_association.state_reason #=> String
|
372
380
|
# resp.repository_association.last_updated_time_stamp #=> Time
|
@@ -381,10 +389,99 @@ module Aws::CodeGuruReviewer
|
|
381
389
|
req.send_request(options)
|
382
390
|
end
|
383
391
|
|
392
|
+
# Returns the metadaata associated with the code review along with its
|
393
|
+
# status.
|
394
|
+
#
|
395
|
+
# @option params [required, String] :code_review_arn
|
396
|
+
# The Amazon Resource Name (ARN) of the code review to describe.
|
397
|
+
#
|
398
|
+
# @return [Types::DescribeCodeReviewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
399
|
+
#
|
400
|
+
# * {Types::DescribeCodeReviewResponse#code_review #code_review} => Types::CodeReview
|
401
|
+
#
|
402
|
+
# @example Request syntax with placeholder values
|
403
|
+
#
|
404
|
+
# resp = client.describe_code_review({
|
405
|
+
# code_review_arn: "Arn", # required
|
406
|
+
# })
|
407
|
+
#
|
408
|
+
# @example Response structure
|
409
|
+
#
|
410
|
+
# resp.code_review.name #=> String
|
411
|
+
# resp.code_review.code_review_arn #=> String
|
412
|
+
# resp.code_review.repository_name #=> String
|
413
|
+
# resp.code_review.owner #=> String
|
414
|
+
# resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
415
|
+
# resp.code_review.state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
|
416
|
+
# resp.code_review.state_reason #=> String
|
417
|
+
# resp.code_review.created_time_stamp #=> Time
|
418
|
+
# resp.code_review.last_updated_time_stamp #=> Time
|
419
|
+
# resp.code_review.type #=> String, one of "PullRequest"
|
420
|
+
# resp.code_review.pull_request_id #=> String
|
421
|
+
# resp.code_review.source_code_type.commit_diff.source_commit #=> String
|
422
|
+
# resp.code_review.source_code_type.commit_diff.destination_commit #=> String
|
423
|
+
# resp.code_review.metrics.metered_lines_of_code_count #=> Integer
|
424
|
+
# resp.code_review.metrics.findings_count #=> Integer
|
425
|
+
#
|
426
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReview AWS API Documentation
|
427
|
+
#
|
428
|
+
# @overload describe_code_review(params = {})
|
429
|
+
# @param [Hash] params ({})
|
430
|
+
def describe_code_review(params = {}, options = {})
|
431
|
+
req = build_request(:describe_code_review, params)
|
432
|
+
req.send_request(options)
|
433
|
+
end
|
434
|
+
|
435
|
+
# Describes the customer feedback for a CodeGuru Reviewer
|
436
|
+
# recommendation.
|
437
|
+
#
|
438
|
+
# @option params [required, String] :code_review_arn
|
439
|
+
# The Amazon Resource Name (ARN) that identifies the code review.
|
440
|
+
#
|
441
|
+
# @option params [required, String] :recommendation_id
|
442
|
+
# The recommendation ID that can be used to track the provided
|
443
|
+
# recommendations and then to collect the feedback.
|
444
|
+
#
|
445
|
+
# @option params [String] :user_id
|
446
|
+
# Optional parameter to describe the feedback for a given user. If this
|
447
|
+
# is not supplied, it defaults to the user making the request.
|
448
|
+
#
|
449
|
+
# @return [Types::DescribeRecommendationFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
450
|
+
#
|
451
|
+
# * {Types::DescribeRecommendationFeedbackResponse#recommendation_feedback #recommendation_feedback} => Types::RecommendationFeedback
|
452
|
+
#
|
453
|
+
# @example Request syntax with placeholder values
|
454
|
+
#
|
455
|
+
# resp = client.describe_recommendation_feedback({
|
456
|
+
# code_review_arn: "Arn", # required
|
457
|
+
# recommendation_id: "RecommendationId", # required
|
458
|
+
# user_id: "UserId",
|
459
|
+
# })
|
460
|
+
#
|
461
|
+
# @example Response structure
|
462
|
+
#
|
463
|
+
# resp.recommendation_feedback.code_review_arn #=> String
|
464
|
+
# resp.recommendation_feedback.recommendation_id #=> String
|
465
|
+
# resp.recommendation_feedback.reactions #=> Array
|
466
|
+
# resp.recommendation_feedback.reactions[0] #=> String, one of "ThumbsUp", "ThumbsDown"
|
467
|
+
# resp.recommendation_feedback.user_id #=> String
|
468
|
+
# resp.recommendation_feedback.created_time_stamp #=> Time
|
469
|
+
# resp.recommendation_feedback.last_updated_time_stamp #=> Time
|
470
|
+
#
|
471
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedback AWS API Documentation
|
472
|
+
#
|
473
|
+
# @overload describe_recommendation_feedback(params = {})
|
474
|
+
# @param [Hash] params ({})
|
475
|
+
def describe_recommendation_feedback(params = {}, options = {})
|
476
|
+
req = build_request(:describe_recommendation_feedback, params)
|
477
|
+
req.send_request(options)
|
478
|
+
end
|
479
|
+
|
384
480
|
# Describes a repository association.
|
385
481
|
#
|
386
482
|
# @option params [required, String] :association_arn
|
387
|
-
# The Amazon Resource Name (ARN) identifying the association.
|
483
|
+
# The Amazon Resource Name (ARN) identifying the association. You can
|
484
|
+
# retrieve this ARN by calling `ListRepositories`.
|
388
485
|
#
|
389
486
|
# @return [Types::DescribeRepositoryAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
390
487
|
#
|
@@ -400,9 +497,10 @@ module Aws::CodeGuruReviewer
|
|
400
497
|
#
|
401
498
|
# resp.repository_association.association_id #=> String
|
402
499
|
# resp.repository_association.association_arn #=> String
|
500
|
+
# resp.repository_association.connection_arn #=> String
|
403
501
|
# resp.repository_association.name #=> String
|
404
502
|
# resp.repository_association.owner #=> String
|
405
|
-
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub"
|
503
|
+
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
406
504
|
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
|
407
505
|
# resp.repository_association.state_reason #=> String
|
408
506
|
# resp.repository_association.last_updated_time_stamp #=> Time
|
@@ -437,9 +535,10 @@ module Aws::CodeGuruReviewer
|
|
437
535
|
#
|
438
536
|
# resp.repository_association.association_id #=> String
|
439
537
|
# resp.repository_association.association_arn #=> String
|
538
|
+
# resp.repository_association.connection_arn #=> String
|
440
539
|
# resp.repository_association.name #=> String
|
441
540
|
# resp.repository_association.owner #=> String
|
442
|
-
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub"
|
541
|
+
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
443
542
|
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
|
444
543
|
# resp.repository_association.state_reason #=> String
|
445
544
|
# resp.repository_association.last_updated_time_stamp #=> Time
|
@@ -454,6 +553,189 @@ module Aws::CodeGuruReviewer
|
|
454
553
|
req.send_request(options)
|
455
554
|
end
|
456
555
|
|
556
|
+
# Lists all the code reviews that the customer has created in the past
|
557
|
+
# 90 days.
|
558
|
+
#
|
559
|
+
# @option params [Array<String>] :provider_types
|
560
|
+
# List of provider types for filtering that needs to be applied before
|
561
|
+
# displaying the result. For example, "providerTypes=\[GitHub\]" will
|
562
|
+
# list code reviews from GitHub.
|
563
|
+
#
|
564
|
+
# @option params [Array<String>] :states
|
565
|
+
# List of states for filtering that needs to be applied before
|
566
|
+
# displaying the result. For example, "states=\[Pending\]" will list
|
567
|
+
# code reviews in the Pending state.
|
568
|
+
#
|
569
|
+
# @option params [Array<String>] :repository_names
|
570
|
+
# List of repository names for filtering that needs to be applied before
|
571
|
+
# displaying the result.
|
572
|
+
#
|
573
|
+
# @option params [required, String] :type
|
574
|
+
# The type of code reviews to list in the response.
|
575
|
+
#
|
576
|
+
# @option params [Integer] :max_results
|
577
|
+
# The maximum number of results that are returned per call. The default
|
578
|
+
# is 100.
|
579
|
+
#
|
580
|
+
# @option params [String] :next_token
|
581
|
+
# If nextToken is returned, there are more results available. The value
|
582
|
+
# of nextToken is a unique pagination token for each page. Make the call
|
583
|
+
# again using the returned token to retrieve the next page. Keep all
|
584
|
+
# other arguments unchanged.
|
585
|
+
#
|
586
|
+
# @return [Types::ListCodeReviewsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
587
|
+
#
|
588
|
+
# * {Types::ListCodeReviewsResponse#code_review_summaries #code_review_summaries} => Array<Types::CodeReviewSummary>
|
589
|
+
# * {Types::ListCodeReviewsResponse#next_token #next_token} => String
|
590
|
+
#
|
591
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
592
|
+
#
|
593
|
+
# @example Request syntax with placeholder values
|
594
|
+
#
|
595
|
+
# resp = client.list_code_reviews({
|
596
|
+
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
|
597
|
+
# states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
|
598
|
+
# repository_names: ["Name"],
|
599
|
+
# type: "PullRequest", # required, accepts PullRequest
|
600
|
+
# max_results: 1,
|
601
|
+
# next_token: "NextToken",
|
602
|
+
# })
|
603
|
+
#
|
604
|
+
# @example Response structure
|
605
|
+
#
|
606
|
+
# resp.code_review_summaries #=> Array
|
607
|
+
# resp.code_review_summaries[0].name #=> String
|
608
|
+
# resp.code_review_summaries[0].code_review_arn #=> String
|
609
|
+
# resp.code_review_summaries[0].repository_name #=> String
|
610
|
+
# resp.code_review_summaries[0].owner #=> String
|
611
|
+
# resp.code_review_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
612
|
+
# resp.code_review_summaries[0].state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
|
613
|
+
# resp.code_review_summaries[0].created_time_stamp #=> Time
|
614
|
+
# resp.code_review_summaries[0].last_updated_time_stamp #=> Time
|
615
|
+
# resp.code_review_summaries[0].type #=> String, one of "PullRequest"
|
616
|
+
# resp.code_review_summaries[0].pull_request_id #=> String
|
617
|
+
# resp.code_review_summaries[0].metrics_summary.metered_lines_of_code_count #=> Integer
|
618
|
+
# resp.code_review_summaries[0].metrics_summary.findings_count #=> Integer
|
619
|
+
# resp.next_token #=> String
|
620
|
+
#
|
621
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviews AWS API Documentation
|
622
|
+
#
|
623
|
+
# @overload list_code_reviews(params = {})
|
624
|
+
# @param [Hash] params ({})
|
625
|
+
def list_code_reviews(params = {}, options = {})
|
626
|
+
req = build_request(:list_code_reviews, params)
|
627
|
+
req.send_request(options)
|
628
|
+
end
|
629
|
+
|
630
|
+
# Lists the customer feedback for a CodeGuru Reviewer recommendation for
|
631
|
+
# all users. This API will be used from the console to extract the
|
632
|
+
# previously given feedback by the user to pre-populate the feedback
|
633
|
+
# emojis for all recommendations.
|
634
|
+
#
|
635
|
+
# @option params [String] :next_token
|
636
|
+
# If nextToken is returned, there are more results available. The value
|
637
|
+
# of nextToken is a unique pagination token for each page. Make the call
|
638
|
+
# again using the returned token to retrieve the next page. Keep all
|
639
|
+
# other arguments unchanged.
|
640
|
+
#
|
641
|
+
# @option params [Integer] :max_results
|
642
|
+
# The maximum number of results that are returned per call. The default
|
643
|
+
# is 100.
|
644
|
+
#
|
645
|
+
# @option params [required, String] :code_review_arn
|
646
|
+
# The Amazon Resource Name (ARN) that identifies the code review.
|
647
|
+
#
|
648
|
+
# @option params [Array<String>] :user_ids
|
649
|
+
# Filter on userIds that need to be applied before displaying the
|
650
|
+
# result. This can be used to query all the recommendation feedback for
|
651
|
+
# a code review from a given user.
|
652
|
+
#
|
653
|
+
# @option params [Array<String>] :recommendation_ids
|
654
|
+
# Filter on recommendationIds that need to be applied before displaying
|
655
|
+
# the result. This can be used to query all the recommendation feedback
|
656
|
+
# for a given recommendation.
|
657
|
+
#
|
658
|
+
# @return [Types::ListRecommendationFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
659
|
+
#
|
660
|
+
# * {Types::ListRecommendationFeedbackResponse#recommendation_feedback_summaries #recommendation_feedback_summaries} => Array<Types::RecommendationFeedbackSummary>
|
661
|
+
# * {Types::ListRecommendationFeedbackResponse#next_token #next_token} => String
|
662
|
+
#
|
663
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
664
|
+
#
|
665
|
+
# @example Request syntax with placeholder values
|
666
|
+
#
|
667
|
+
# resp = client.list_recommendation_feedback({
|
668
|
+
# next_token: "NextToken",
|
669
|
+
# max_results: 1,
|
670
|
+
# code_review_arn: "Arn", # required
|
671
|
+
# user_ids: ["UserId"],
|
672
|
+
# recommendation_ids: ["RecommendationId"],
|
673
|
+
# })
|
674
|
+
#
|
675
|
+
# @example Response structure
|
676
|
+
#
|
677
|
+
# resp.recommendation_feedback_summaries #=> Array
|
678
|
+
# resp.recommendation_feedback_summaries[0].recommendation_id #=> String
|
679
|
+
# resp.recommendation_feedback_summaries[0].reactions #=> Array
|
680
|
+
# resp.recommendation_feedback_summaries[0].reactions[0] #=> String, one of "ThumbsUp", "ThumbsDown"
|
681
|
+
# resp.recommendation_feedback_summaries[0].user_id #=> String
|
682
|
+
# resp.next_token #=> String
|
683
|
+
#
|
684
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedback AWS API Documentation
|
685
|
+
#
|
686
|
+
# @overload list_recommendation_feedback(params = {})
|
687
|
+
# @param [Hash] params ({})
|
688
|
+
def list_recommendation_feedback(params = {}, options = {})
|
689
|
+
req = build_request(:list_recommendation_feedback, params)
|
690
|
+
req.send_request(options)
|
691
|
+
end
|
692
|
+
|
693
|
+
# Returns the list of all recommendations for a completed code review.
|
694
|
+
#
|
695
|
+
# @option params [String] :next_token
|
696
|
+
# Pagination token.
|
697
|
+
#
|
698
|
+
# @option params [Integer] :max_results
|
699
|
+
# The maximum number of results that are returned per call. The default
|
700
|
+
# is 100.
|
701
|
+
#
|
702
|
+
# @option params [required, String] :code_review_arn
|
703
|
+
# The Amazon Resource Name (ARN) of the code review to describe.
|
704
|
+
#
|
705
|
+
# @return [Types::ListRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
706
|
+
#
|
707
|
+
# * {Types::ListRecommendationsResponse#recommendation_summaries #recommendation_summaries} => Array<Types::RecommendationSummary>
|
708
|
+
# * {Types::ListRecommendationsResponse#next_token #next_token} => String
|
709
|
+
#
|
710
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
711
|
+
#
|
712
|
+
# @example Request syntax with placeholder values
|
713
|
+
#
|
714
|
+
# resp = client.list_recommendations({
|
715
|
+
# next_token: "NextToken",
|
716
|
+
# max_results: 1,
|
717
|
+
# code_review_arn: "Arn", # required
|
718
|
+
# })
|
719
|
+
#
|
720
|
+
# @example Response structure
|
721
|
+
#
|
722
|
+
# resp.recommendation_summaries #=> Array
|
723
|
+
# resp.recommendation_summaries[0].file_path #=> String
|
724
|
+
# resp.recommendation_summaries[0].recommendation_id #=> String
|
725
|
+
# resp.recommendation_summaries[0].start_line #=> Integer
|
726
|
+
# resp.recommendation_summaries[0].end_line #=> Integer
|
727
|
+
# resp.recommendation_summaries[0].description #=> String
|
728
|
+
# resp.next_token #=> String
|
729
|
+
#
|
730
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendations AWS API Documentation
|
731
|
+
#
|
732
|
+
# @overload list_recommendations(params = {})
|
733
|
+
# @param [Hash] params ({})
|
734
|
+
def list_recommendations(params = {}, options = {})
|
735
|
+
req = build_request(:list_recommendations, params)
|
736
|
+
req.send_request(options)
|
737
|
+
end
|
738
|
+
|
457
739
|
# Lists repository associations. You can optionally filter on one or
|
458
740
|
# more of the following recommendation properties: provider types,
|
459
741
|
# states, names, and owners.
|
@@ -465,22 +747,24 @@ module Aws::CodeGuruReviewer
|
|
465
747
|
# List of states to use as a filter.
|
466
748
|
#
|
467
749
|
# @option params [Array<String>] :names
|
468
|
-
# List of names to use as a filter.
|
750
|
+
# List of repository names to use as a filter.
|
469
751
|
#
|
470
752
|
# @option params [Array<String>] :owners
|
471
|
-
# List of owners to use as a filter. For
|
472
|
-
#
|
753
|
+
# List of owners to use as a filter. For GitHub, this is name of the
|
754
|
+
# GitHub account that was used to associate the repository. For AWS
|
755
|
+
# CodeCommit, it is the name of the CodeCommit account that was used to
|
756
|
+
# associate the repository.
|
473
757
|
#
|
474
758
|
# @option params [Integer] :max_results
|
475
759
|
# The maximum number of repository association results returned by
|
476
760
|
# `ListRepositoryAssociations` in paginated output. When this parameter
|
477
761
|
# is used, `ListRepositoryAssociations` only returns `maxResults`
|
478
|
-
# results in a single page
|
479
|
-
#
|
762
|
+
# results in a single page with a `nextToken` response element. The
|
763
|
+
# remaining results of the initial request can be seen by sending
|
480
764
|
# another `ListRepositoryAssociations` request with the returned
|
481
|
-
# `nextToken` value. This value can be between 1 and
|
482
|
-
# parameter is not used,
|
483
|
-
#
|
765
|
+
# `nextToken` value. This value can be between 1 and 25. If this
|
766
|
+
# parameter is not used, `ListRepositoryAssociations` returns up to 25
|
767
|
+
# results and a `nextToken` value if applicable.
|
484
768
|
#
|
485
769
|
# @option params [String] :next_token
|
486
770
|
# The `nextToken` value returned from a previous paginated
|
@@ -489,9 +773,8 @@ module Aws::CodeGuruReviewer
|
|
489
773
|
# from the end of the previous results that returned the `nextToken`
|
490
774
|
# value.
|
491
775
|
#
|
492
|
-
# <note markdown="1">
|
493
|
-
#
|
494
|
-
# purposes.
|
776
|
+
# <note markdown="1"> Treat this token as an opaque identifier that is only used to retrieve
|
777
|
+
# the next items in a list and not for other programmatic purposes.
|
495
778
|
#
|
496
779
|
# </note>
|
497
780
|
#
|
@@ -500,10 +783,12 @@ module Aws::CodeGuruReviewer
|
|
500
783
|
# * {Types::ListRepositoryAssociationsResponse#repository_association_summaries #repository_association_summaries} => Array<Types::RepositoryAssociationSummary>
|
501
784
|
# * {Types::ListRepositoryAssociationsResponse#next_token #next_token} => String
|
502
785
|
#
|
786
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
787
|
+
#
|
503
788
|
# @example Request syntax with placeholder values
|
504
789
|
#
|
505
790
|
# resp = client.list_repository_associations({
|
506
|
-
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub
|
791
|
+
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
|
507
792
|
# states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
|
508
793
|
# names: ["Name"],
|
509
794
|
# owners: ["Owner"],
|
@@ -515,11 +800,12 @@ module Aws::CodeGuruReviewer
|
|
515
800
|
#
|
516
801
|
# resp.repository_association_summaries #=> Array
|
517
802
|
# resp.repository_association_summaries[0].association_arn #=> String
|
803
|
+
# resp.repository_association_summaries[0].connection_arn #=> String
|
518
804
|
# resp.repository_association_summaries[0].last_updated_time_stamp #=> Time
|
519
805
|
# resp.repository_association_summaries[0].association_id #=> String
|
520
806
|
# resp.repository_association_summaries[0].name #=> String
|
521
807
|
# resp.repository_association_summaries[0].owner #=> String
|
522
|
-
# resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub"
|
808
|
+
# resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
523
809
|
# resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
|
524
810
|
# resp.next_token #=> String
|
525
811
|
#
|
@@ -532,6 +818,40 @@ module Aws::CodeGuruReviewer
|
|
532
818
|
req.send_request(options)
|
533
819
|
end
|
534
820
|
|
821
|
+
# Stores customer feedback for a CodeGuru-Reviewer recommendation. When
|
822
|
+
# this API is called again with different reactions the previous
|
823
|
+
# feedback is overwritten.
|
824
|
+
#
|
825
|
+
# @option params [required, String] :code_review_arn
|
826
|
+
# The Amazon Resource Name (ARN) that identifies the code review.
|
827
|
+
#
|
828
|
+
# @option params [required, String] :recommendation_id
|
829
|
+
# The recommendation ID that can be used to track the provided
|
830
|
+
# recommendations and then to collect the feedback.
|
831
|
+
#
|
832
|
+
# @option params [required, Array<String>] :reactions
|
833
|
+
# List for storing reactions. Reactions are utf-8 text code for emojis.
|
834
|
+
# If you send an empty list it clears all your feedback.
|
835
|
+
#
|
836
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
837
|
+
#
|
838
|
+
# @example Request syntax with placeholder values
|
839
|
+
#
|
840
|
+
# resp = client.put_recommendation_feedback({
|
841
|
+
# code_review_arn: "Arn", # required
|
842
|
+
# recommendation_id: "RecommendationId", # required
|
843
|
+
# reactions: ["ThumbsUp"], # required, accepts ThumbsUp, ThumbsDown
|
844
|
+
# })
|
845
|
+
#
|
846
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/PutRecommendationFeedback AWS API Documentation
|
847
|
+
#
|
848
|
+
# @overload put_recommendation_feedback(params = {})
|
849
|
+
# @param [Hash] params ({})
|
850
|
+
def put_recommendation_feedback(params = {}, options = {})
|
851
|
+
req = build_request(:put_recommendation_feedback, params)
|
852
|
+
req.send_request(options)
|
853
|
+
end
|
854
|
+
|
535
855
|
# @!endgroup
|
536
856
|
|
537
857
|
# @param params ({})
|
@@ -545,7 +865,7 @@ module Aws::CodeGuruReviewer
|
|
545
865
|
params: params,
|
546
866
|
config: config)
|
547
867
|
context[:gem_name] = 'aws-sdk-codegurureviewer'
|
548
|
-
context[:gem_version] = '1.
|
868
|
+
context[:gem_version] = '1.6.0'
|
549
869
|
Seahorse::Client::Request.new(handlers, context)
|
550
870
|
end
|
551
871
|
|