aws-sdk-codegurureviewer 1.5.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-codegurureviewer.rb +4 -2
- data/lib/aws-sdk-codegurureviewer/client.rb +205 -64
- data/lib/aws-sdk-codegurureviewer/client_api.rb +3 -0
- data/lib/aws-sdk-codegurureviewer/errors.rb +2 -0
- data/lib/aws-sdk-codegurureviewer/resource.rb +2 -0
- data/lib/aws-sdk-codegurureviewer/types.rb +376 -72
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bd769e7bc0b3132eb35b53e25f9cbb08ff99f6eaa044facc70be540692c35eb
|
4
|
+
data.tar.gz: d04d4b2ad7da307c135f7540fb56a4ad472f991940028788ed9e0271677d5b79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cee7db1232aef825999084f109e838510c2ee4a3d89a6afb6ad876c5d125ee34a76a7435afdcb55399ebecdc55aa94675c4123a984fcae3f42a188ab5875c337
|
7
|
+
data.tar.gz: 7e7af76b4a583102b073ec60c0b9e7efece0c962104a4b46d3c879df2e2782070c0a6bdd33dbbd696f364ac2780470c453a8b6cf70223ce6a7d4928d7b474aab
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -42,9 +44,9 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
|
|
42
44
|
#
|
43
45
|
# See {Errors} for more information.
|
44
46
|
#
|
45
|
-
#
|
47
|
+
# @!group service
|
46
48
|
module Aws::CodeGuruReviewer
|
47
49
|
|
48
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.10.0'
|
49
51
|
|
50
52
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
32
|
|
@@ -69,6 +72,7 @@ module Aws::CodeGuruReviewer
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
74
78
|
|
@@ -81,13 +85,28 @@ module Aws::CodeGuruReviewer
|
|
81
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
82
86
|
# credentials.
|
83
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
84
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
85
103
|
# from an EC2 IMDS on an EC2 instance.
|
86
104
|
#
|
87
|
-
# * `Aws::
|
88
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
89
107
|
#
|
90
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
91
110
|
#
|
92
111
|
# When `:credentials` are not configured directly, the following
|
93
112
|
# locations will be searched for credentials:
|
@@ -97,10 +116,10 @@ module Aws::CodeGuruReviewer
|
|
97
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
98
117
|
# * `~/.aws/credentials`
|
99
118
|
# * `~/.aws/config`
|
100
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
101
|
-
# very aggressive. Construct and pass an instance of
|
102
|
-
# `Aws::InstanceProfileCredentails`
|
103
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
104
123
|
#
|
105
124
|
# @option options [required, String] :region
|
106
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -161,7 +180,7 @@ module Aws::CodeGuruReviewer
|
|
161
180
|
# @option options [String] :endpoint
|
162
181
|
# The client endpoint is normally constructed from the `:region`
|
163
182
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
183
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
184
|
#
|
166
185
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
186
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +195,7 @@ module Aws::CodeGuruReviewer
|
|
176
195
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
196
|
#
|
178
197
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
198
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
199
|
#
|
181
200
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
201
|
# The log formatter.
|
@@ -308,14 +327,36 @@ module Aws::CodeGuruReviewer
|
|
308
327
|
|
309
328
|
# @!group API Operations
|
310
329
|
|
311
|
-
#
|
312
|
-
#
|
313
|
-
#
|
314
|
-
#
|
315
|
-
# recommendations
|
330
|
+
# Use to associate an AWS CodeCommit repository or a repostory managed
|
331
|
+
# by AWS CodeStar Connections with Amazon CodeGuru Reviewer. When you
|
332
|
+
# associate a repository, CodeGuru Reviewer reviews source code changes
|
333
|
+
# in the repository's pull requests and provides automatic
|
334
|
+
# recommendations. You can view recommendations using the CodeGuru
|
335
|
+
# Reviewer console. For more information, see [Recommendations in Amazon
|
336
|
+
# CodeGuru Reviewer][1] in the *Amazon CodeGuru Reviewer User Guide.*
|
316
337
|
#
|
317
|
-
#
|
318
|
-
# Reviewer
|
338
|
+
# If you associate a CodeCommit repository, it must be in the same AWS
|
339
|
+
# Region and AWS account where its CodeGuru Reviewer code reviews are
|
340
|
+
# configured.
|
341
|
+
#
|
342
|
+
# Bitbucket and GitHub Enterprise Server repositories are managed by AWS
|
343
|
+
# CodeStar Connections to connect to CodeGuru Reviewer. For more
|
344
|
+
# information, see [Connect to a repository source provider][2] in the
|
345
|
+
# *Amazon CodeGuru Reviewer User Guide.*
|
346
|
+
#
|
347
|
+
# <note markdown="1"> You cannot use the CodeGuru Reviewer SDK or the AWS CLI to associate a
|
348
|
+
# GitHub repository with Amazon CodeGuru Reviewer. To associate a GitHub
|
349
|
+
# repository, use the console. For more information, see [Getting
|
350
|
+
# started with CodeGuru Reviewer][3] in the *CodeGuru Reviewer User
|
351
|
+
# Guide.*
|
352
|
+
#
|
353
|
+
# </note>
|
354
|
+
#
|
355
|
+
#
|
356
|
+
#
|
357
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/recommendations.html
|
358
|
+
# [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/reviewer-ug/step-one.html#select-repository-source-provider
|
359
|
+
# [3]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-with-guru.html
|
319
360
|
#
|
320
361
|
# @option params [required, Types::Repository] :repository
|
321
362
|
# The repository to associate.
|
@@ -363,6 +404,11 @@ module Aws::CodeGuruReviewer
|
|
363
404
|
# connection_arn: "ConnectionArn", # required
|
364
405
|
# owner: "Owner", # required
|
365
406
|
# },
|
407
|
+
# git_hub_enterprise_server: {
|
408
|
+
# name: "Name", # required
|
409
|
+
# connection_arn: "ConnectionArn", # required
|
410
|
+
# owner: "Owner", # required
|
411
|
+
# },
|
366
412
|
# },
|
367
413
|
# client_request_token: "ClientRequestToken",
|
368
414
|
# })
|
@@ -374,7 +420,7 @@ module Aws::CodeGuruReviewer
|
|
374
420
|
# resp.repository_association.connection_arn #=> String
|
375
421
|
# resp.repository_association.name #=> String
|
376
422
|
# resp.repository_association.owner #=> String
|
377
|
-
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
423
|
+
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
378
424
|
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
|
379
425
|
# resp.repository_association.state_reason #=> String
|
380
426
|
# resp.repository_association.last_updated_time_stamp #=> Time
|
@@ -389,11 +435,15 @@ module Aws::CodeGuruReviewer
|
|
389
435
|
req.send_request(options)
|
390
436
|
end
|
391
437
|
|
392
|
-
# Returns the
|
438
|
+
# Returns the metadata associated with the code review along with its
|
393
439
|
# status.
|
394
440
|
#
|
395
441
|
# @option params [required, String] :code_review_arn
|
396
|
-
# The Amazon Resource Name (ARN) of the
|
442
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
443
|
+
#
|
444
|
+
#
|
445
|
+
#
|
446
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
397
447
|
#
|
398
448
|
# @return [Types::DescribeCodeReviewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
399
449
|
#
|
@@ -411,7 +461,7 @@ module Aws::CodeGuruReviewer
|
|
411
461
|
# resp.code_review.code_review_arn #=> String
|
412
462
|
# resp.code_review.repository_name #=> String
|
413
463
|
# resp.code_review.owner #=> String
|
414
|
-
# resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
464
|
+
# resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
415
465
|
# resp.code_review.state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
|
416
466
|
# resp.code_review.state_reason #=> String
|
417
467
|
# resp.code_review.created_time_stamp #=> Time
|
@@ -436,7 +486,11 @@ module Aws::CodeGuruReviewer
|
|
436
486
|
# recommendation.
|
437
487
|
#
|
438
488
|
# @option params [required, String] :code_review_arn
|
439
|
-
# The Amazon Resource Name (ARN)
|
489
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
490
|
+
#
|
491
|
+
#
|
492
|
+
#
|
493
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
440
494
|
#
|
441
495
|
# @option params [required, String] :recommendation_id
|
442
496
|
# The recommendation ID that can be used to track the provided
|
@@ -446,6 +500,15 @@ module Aws::CodeGuruReviewer
|
|
446
500
|
# Optional parameter to describe the feedback for a given user. If this
|
447
501
|
# is not supplied, it defaults to the user making the request.
|
448
502
|
#
|
503
|
+
# The `UserId` is an IAM principal that can be specified as an AWS
|
504
|
+
# account ID or an Amazon Resource Name (ARN). For more information, see
|
505
|
+
# [ Specifying a Principal][1] in the *AWS Identity and Access
|
506
|
+
# Management User Guide*.
|
507
|
+
#
|
508
|
+
#
|
509
|
+
#
|
510
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying
|
511
|
+
#
|
449
512
|
# @return [Types::DescribeRecommendationFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
450
513
|
#
|
451
514
|
# * {Types::DescribeRecommendationFeedbackResponse#recommendation_feedback #recommendation_feedback} => Types::RecommendationFeedback
|
@@ -477,11 +540,20 @@ module Aws::CodeGuruReviewer
|
|
477
540
|
req.send_request(options)
|
478
541
|
end
|
479
542
|
|
480
|
-
#
|
543
|
+
# Returns a [ `RepositoryAssociation` ][1] object that contains
|
544
|
+
# information about the requested repository association.
|
545
|
+
#
|
546
|
+
#
|
547
|
+
#
|
548
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
|
481
549
|
#
|
482
550
|
# @option params [required, String] :association_arn
|
483
|
-
# The Amazon Resource Name (ARN)
|
484
|
-
# retrieve this ARN by calling `ListRepositories`.
|
551
|
+
# The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
|
552
|
+
# object. You can retrieve this ARN by calling `ListRepositories`.
|
553
|
+
#
|
554
|
+
#
|
555
|
+
#
|
556
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
|
485
557
|
#
|
486
558
|
# @return [Types::DescribeRepositoryAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
487
559
|
#
|
@@ -500,7 +572,7 @@ module Aws::CodeGuruReviewer
|
|
500
572
|
# resp.repository_association.connection_arn #=> String
|
501
573
|
# resp.repository_association.name #=> String
|
502
574
|
# resp.repository_association.owner #=> String
|
503
|
-
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
575
|
+
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
504
576
|
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
|
505
577
|
# resp.repository_association.state_reason #=> String
|
506
578
|
# resp.repository_association.last_updated_time_stamp #=> Time
|
@@ -519,7 +591,12 @@ module Aws::CodeGuruReviewer
|
|
519
591
|
# repository.
|
520
592
|
#
|
521
593
|
# @option params [required, String] :association_arn
|
522
|
-
# The Amazon Resource Name (ARN)
|
594
|
+
# The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
|
595
|
+
# object.
|
596
|
+
#
|
597
|
+
#
|
598
|
+
#
|
599
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
|
523
600
|
#
|
524
601
|
# @return [Types::DisassociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
525
602
|
#
|
@@ -538,7 +615,7 @@ module Aws::CodeGuruReviewer
|
|
538
615
|
# resp.repository_association.connection_arn #=> String
|
539
616
|
# resp.repository_association.name #=> String
|
540
617
|
# resp.repository_association.owner #=> String
|
541
|
-
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
618
|
+
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
542
619
|
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
|
543
620
|
# resp.repository_association.state_reason #=> String
|
544
621
|
# resp.repository_association.last_updated_time_stamp #=> Time
|
@@ -558,13 +635,23 @@ module Aws::CodeGuruReviewer
|
|
558
635
|
#
|
559
636
|
# @option params [Array<String>] :provider_types
|
560
637
|
# List of provider types for filtering that needs to be applied before
|
561
|
-
# displaying the result. For example,
|
562
|
-
#
|
638
|
+
# displaying the result. For example, `providerTypes=[GitHub]` lists
|
639
|
+
# code reviews from GitHub.
|
563
640
|
#
|
564
641
|
# @option params [Array<String>] :states
|
565
642
|
# List of states for filtering that needs to be applied before
|
566
|
-
# displaying the result. For example,
|
567
|
-
#
|
643
|
+
# displaying the result. For example, `states=[Pending]` lists code
|
644
|
+
# reviews in the Pending state.
|
645
|
+
#
|
646
|
+
# The valid code review states are:
|
647
|
+
#
|
648
|
+
# * `Completed`\: The code review is complete.
|
649
|
+
#
|
650
|
+
# * `Pending`\: The code review started and has not completed or failed.
|
651
|
+
#
|
652
|
+
# * `Failed`\: The code review failed.
|
653
|
+
#
|
654
|
+
# * `Deleting`\: The code review is being deleted.
|
568
655
|
#
|
569
656
|
# @option params [Array<String>] :repository_names
|
570
657
|
# List of repository names for filtering that needs to be applied before
|
@@ -593,7 +680,7 @@ module Aws::CodeGuruReviewer
|
|
593
680
|
# @example Request syntax with placeholder values
|
594
681
|
#
|
595
682
|
# resp = client.list_code_reviews({
|
596
|
-
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
|
683
|
+
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
|
597
684
|
# states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
|
598
685
|
# repository_names: ["Name"],
|
599
686
|
# type: "PullRequest", # required, accepts PullRequest
|
@@ -608,7 +695,7 @@ module Aws::CodeGuruReviewer
|
|
608
695
|
# resp.code_review_summaries[0].code_review_arn #=> String
|
609
696
|
# resp.code_review_summaries[0].repository_name #=> String
|
610
697
|
# resp.code_review_summaries[0].owner #=> String
|
611
|
-
# resp.code_review_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
698
|
+
# resp.code_review_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
612
699
|
# resp.code_review_summaries[0].state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
|
613
700
|
# resp.code_review_summaries[0].created_time_stamp #=> Time
|
614
701
|
# resp.code_review_summaries[0].last_updated_time_stamp #=> Time
|
@@ -627,33 +714,46 @@ module Aws::CodeGuruReviewer
|
|
627
714
|
req.send_request(options)
|
628
715
|
end
|
629
716
|
|
630
|
-
#
|
631
|
-
#
|
632
|
-
#
|
633
|
-
#
|
717
|
+
# Returns a list of [ `RecommendationFeedbackSummary` ][1] objects that
|
718
|
+
# contain customer recommendation feedback for all CodeGuru Reviewer
|
719
|
+
# users.
|
720
|
+
#
|
721
|
+
#
|
722
|
+
#
|
723
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RecommendationFeedbackSummary.html
|
634
724
|
#
|
635
725
|
# @option params [String] :next_token
|
636
|
-
# If nextToken is returned, there are more results available. The
|
637
|
-
# of nextToken is a unique pagination token for each page. Make
|
638
|
-
# again using the returned token to retrieve the next page.
|
639
|
-
# other arguments unchanged.
|
726
|
+
# If `nextToken` is returned, there are more results available. The
|
727
|
+
# value of nextToken is a unique pagination token for each page. Make
|
728
|
+
# the call again using the returned token to retrieve the next page.
|
729
|
+
# Keep all other arguments unchanged.
|
640
730
|
#
|
641
731
|
# @option params [Integer] :max_results
|
642
732
|
# The maximum number of results that are returned per call. The default
|
643
733
|
# is 100.
|
644
734
|
#
|
645
735
|
# @option params [required, String] :code_review_arn
|
646
|
-
# The Amazon Resource Name (ARN)
|
736
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
737
|
+
#
|
738
|
+
#
|
739
|
+
#
|
740
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
647
741
|
#
|
648
742
|
# @option params [Array<String>] :user_ids
|
649
|
-
#
|
650
|
-
#
|
651
|
-
#
|
743
|
+
# An AWS user's account ID or Amazon Resource Name (ARN). Use this ID
|
744
|
+
# to query the recommendation feedback for a code review from that user.
|
745
|
+
#
|
746
|
+
# The `UserId` is an IAM principal that can be specified as an AWS
|
747
|
+
# account ID or an Amazon Resource Name (ARN). For more information, see
|
748
|
+
# [ Specifying a Principal][1] in the *AWS Identity and Access
|
749
|
+
# Management User Guide*.
|
750
|
+
#
|
751
|
+
#
|
752
|
+
#
|
753
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying
|
652
754
|
#
|
653
755
|
# @option params [Array<String>] :recommendation_ids
|
654
|
-
#
|
655
|
-
# the result. This can be used to query all the recommendation feedback
|
656
|
-
# for a given recommendation.
|
756
|
+
# Used to query the recommendation feedback for a given recommendation.
|
657
757
|
#
|
658
758
|
# @return [Types::ListRecommendationFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
659
759
|
#
|
@@ -700,7 +800,11 @@ module Aws::CodeGuruReviewer
|
|
700
800
|
# is 100.
|
701
801
|
#
|
702
802
|
# @option params [required, String] :code_review_arn
|
703
|
-
# The Amazon Resource Name (ARN) of the
|
803
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
804
|
+
#
|
805
|
+
#
|
806
|
+
#
|
807
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
704
808
|
#
|
705
809
|
# @return [Types::ListRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
706
810
|
#
|
@@ -736,24 +840,57 @@ module Aws::CodeGuruReviewer
|
|
736
840
|
req.send_request(options)
|
737
841
|
end
|
738
842
|
|
739
|
-
#
|
740
|
-
#
|
741
|
-
#
|
843
|
+
# Returns a list of [ `RepositoryAssociationSummary` ][1] objects that
|
844
|
+
# contain summary information about a repository association. You can
|
845
|
+
# filter the returned list by [ `ProviderType` ][2], [ `Name` ][3], [
|
846
|
+
# `State` ][4], and [ `Owner` ][5].
|
847
|
+
#
|
848
|
+
#
|
849
|
+
#
|
850
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html
|
851
|
+
# [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-ProviderType
|
852
|
+
# [3]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Name
|
853
|
+
# [4]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-State
|
854
|
+
# [5]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Owner
|
742
855
|
#
|
743
856
|
# @option params [Array<String>] :provider_types
|
744
857
|
# List of provider types to use as a filter.
|
745
858
|
#
|
746
859
|
# @option params [Array<String>] :states
|
747
|
-
# List of states to use as a filter.
|
860
|
+
# List of repository association states to use as a filter.
|
861
|
+
#
|
862
|
+
# The valid repository association states are:
|
863
|
+
#
|
864
|
+
# * **Associated**\: The repository association is complete.
|
865
|
+
#
|
866
|
+
# * **Associating**\: CodeGuru Reviewer is:
|
867
|
+
#
|
868
|
+
# * Setting up pull request notifications. This is required for pull
|
869
|
+
# requests to trigger a CodeGuru Reviewer review.
|
870
|
+
#
|
871
|
+
# <note markdown="1"> If your repository `ProviderType` is `GitHub` or `Bitbucket`,
|
872
|
+
# CodeGuru Reviewer creates webhooks in your repository to trigger
|
873
|
+
# CodeGuru Reviewer reviews. If you delete these webhooks, reviews
|
874
|
+
# of code in your repository cannot be triggered.
|
875
|
+
#
|
876
|
+
# </note>
|
877
|
+
#
|
878
|
+
# * Setting up source code access. This is required for CodeGuru
|
879
|
+
# Reviewer to securely clone code in your repository.
|
880
|
+
#
|
881
|
+
# * **Failed**\: The repository failed to associate or disassociate.
|
882
|
+
#
|
883
|
+
# * **Disassociating**\: CodeGuru Reviewer is removing the repository's
|
884
|
+
# pull request notifications and source code access.
|
748
885
|
#
|
749
886
|
# @option params [Array<String>] :names
|
750
887
|
# List of repository names to use as a filter.
|
751
888
|
#
|
752
889
|
# @option params [Array<String>] :owners
|
753
|
-
# List of owners to use as a filter. For
|
754
|
-
#
|
755
|
-
#
|
756
|
-
# associate the repository.
|
890
|
+
# List of owners to use as a filter. For AWS CodeCommit, it is the name
|
891
|
+
# of the CodeCommit account that was used to associate the repository.
|
892
|
+
# For other repository source providers, such as Bitbucket, this is name
|
893
|
+
# of the account that was used to associate the repository.
|
757
894
|
#
|
758
895
|
# @option params [Integer] :max_results
|
759
896
|
# The maximum number of repository association results returned by
|
@@ -762,8 +899,8 @@ module Aws::CodeGuruReviewer
|
|
762
899
|
# results in a single page with a `nextToken` response element. The
|
763
900
|
# remaining results of the initial request can be seen by sending
|
764
901
|
# another `ListRepositoryAssociations` request with the returned
|
765
|
-
# `nextToken` value. This value can be between 1 and
|
766
|
-
# parameter is not used, `ListRepositoryAssociations` returns up to
|
902
|
+
# `nextToken` value. This value can be between 1 and 100. If this
|
903
|
+
# parameter is not used, `ListRepositoryAssociations` returns up to 100
|
767
904
|
# results and a `nextToken` value if applicable.
|
768
905
|
#
|
769
906
|
# @option params [String] :next_token
|
@@ -788,7 +925,7 @@ module Aws::CodeGuruReviewer
|
|
788
925
|
# @example Request syntax with placeholder values
|
789
926
|
#
|
790
927
|
# resp = client.list_repository_associations({
|
791
|
-
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
|
928
|
+
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
|
792
929
|
# states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
|
793
930
|
# names: ["Name"],
|
794
931
|
# owners: ["Owner"],
|
@@ -805,7 +942,7 @@ module Aws::CodeGuruReviewer
|
|
805
942
|
# resp.repository_association_summaries[0].association_id #=> String
|
806
943
|
# resp.repository_association_summaries[0].name #=> String
|
807
944
|
# resp.repository_association_summaries[0].owner #=> String
|
808
|
-
# resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
|
945
|
+
# resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
809
946
|
# resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
|
810
947
|
# resp.next_token #=> String
|
811
948
|
#
|
@@ -818,12 +955,16 @@ module Aws::CodeGuruReviewer
|
|
818
955
|
req.send_request(options)
|
819
956
|
end
|
820
957
|
|
821
|
-
# Stores customer feedback for a CodeGuru
|
958
|
+
# Stores customer feedback for a CodeGuru Reviewer recommendation. When
|
822
959
|
# this API is called again with different reactions the previous
|
823
960
|
# feedback is overwritten.
|
824
961
|
#
|
825
962
|
# @option params [required, String] :code_review_arn
|
826
|
-
# The Amazon Resource Name (ARN)
|
963
|
+
# The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
|
964
|
+
#
|
965
|
+
#
|
966
|
+
#
|
967
|
+
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
|
827
968
|
#
|
828
969
|
# @option params [required, String] :recommendation_id
|
829
970
|
# The recommendation ID that can be used to track the provided
|
@@ -865,7 +1006,7 @@ module Aws::CodeGuruReviewer
|
|
865
1006
|
params: params,
|
866
1007
|
config: config)
|
867
1008
|
context[:gem_name] = 'aws-sdk-codegurureviewer'
|
868
|
-
context[:gem_version] = '1.
|
1009
|
+
context[:gem_version] = '1.10.0'
|
869
1010
|
Seahorse::Client::Request.new(handlers, context)
|
870
1011
|
end
|
871
1012
|
|