aws-sdk-codegurureviewer 1.28.0 → 1.31.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 +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codegurureviewer/client.rb +10 -1
- data/lib/aws-sdk-codegurureviewer/client_api.rb +7 -3
- data/lib/aws-sdk-codegurureviewer/types.rb +41 -3
- data/lib/aws-sdk-codegurureviewer.rb +1 -1
- 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: 40ace0d2bca028fb7351b6a07054513de3803e3ed394dceef995fb36486a76f8
|
|
4
|
+
data.tar.gz: 75fecc955731f62bb4dcc9db0032341fa64af32f1034c74415ba8aca7cce3791
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 64ae52a3f7fe6afa5aa01f6eba4c4f71d809ea915be7e6561bb2f5f894751bc2f4d56882a7776de653d20fcf040c12adf6004cc8f474e21551ef95164257481c
|
|
7
|
+
data.tar.gz: d28c24638bfc5d1cc41f16cf2400b5ac0fd30c04d9f64915a5f948f09af1aa6f672da7a30ec310f5dbb2df5815f3b3a9df12dde447b1a1667e71bf64c4d9ead4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.31.0 (2022-04-29)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon CodeGuru Reviewer now supports suppressing recommendations from being generated on specific files and directories.
|
|
8
|
+
|
|
9
|
+
1.30.0 (2022-02-24)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
14
|
+
1.29.0 (2022-02-03)
|
|
15
|
+
------------------
|
|
16
|
+
|
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
18
|
+
|
|
4
19
|
1.28.0 (2022-01-26)
|
|
5
20
|
------------------
|
|
6
21
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.31.0
|
|
@@ -27,7 +27,9 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
|
+
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
|
30
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
|
32
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
|
31
33
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
|
32
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
|
33
35
|
|
|
@@ -74,7 +76,9 @@ module Aws::CodeGuruReviewer
|
|
|
74
76
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
|
75
77
|
add_plugin(Aws::Plugins::TransferEncoding)
|
|
76
78
|
add_plugin(Aws::Plugins::HttpChecksum)
|
|
79
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
|
77
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
|
81
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
|
78
82
|
add_plugin(Aws::Plugins::SignatureV4)
|
|
79
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
|
80
84
|
|
|
@@ -603,9 +607,11 @@ module Aws::CodeGuruReviewer
|
|
|
603
607
|
# resp.code_review.source_code_type.request_metadata.vendor_name #=> String, one of "GitHub", "GitLab", "NativeS3"
|
|
604
608
|
# resp.code_review.association_arn #=> String
|
|
605
609
|
# resp.code_review.metrics.metered_lines_of_code_count #=> Integer
|
|
610
|
+
# resp.code_review.metrics.suppressed_lines_of_code_count #=> Integer
|
|
606
611
|
# resp.code_review.metrics.findings_count #=> Integer
|
|
607
612
|
# resp.code_review.analysis_types #=> Array
|
|
608
613
|
# resp.code_review.analysis_types[0] #=> String, one of "Security", "CodeQuality"
|
|
614
|
+
# resp.code_review.config_file_state #=> String, one of "Present", "Absent", "PresentWithErrors"
|
|
609
615
|
#
|
|
610
616
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CreateCodeReview AWS API Documentation
|
|
611
617
|
#
|
|
@@ -666,9 +672,11 @@ module Aws::CodeGuruReviewer
|
|
|
666
672
|
# resp.code_review.source_code_type.request_metadata.vendor_name #=> String, one of "GitHub", "GitLab", "NativeS3"
|
|
667
673
|
# resp.code_review.association_arn #=> String
|
|
668
674
|
# resp.code_review.metrics.metered_lines_of_code_count #=> Integer
|
|
675
|
+
# resp.code_review.metrics.suppressed_lines_of_code_count #=> Integer
|
|
669
676
|
# resp.code_review.metrics.findings_count #=> Integer
|
|
670
677
|
# resp.code_review.analysis_types #=> Array
|
|
671
678
|
# resp.code_review.analysis_types[0] #=> String, one of "Security", "CodeQuality"
|
|
679
|
+
# resp.code_review.config_file_state #=> String, one of "Present", "Absent", "PresentWithErrors"
|
|
672
680
|
#
|
|
673
681
|
#
|
|
674
682
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
@@ -929,6 +937,7 @@ module Aws::CodeGuruReviewer
|
|
|
929
937
|
# resp.code_review_summaries[0].type #=> String, one of "PullRequest", "RepositoryAnalysis"
|
|
930
938
|
# resp.code_review_summaries[0].pull_request_id #=> String
|
|
931
939
|
# resp.code_review_summaries[0].metrics_summary.metered_lines_of_code_count #=> Integer
|
|
940
|
+
# resp.code_review_summaries[0].metrics_summary.suppressed_lines_of_code_count #=> Integer
|
|
932
941
|
# resp.code_review_summaries[0].metrics_summary.findings_count #=> Integer
|
|
933
942
|
# resp.code_review_summaries[0].source_code_type.commit_diff.source_commit #=> String
|
|
934
943
|
# resp.code_review_summaries[0].source_code_type.commit_diff.destination_commit #=> String
|
|
@@ -1386,7 +1395,7 @@ module Aws::CodeGuruReviewer
|
|
|
1386
1395
|
params: params,
|
|
1387
1396
|
config: config)
|
|
1388
1397
|
context[:gem_name] = 'aws-sdk-codegurureviewer'
|
|
1389
|
-
context[:gem_version] = '1.
|
|
1398
|
+
context[:gem_version] = '1.31.0'
|
|
1390
1399
|
Seahorse::Client::Request.new(handlers, context)
|
|
1391
1400
|
end
|
|
1392
1401
|
|
|
@@ -34,6 +34,7 @@ module Aws::CodeGuruReviewer
|
|
|
34
34
|
CodeReviewType = Shapes::StructureShape.new(name: 'CodeReviewType')
|
|
35
35
|
CommitDiffSourceCodeType = Shapes::StructureShape.new(name: 'CommitDiffSourceCodeType')
|
|
36
36
|
CommitId = Shapes::StringShape.new(name: 'CommitId')
|
|
37
|
+
ConfigFileState = Shapes::StringShape.new(name: 'ConfigFileState')
|
|
37
38
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
|
38
39
|
ConnectionArn = Shapes::StringShape.new(name: 'ConnectionArn')
|
|
39
40
|
CreateCodeReviewRequest = Shapes::StructureShape.new(name: 'CreateCodeReviewRequest')
|
|
@@ -59,6 +60,7 @@ module Aws::CodeGuruReviewer
|
|
|
59
60
|
KMSKeyDetails = Shapes::StructureShape.new(name: 'KMSKeyDetails')
|
|
60
61
|
KMSKeyId = Shapes::StringShape.new(name: 'KMSKeyId')
|
|
61
62
|
LineNumber = Shapes::IntegerShape.new(name: 'LineNumber')
|
|
63
|
+
LinesOfCodeCount = Shapes::IntegerShape.new(name: 'LinesOfCodeCount')
|
|
62
64
|
ListCodeReviewsMaxResults = Shapes::IntegerShape.new(name: 'ListCodeReviewsMaxResults')
|
|
63
65
|
ListCodeReviewsRequest = Shapes::StructureShape.new(name: 'ListCodeReviewsRequest')
|
|
64
66
|
ListCodeReviewsResponse = Shapes::StructureShape.new(name: 'ListCodeReviewsResponse')
|
|
@@ -73,7 +75,6 @@ module Aws::CodeGuruReviewer
|
|
|
73
75
|
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
|
74
76
|
LongDescription = Shapes::StringShape.new(name: 'LongDescription')
|
|
75
77
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
|
76
|
-
MeteredLinesOfCodeCount = Shapes::IntegerShape.new(name: 'MeteredLinesOfCodeCount')
|
|
77
78
|
Metrics = Shapes::StructureShape.new(name: 'Metrics')
|
|
78
79
|
MetricsSummary = Shapes::StructureShape.new(name: 'MetricsSummary')
|
|
79
80
|
Name = Shapes::StringShape.new(name: 'Name')
|
|
@@ -183,6 +184,7 @@ module Aws::CodeGuruReviewer
|
|
|
183
184
|
CodeReview.add_member(:association_arn, Shapes::ShapeRef.new(shape: AssociationArn, location_name: "AssociationArn"))
|
|
184
185
|
CodeReview.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
|
|
185
186
|
CodeReview.add_member(:analysis_types, Shapes::ShapeRef.new(shape: AnalysisTypes, location_name: "AnalysisTypes"))
|
|
187
|
+
CodeReview.add_member(:config_file_state, Shapes::ShapeRef.new(shape: ConfigFileState, location_name: "ConfigFileState"))
|
|
186
188
|
CodeReview.struct_class = Types::CodeReview
|
|
187
189
|
|
|
188
190
|
CodeReviewSummaries.member = Shapes::ShapeRef.new(shape: CodeReviewSummary)
|
|
@@ -313,11 +315,13 @@ module Aws::CodeGuruReviewer
|
|
|
313
315
|
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
|
314
316
|
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
|
315
317
|
|
|
316
|
-
Metrics.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape:
|
|
318
|
+
Metrics.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape: LinesOfCodeCount, location_name: "MeteredLinesOfCodeCount"))
|
|
319
|
+
Metrics.add_member(:suppressed_lines_of_code_count, Shapes::ShapeRef.new(shape: LinesOfCodeCount, location_name: "SuppressedLinesOfCodeCount"))
|
|
317
320
|
Metrics.add_member(:findings_count, Shapes::ShapeRef.new(shape: FindingsCount, location_name: "FindingsCount"))
|
|
318
321
|
Metrics.struct_class = Types::Metrics
|
|
319
322
|
|
|
320
|
-
MetricsSummary.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape:
|
|
323
|
+
MetricsSummary.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape: LinesOfCodeCount, location_name: "MeteredLinesOfCodeCount"))
|
|
324
|
+
MetricsSummary.add_member(:suppressed_lines_of_code_count, Shapes::ShapeRef.new(shape: LinesOfCodeCount, location_name: "SuppressedLinesOfCodeCount"))
|
|
321
325
|
MetricsSummary.add_member(:findings_count, Shapes::ShapeRef.new(shape: FindingsCount, location_name: "FindingsCount"))
|
|
322
326
|
MetricsSummary.struct_class = Types::MetricsSummary
|
|
323
327
|
|
|
@@ -322,11 +322,18 @@ module Aws::CodeGuruReviewer
|
|
|
322
322
|
# @return [Types::Metrics]
|
|
323
323
|
#
|
|
324
324
|
# @!attribute [rw] analysis_types
|
|
325
|
-
#
|
|
325
|
+
# The types of analysis performed during a repository analysis or a
|
|
326
326
|
# pull request review. You can specify either `Security`,
|
|
327
327
|
# `CodeQuality`, or both.
|
|
328
328
|
# @return [Array<String>]
|
|
329
329
|
#
|
|
330
|
+
# @!attribute [rw] config_file_state
|
|
331
|
+
# The state of the `aws-codeguru-reviewer.yml` configuration file that
|
|
332
|
+
# allows the configuration of the CodeGuru Reviewer analysis. The file
|
|
333
|
+
# either exists, doesn't exist, or exists with errors at the root
|
|
334
|
+
# directory of your repository.
|
|
335
|
+
# @return [String]
|
|
336
|
+
#
|
|
330
337
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeReview AWS API Documentation
|
|
331
338
|
#
|
|
332
339
|
class CodeReview < Struct.new(
|
|
@@ -344,7 +351,8 @@ module Aws::CodeGuruReviewer
|
|
|
344
351
|
:source_code_type,
|
|
345
352
|
:association_arn,
|
|
346
353
|
:metrics,
|
|
347
|
-
:analysis_types
|
|
354
|
+
:analysis_types,
|
|
355
|
+
:config_file_state)
|
|
348
356
|
SENSITIVE = []
|
|
349
357
|
include Aws::Structure
|
|
350
358
|
end
|
|
@@ -1373,11 +1381,20 @@ module Aws::CodeGuruReviewer
|
|
|
1373
1381
|
# Information about the statistics from the code review.
|
|
1374
1382
|
#
|
|
1375
1383
|
# @!attribute [rw] metered_lines_of_code_count
|
|
1376
|
-
# `
|
|
1384
|
+
# `MeteredLinesOfCodeCount` is the number of lines of code in the
|
|
1377
1385
|
# repository where the code review happened. This does not include
|
|
1378
1386
|
# non-code lines such as comments and blank lines.
|
|
1379
1387
|
# @return [Integer]
|
|
1380
1388
|
#
|
|
1389
|
+
# @!attribute [rw] suppressed_lines_of_code_count
|
|
1390
|
+
# `SuppressedLinesOfCodeCount` is the number of lines of code in the
|
|
1391
|
+
# repository where the code review happened that CodeGuru Reviewer did
|
|
1392
|
+
# not analyze. The lines suppressed in the analysis is based on the
|
|
1393
|
+
# `excludeFiles` variable in the `aws-codeguru-reviewer.yml` file.
|
|
1394
|
+
# This number does not include non-code lines such as comments and
|
|
1395
|
+
# blank lines.
|
|
1396
|
+
# @return [Integer]
|
|
1397
|
+
#
|
|
1381
1398
|
# @!attribute [rw] findings_count
|
|
1382
1399
|
# Total number of recommendations found in the code review.
|
|
1383
1400
|
# @return [Integer]
|
|
@@ -1386,6 +1403,7 @@ module Aws::CodeGuruReviewer
|
|
|
1386
1403
|
#
|
|
1387
1404
|
class Metrics < Struct.new(
|
|
1388
1405
|
:metered_lines_of_code_count,
|
|
1406
|
+
:suppressed_lines_of_code_count,
|
|
1389
1407
|
:findings_count)
|
|
1390
1408
|
SENSITIVE = []
|
|
1391
1409
|
include Aws::Structure
|
|
@@ -1408,6 +1426,25 @@ module Aws::CodeGuruReviewer
|
|
|
1408
1426
|
# the 25 changed lines of code for a total of 2,725 lines of code.
|
|
1409
1427
|
# @return [Integer]
|
|
1410
1428
|
#
|
|
1429
|
+
# @!attribute [rw] suppressed_lines_of_code_count
|
|
1430
|
+
# Lines of code suppressed in the code review based on the
|
|
1431
|
+
# `excludeFiles` element in the `aws-codeguru-reviewer.yml` file. For
|
|
1432
|
+
# full repository analyses, this number includes all lines of code in
|
|
1433
|
+
# the files that are suppressed. For pull requests, this number only
|
|
1434
|
+
# includes the *changed* lines of code that are suppressed. In both
|
|
1435
|
+
# cases, this number does not include non-code lines such as comments
|
|
1436
|
+
# and import statements. For example, if you initiate a full
|
|
1437
|
+
# repository analysis on a repository containing 5 files, each file
|
|
1438
|
+
# with 100 lines of code, and 2 files are listed as excluded in the
|
|
1439
|
+
# `aws-codeguru-reviewer.yml` file, then `SuppressedLinesOfCodeCount`
|
|
1440
|
+
# returns 200 (2 * 100) as the total number of lines of code
|
|
1441
|
+
# suppressed. However, if you submit a pull request for the same
|
|
1442
|
+
# repository, then `SuppressedLinesOfCodeCount` only includes the
|
|
1443
|
+
# lines in the 2 files that changed. If only 1 of the 2 files changed
|
|
1444
|
+
# in the pull request, then `SuppressedLinesOfCodeCount` returns 100
|
|
1445
|
+
# (1 * 100) as the total number of lines of code suppressed.
|
|
1446
|
+
# @return [Integer]
|
|
1447
|
+
#
|
|
1411
1448
|
# @!attribute [rw] findings_count
|
|
1412
1449
|
# Total number of recommendations found in the code review.
|
|
1413
1450
|
# @return [Integer]
|
|
@@ -1416,6 +1453,7 @@ module Aws::CodeGuruReviewer
|
|
|
1416
1453
|
#
|
|
1417
1454
|
class MetricsSummary < Struct.new(
|
|
1418
1455
|
:metered_lines_of_code_count,
|
|
1456
|
+
:suppressed_lines_of_code_count,
|
|
1419
1457
|
:findings_count)
|
|
1420
1458
|
SENSITIVE = []
|
|
1421
1459
|
include Aws::Structure
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-codegurureviewer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.31.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-04-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|
|
@@ -19,7 +19,7 @@ dependencies:
|
|
|
19
19
|
version: '3'
|
|
20
20
|
- - ">="
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: 3.
|
|
22
|
+
version: 3.127.0
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -29,7 +29,7 @@ dependencies:
|
|
|
29
29
|
version: '3'
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 3.
|
|
32
|
+
version: 3.127.0
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: aws-sigv4
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|