aws-sdk-codegurureviewer 1.13.0 → 1.14.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b3dc52479126596a4738b392fdde867c32e88cfde759aeb4fe435e82d52e427
4
- data.tar.gz: 639d3f9feb9f51e6a68f89425ee02cf7f1b7fbd6690412b661e24f7a73037533
3
+ metadata.gz: 8d969f370bafb268d2ae90038a73cd1e0b9d69019baf8612fb7879bf597db699
4
+ data.tar.gz: fca8d5d7b70baaebf56cad809922e44f024fc37ad343de70b9fd2866e969044a
5
5
  SHA512:
6
- metadata.gz: 59432a7407ede52e9fe9338521ac3f95a5fddf7bcfe21c6a76860a0d1560b1e09cd7d12fd0b601c6d6eb23e64829794d6ffc958758bf2c03577905b4fe9b1546
7
- data.tar.gz: 1ab0f7b9206c850d47d0ccbdf50c4b923137a8ad551ce769d30024087c276d69ba0006d2a2e2201f0b3dd94d53bacf57538ec45ae2aac99e962196f24c8986ce
6
+ metadata.gz: 3d16ece638fe1c77beb7439efe32656ad586037b979e1ef96fe708cb600279af1b61080a41b52fa0cb649d978e72d48466fa64690c434e0aa2f9acac786f0efa
7
+ data.tar.gz: e8aa91d5d397021c942c9d88bc16a67a446d10691840ab84009a1647e6ac3b06650071d5fb75627fc9489dd44a5eab98344516b5285617eab118b24e0137e8bf
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
48
48
  # @!group service
49
49
  module Aws::CodeGuruReviewer
50
50
 
51
- GEM_VERSION = '1.13.0'
51
+ GEM_VERSION = '1.14.0'
52
52
 
53
53
  end
@@ -369,9 +369,22 @@ module Aws::CodeGuruReviewer
369
369
  # **A suitable default value is auto-generated.** You should normally
370
370
  # not need to pass this option.**
371
371
  #
372
+ # @option params [Hash<String,String>] :tags
373
+ # An array of key-value pairs used to tag an associated repository. A
374
+ # tag is a custom attribute label with two parts:
375
+ #
376
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`, or
377
+ # `Secret`). Tag keys are case sensitive.
378
+ #
379
+ # * An optional field known as a *tag value* (for example,
380
+ # `111122223333`, `Production`, or a team name). Omitting the tag
381
+ # value is the same as using an empty string. Like tag keys, tag
382
+ # values are case sensitive.
383
+ #
372
384
  # @return [Types::AssociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
373
385
  #
374
386
  # * {Types::AssociateRepositoryResponse#repository_association #repository_association} => Types::RepositoryAssociation
387
+ # * {Types::AssociateRepositoryResponse#tags #tags} => Hash&lt;String,String&gt;
375
388
  #
376
389
  # @example Request syntax with placeholder values
377
390
  #
@@ -392,6 +405,9 @@ module Aws::CodeGuruReviewer
392
405
  # },
393
406
  # },
394
407
  # client_request_token: "ClientRequestToken",
408
+ # tags: {
409
+ # "TagKey" => "TagValue",
410
+ # },
395
411
  # })
396
412
  #
397
413
  # @example Response structure
@@ -402,10 +418,12 @@ module Aws::CodeGuruReviewer
402
418
  # resp.repository_association.name #=> String
403
419
  # resp.repository_association.owner #=> String
404
420
  # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
405
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
421
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
406
422
  # resp.repository_association.state_reason #=> String
407
423
  # resp.repository_association.last_updated_time_stamp #=> Time
408
424
  # resp.repository_association.created_time_stamp #=> Time
425
+ # resp.tags #=> Hash
426
+ # resp.tags["TagKey"] #=> String
409
427
  #
410
428
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository AWS API Documentation
411
429
  #
@@ -416,15 +434,24 @@ module Aws::CodeGuruReviewer
416
434
  req.send_request(options)
417
435
  end
418
436
 
419
- # Use to create a code review for a repository analysis.
437
+ # Use to create a code review with a [ `CodeReviewType` ][1] of
438
+ # `RepositoryAnalysis`. This type of code review analyzes all code under
439
+ # a specified branch in an associated repository. `PullRequest` code
440
+ # reviews are automatically triggered by a pull request so cannot be
441
+ # created using this method.
442
+ #
443
+ #
444
+ #
445
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html
420
446
  #
421
447
  # @option params [required, String] :name
422
- # The name of the code review. Each code review of the same code review
423
- # type must have a unique name in your AWS account.
448
+ # The name of the code review. The name of each code review in your AWS
449
+ # account must be unique.
424
450
  #
425
451
  # @option params [required, String] :repository_association_arn
426
452
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
427
- # object. You can retrieve this ARN by calling `ListRepositories`.
453
+ # object. You can retrieve this ARN by calling [
454
+ # `ListRepositoryAssociations` ][2].
428
455
  #
429
456
  # A code review can only be created on an associated repository. This is
430
457
  # the ARN of the associated repository.
@@ -432,10 +459,12 @@ module Aws::CodeGuruReviewer
432
459
  #
433
460
  #
434
461
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
462
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
435
463
  #
436
464
  # @option params [required, Types::CodeReviewType] :type
437
465
  # The type of code review to create. This is specified using a [
438
- # `CodeReviewType` ][1] object.
466
+ # `CodeReviewType` ][1] object. You can create a code review only of
467
+ # type `RepositoryAnalysis`.
439
468
  #
440
469
  #
441
470
  #
@@ -456,7 +485,7 @@ module Aws::CodeGuruReviewer
456
485
  #
457
486
  # resp = client.create_code_review({
458
487
  # name: "CodeReviewName", # required
459
- # repository_association_arn: "Arn", # required
488
+ # repository_association_arn: "AssociationArn", # required
460
489
  # type: { # required
461
490
  # repository_analysis: { # required
462
491
  # repository_head: { # required
@@ -483,6 +512,7 @@ module Aws::CodeGuruReviewer
483
512
  # resp.code_review.source_code_type.commit_diff.source_commit #=> String
484
513
  # resp.code_review.source_code_type.commit_diff.destination_commit #=> String
485
514
  # resp.code_review.source_code_type.repository_head.branch_name #=> String
515
+ # resp.code_review.association_arn #=> String
486
516
  # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
487
517
  # resp.code_review.metrics.findings_count #=> Integer
488
518
  #
@@ -531,6 +561,7 @@ module Aws::CodeGuruReviewer
531
561
  # resp.code_review.source_code_type.commit_diff.source_commit #=> String
532
562
  # resp.code_review.source_code_type.commit_diff.destination_commit #=> String
533
563
  # resp.code_review.source_code_type.repository_head.branch_name #=> String
564
+ # resp.code_review.association_arn #=> String
534
565
  # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
535
566
  # resp.code_review.metrics.findings_count #=> Integer
536
567
  #
@@ -610,20 +641,23 @@ module Aws::CodeGuruReviewer
610
641
  #
611
642
  # @option params [required, String] :association_arn
612
643
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
613
- # object. You can retrieve this ARN by calling `ListRepositories`.
644
+ # object. You can retrieve this ARN by calling [
645
+ # `ListRepositoryAssociations` ][2].
614
646
  #
615
647
  #
616
648
  #
617
649
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
650
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
618
651
  #
619
652
  # @return [Types::DescribeRepositoryAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
620
653
  #
621
654
  # * {Types::DescribeRepositoryAssociationResponse#repository_association #repository_association} => Types::RepositoryAssociation
655
+ # * {Types::DescribeRepositoryAssociationResponse#tags #tags} => Hash&lt;String,String&gt;
622
656
  #
623
657
  # @example Request syntax with placeholder values
624
658
  #
625
659
  # resp = client.describe_repository_association({
626
- # association_arn: "Arn", # required
660
+ # association_arn: "AssociationArn", # required
627
661
  # })
628
662
  #
629
663
  # @example Response structure
@@ -634,10 +668,12 @@ module Aws::CodeGuruReviewer
634
668
  # resp.repository_association.name #=> String
635
669
  # resp.repository_association.owner #=> String
636
670
  # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
637
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
671
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
638
672
  # resp.repository_association.state_reason #=> String
639
673
  # resp.repository_association.last_updated_time_stamp #=> Time
640
674
  # resp.repository_association.created_time_stamp #=> Time
675
+ # resp.tags #=> Hash
676
+ # resp.tags["TagKey"] #=> String
641
677
  #
642
678
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation AWS API Documentation
643
679
  #
@@ -653,20 +689,23 @@ module Aws::CodeGuruReviewer
653
689
  #
654
690
  # @option params [required, String] :association_arn
655
691
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
656
- # object. You can retrieve this ARN by calling `ListRepositories`.
692
+ # object. You can retrieve this ARN by calling [
693
+ # `ListRepositoryAssociations` ][2].
657
694
  #
658
695
  #
659
696
  #
660
697
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
698
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
661
699
  #
662
700
  # @return [Types::DisassociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
663
701
  #
664
702
  # * {Types::DisassociateRepositoryResponse#repository_association #repository_association} => Types::RepositoryAssociation
703
+ # * {Types::DisassociateRepositoryResponse#tags #tags} => Hash&lt;String,String&gt;
665
704
  #
666
705
  # @example Request syntax with placeholder values
667
706
  #
668
707
  # resp = client.disassociate_repository({
669
- # association_arn: "Arn", # required
708
+ # association_arn: "AssociationArn", # required
670
709
  # })
671
710
  #
672
711
  # @example Response structure
@@ -677,10 +716,12 @@ module Aws::CodeGuruReviewer
677
716
  # resp.repository_association.name #=> String
678
717
  # resp.repository_association.owner #=> String
679
718
  # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
680
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
719
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
681
720
  # resp.repository_association.state_reason #=> String
682
721
  # resp.repository_association.last_updated_time_stamp #=> Time
683
722
  # resp.repository_association.created_time_stamp #=> Time
723
+ # resp.tags #=> Hash
724
+ # resp.tags["TagKey"] #=> String
684
725
  #
685
726
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository AWS API Documentation
686
727
  #
@@ -945,6 +986,18 @@ module Aws::CodeGuruReviewer
945
986
  # * **Disassociating**\: CodeGuru Reviewer is removing the repository's
946
987
  # pull request notifications and source code access.
947
988
  #
989
+ # * **Disassociated**\: CodeGuru Reviewer successfully disassociated the
990
+ # repository. You can create a new association with this repository if
991
+ # you want to review source code in it later. You can control access
992
+ # to code reviews created in an associated repository with tags after
993
+ # it has been disassociated. For more information, see [Using tags to
994
+ # control access to associated repositories][1] in the *Amazon
995
+ # CodeGuru Reviewer User Guide*.
996
+ #
997
+ #
998
+ #
999
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html
1000
+ #
948
1001
  # @option params [Array<String>] :names
949
1002
  # List of repository names to use as a filter.
950
1003
  #
@@ -989,7 +1042,7 @@ module Aws::CodeGuruReviewer
989
1042
  #
990
1043
  # resp = client.list_repository_associations({
991
1044
  # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
992
- # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
1045
+ # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating, Disassociated
993
1046
  # names: ["Name"],
994
1047
  # owners: ["Owner"],
995
1048
  # max_results: 1,
@@ -1006,7 +1059,7 @@ module Aws::CodeGuruReviewer
1006
1059
  # resp.repository_association_summaries[0].name #=> String
1007
1060
  # resp.repository_association_summaries[0].owner #=> String
1008
1061
  # resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
1009
- # resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
1062
+ # resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
1010
1063
  # resp.next_token #=> String
1011
1064
  #
1012
1065
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations AWS API Documentation
@@ -1018,6 +1071,43 @@ module Aws::CodeGuruReviewer
1018
1071
  req.send_request(options)
1019
1072
  end
1020
1073
 
1074
+ # Returns the list of tags associated with an associated repository
1075
+ # resource.
1076
+ #
1077
+ # @option params [required, String] :resource_arn
1078
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1079
+ # object. You can retrieve this ARN by calling [
1080
+ # `ListRepositoryAssociations` ][2].
1081
+ #
1082
+ #
1083
+ #
1084
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1085
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1086
+ #
1087
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1088
+ #
1089
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
1090
+ #
1091
+ # @example Request syntax with placeholder values
1092
+ #
1093
+ # resp = client.list_tags_for_resource({
1094
+ # resource_arn: "AssociationArn", # required
1095
+ # })
1096
+ #
1097
+ # @example Response structure
1098
+ #
1099
+ # resp.tags #=> Hash
1100
+ # resp.tags["TagKey"] #=> String
1101
+ #
1102
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListTagsForResource AWS API Documentation
1103
+ #
1104
+ # @overload list_tags_for_resource(params = {})
1105
+ # @param [Hash] params ({})
1106
+ def list_tags_for_resource(params = {}, options = {})
1107
+ req = build_request(:list_tags_for_resource, params)
1108
+ req.send_request(options)
1109
+ end
1110
+
1021
1111
  # Stores customer feedback for a CodeGuru Reviewer recommendation. When
1022
1112
  # this API is called again with different reactions the previous
1023
1113
  # feedback is overwritten.
@@ -1056,6 +1146,84 @@ module Aws::CodeGuruReviewer
1056
1146
  req.send_request(options)
1057
1147
  end
1058
1148
 
1149
+ # Adds one or more tags to an associated repository.
1150
+ #
1151
+ # @option params [required, String] :resource_arn
1152
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1153
+ # object. You can retrieve this ARN by calling [
1154
+ # `ListRepositoryAssociations` ][2].
1155
+ #
1156
+ #
1157
+ #
1158
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1159
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1160
+ #
1161
+ # @option params [required, Hash<String,String>] :tags
1162
+ # An array of key-value pairs used to tag an associated repository. A
1163
+ # tag is a custom attribute label with two parts:
1164
+ #
1165
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`, or
1166
+ # `Secret`). Tag keys are case sensitive.
1167
+ #
1168
+ # * An optional field known as a *tag value* (for example,
1169
+ # `111122223333`, `Production`, or a team name). Omitting the tag
1170
+ # value is the same as using an empty string. Like tag keys, tag
1171
+ # values are case sensitive.
1172
+ #
1173
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1174
+ #
1175
+ # @example Request syntax with placeholder values
1176
+ #
1177
+ # resp = client.tag_resource({
1178
+ # resource_arn: "AssociationArn", # required
1179
+ # tags: { # required
1180
+ # "TagKey" => "TagValue",
1181
+ # },
1182
+ # })
1183
+ #
1184
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/TagResource AWS API Documentation
1185
+ #
1186
+ # @overload tag_resource(params = {})
1187
+ # @param [Hash] params ({})
1188
+ def tag_resource(params = {}, options = {})
1189
+ req = build_request(:tag_resource, params)
1190
+ req.send_request(options)
1191
+ end
1192
+
1193
+ # Removes a tag from an associated repository.
1194
+ #
1195
+ # @option params [required, String] :resource_arn
1196
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1197
+ # object. You can retrieve this ARN by calling [
1198
+ # `ListRepositoryAssociations` ][2].
1199
+ #
1200
+ #
1201
+ #
1202
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1203
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1204
+ #
1205
+ # @option params [required, Array<String>] :tag_keys
1206
+ # A list of the keys for each tag you want to remove from an associated
1207
+ # repository.
1208
+ #
1209
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1210
+ #
1211
+ # @example Request syntax with placeholder values
1212
+ #
1213
+ # resp = client.untag_resource({
1214
+ # resource_arn: "AssociationArn", # required
1215
+ # tag_keys: ["TagKey"], # required
1216
+ # })
1217
+ #
1218
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/UntagResource AWS API Documentation
1219
+ #
1220
+ # @overload untag_resource(params = {})
1221
+ # @param [Hash] params ({})
1222
+ def untag_resource(params = {}, options = {})
1223
+ req = build_request(:untag_resource, params)
1224
+ req.send_request(options)
1225
+ end
1226
+
1059
1227
  # @!endgroup
1060
1228
 
1061
1229
  # @param params ({})
@@ -1069,7 +1237,7 @@ module Aws::CodeGuruReviewer
1069
1237
  params: params,
1070
1238
  config: config)
1071
1239
  context[:gem_name] = 'aws-sdk-codegurureviewer'
1072
- context[:gem_version] = '1.13.0'
1240
+ context[:gem_version] = '1.14.0'
1073
1241
  Seahorse::Client::Request.new(handlers, context)
1074
1242
  end
1075
1243
 
@@ -17,6 +17,7 @@ module Aws::CodeGuruReviewer
17
17
  Arn = Shapes::StringShape.new(name: 'Arn')
18
18
  AssociateRepositoryRequest = Shapes::StructureShape.new(name: 'AssociateRepositoryRequest')
19
19
  AssociateRepositoryResponse = Shapes::StructureShape.new(name: 'AssociateRepositoryResponse')
20
+ AssociationArn = Shapes::StringShape.new(name: 'AssociationArn')
20
21
  AssociationId = Shapes::StringShape.new(name: 'AssociationId')
21
22
  BranchName = Shapes::StringShape.new(name: 'BranchName')
22
23
  ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
@@ -56,6 +57,8 @@ module Aws::CodeGuruReviewer
56
57
  ListRecommendationsResponse = Shapes::StructureShape.new(name: 'ListRecommendationsResponse')
57
58
  ListRepositoryAssociationsRequest = Shapes::StructureShape.new(name: 'ListRepositoryAssociationsRequest')
58
59
  ListRepositoryAssociationsResponse = Shapes::StructureShape.new(name: 'ListRepositoryAssociationsResponse')
60
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
61
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
59
62
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
60
63
  MeteredLinesOfCodeCount = Shapes::IntegerShape.new(name: 'MeteredLinesOfCodeCount')
61
64
  Metrics = Shapes::StructureShape.new(name: 'Metrics')
@@ -92,11 +95,19 @@ module Aws::CodeGuruReviewer
92
95
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
93
96
  SourceCodeType = Shapes::StructureShape.new(name: 'SourceCodeType')
94
97
  StateReason = Shapes::StringShape.new(name: 'StateReason')
98
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
99
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
100
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
101
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
102
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
103
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
95
104
  Text = Shapes::StringShape.new(name: 'Text')
96
105
  ThirdPartySourceRepository = Shapes::StructureShape.new(name: 'ThirdPartySourceRepository')
97
106
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
98
107
  TimeStamp = Shapes::TimestampShape.new(name: 'TimeStamp')
99
108
  Type = Shapes::StringShape.new(name: 'Type')
109
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
110
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
100
111
  UserId = Shapes::StringShape.new(name: 'UserId')
101
112
  UserIds = Shapes::ListShape.new(name: 'UserIds')
102
113
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
@@ -106,9 +117,11 @@ module Aws::CodeGuruReviewer
106
117
 
107
118
  AssociateRepositoryRequest.add_member(:repository, Shapes::ShapeRef.new(shape: Repository, required: true, location_name: "Repository"))
108
119
  AssociateRepositoryRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
120
+ AssociateRepositoryRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
109
121
  AssociateRepositoryRequest.struct_class = Types::AssociateRepositoryRequest
110
122
 
111
123
  AssociateRepositoryResponse.add_member(:repository_association, Shapes::ShapeRef.new(shape: RepositoryAssociation, location_name: "RepositoryAssociation"))
124
+ AssociateRepositoryResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
112
125
  AssociateRepositoryResponse.struct_class = Types::AssociateRepositoryResponse
113
126
 
114
127
  CodeCommitRepository.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
@@ -126,6 +139,7 @@ module Aws::CodeGuruReviewer
126
139
  CodeReview.add_member(:type, Shapes::ShapeRef.new(shape: Type, location_name: "Type"))
127
140
  CodeReview.add_member(:pull_request_id, Shapes::ShapeRef.new(shape: PullRequestId, location_name: "PullRequestId"))
128
141
  CodeReview.add_member(:source_code_type, Shapes::ShapeRef.new(shape: SourceCodeType, location_name: "SourceCodeType"))
142
+ CodeReview.add_member(:association_arn, Shapes::ShapeRef.new(shape: AssociationArn, location_name: "AssociationArn"))
129
143
  CodeReview.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
130
144
  CodeReview.struct_class = Types::CodeReview
131
145
 
@@ -155,7 +169,7 @@ module Aws::CodeGuruReviewer
155
169
  ConflictException.struct_class = Types::ConflictException
156
170
 
157
171
  CreateCodeReviewRequest.add_member(:name, Shapes::ShapeRef.new(shape: CodeReviewName, required: true, location_name: "Name"))
158
- CreateCodeReviewRequest.add_member(:repository_association_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RepositoryAssociationArn"))
172
+ CreateCodeReviewRequest.add_member(:repository_association_arn, Shapes::ShapeRef.new(shape: AssociationArn, required: true, location_name: "RepositoryAssociationArn"))
159
173
  CreateCodeReviewRequest.add_member(:type, Shapes::ShapeRef.new(shape: CodeReviewType, required: true, location_name: "Type"))
160
174
  CreateCodeReviewRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
161
175
  CreateCodeReviewRequest.struct_class = Types::CreateCodeReviewRequest
@@ -177,16 +191,18 @@ module Aws::CodeGuruReviewer
177
191
  DescribeRecommendationFeedbackResponse.add_member(:recommendation_feedback, Shapes::ShapeRef.new(shape: RecommendationFeedback, location_name: "RecommendationFeedback"))
178
192
  DescribeRecommendationFeedbackResponse.struct_class = Types::DescribeRecommendationFeedbackResponse
179
193
 
180
- DescribeRepositoryAssociationRequest.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "AssociationArn"))
194
+ DescribeRepositoryAssociationRequest.add_member(:association_arn, Shapes::ShapeRef.new(shape: AssociationArn, required: true, location: "uri", location_name: "AssociationArn"))
181
195
  DescribeRepositoryAssociationRequest.struct_class = Types::DescribeRepositoryAssociationRequest
182
196
 
183
197
  DescribeRepositoryAssociationResponse.add_member(:repository_association, Shapes::ShapeRef.new(shape: RepositoryAssociation, location_name: "RepositoryAssociation"))
198
+ DescribeRepositoryAssociationResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
184
199
  DescribeRepositoryAssociationResponse.struct_class = Types::DescribeRepositoryAssociationResponse
185
200
 
186
- DisassociateRepositoryRequest.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "AssociationArn"))
201
+ DisassociateRepositoryRequest.add_member(:association_arn, Shapes::ShapeRef.new(shape: AssociationArn, required: true, location: "uri", location_name: "AssociationArn"))
187
202
  DisassociateRepositoryRequest.struct_class = Types::DisassociateRepositoryRequest
188
203
 
189
204
  DisassociateRepositoryResponse.add_member(:repository_association, Shapes::ShapeRef.new(shape: RepositoryAssociation, location_name: "RepositoryAssociation"))
205
+ DisassociateRepositoryResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
190
206
  DisassociateRepositoryResponse.struct_class = Types::DisassociateRepositoryResponse
191
207
 
192
208
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -238,6 +254,12 @@ module Aws::CodeGuruReviewer
238
254
  ListRepositoryAssociationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
239
255
  ListRepositoryAssociationsResponse.struct_class = Types::ListRepositoryAssociationsResponse
240
256
 
257
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AssociationArn, required: true, location: "uri", location_name: "resourceArn"))
258
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
259
+
260
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
261
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
262
+
241
263
  Metrics.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape: MeteredLinesOfCodeCount, location_name: "MeteredLinesOfCodeCount"))
242
264
  Metrics.add_member(:findings_count, Shapes::ShapeRef.new(shape: FindingsCount, location_name: "FindingsCount"))
243
265
  Metrics.struct_class = Types::Metrics
@@ -336,6 +358,17 @@ module Aws::CodeGuruReviewer
336
358
  SourceCodeType.add_member(:repository_head, Shapes::ShapeRef.new(shape: RepositoryHeadSourceCodeType, location_name: "RepositoryHead"))
337
359
  SourceCodeType.struct_class = Types::SourceCodeType
338
360
 
361
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
362
+
363
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
364
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
365
+
366
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AssociationArn, required: true, location: "uri", location_name: "resourceArn"))
367
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
368
+ TagResourceRequest.struct_class = Types::TagResourceRequest
369
+
370
+ TagResourceResponse.struct_class = Types::TagResourceResponse
371
+
339
372
  ThirdPartySourceRepository.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
340
373
  ThirdPartySourceRepository.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
341
374
  ThirdPartySourceRepository.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, required: true, location_name: "Owner"))
@@ -344,6 +377,12 @@ module Aws::CodeGuruReviewer
344
377
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
345
378
  ThrottlingException.struct_class = Types::ThrottlingException
346
379
 
380
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AssociationArn, required: true, location: "uri", location_name: "resourceArn"))
381
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
382
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
383
+
384
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
385
+
347
386
  UserIds.member = Shapes::ShapeRef.new(shape: UserId)
348
387
 
349
388
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -521,6 +560,17 @@ module Aws::CodeGuruReviewer
521
560
  )
522
561
  end)
523
562
 
563
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
564
+ o.name = "ListTagsForResource"
565
+ o.http_method = "GET"
566
+ o.http_request_uri = "/tags/{resourceArn}"
567
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
568
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
569
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
570
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
571
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
572
+ end)
573
+
524
574
  api.add_operation(:put_recommendation_feedback, Seahorse::Model::Operation.new.tap do |o|
525
575
  o.name = "PutRecommendationFeedback"
526
576
  o.http_method = "PUT"
@@ -533,6 +583,28 @@ module Aws::CodeGuruReviewer
533
583
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
534
584
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
535
585
  end)
586
+
587
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
588
+ o.name = "TagResource"
589
+ o.http_method = "POST"
590
+ o.http_request_uri = "/tags/{resourceArn}"
591
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
592
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
593
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
594
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
595
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
596
+ end)
597
+
598
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
599
+ o.name = "UntagResource"
600
+ o.http_method = "DELETE"
601
+ o.http_request_uri = "/tags/{resourceArn}"
602
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
603
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
604
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
605
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
606
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
607
+ end)
536
608
  end
537
609
 
538
610
  end
@@ -43,6 +43,9 @@ module Aws::CodeGuruReviewer
43
43
  # },
44
44
  # },
45
45
  # client_request_token: "ClientRequestToken",
46
+ # tags: {
47
+ # "TagKey" => "TagValue",
48
+ # },
46
49
  # }
47
50
  #
48
51
  # @!attribute [rw] repository
@@ -58,11 +61,25 @@ module Aws::CodeGuruReviewer
58
61
  # not need to pass this option.
59
62
  # @return [String]
60
63
  #
64
+ # @!attribute [rw] tags
65
+ # An array of key-value pairs used to tag an associated repository. A
66
+ # tag is a custom attribute label with two parts:
67
+ #
68
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`,
69
+ # or `Secret`). Tag keys are case sensitive.
70
+ #
71
+ # * An optional field known as a *tag value* (for example,
72
+ # `111122223333`, `Production`, or a team name). Omitting the tag
73
+ # value is the same as using an empty string. Like tag keys, tag
74
+ # values are case sensitive.
75
+ # @return [Hash<String,String>]
76
+ #
61
77
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepositoryRequest AWS API Documentation
62
78
  #
63
79
  class AssociateRepositoryRequest < Struct.new(
64
80
  :repository,
65
- :client_request_token)
81
+ :client_request_token,
82
+ :tags)
66
83
  SENSITIVE = []
67
84
  include Aws::Structure
68
85
  end
@@ -71,10 +88,24 @@ module Aws::CodeGuruReviewer
71
88
  # Information about the repository association.
72
89
  # @return [Types::RepositoryAssociation]
73
90
  #
91
+ # @!attribute [rw] tags
92
+ # An array of key-value pairs used to tag an associated repository. A
93
+ # tag is a custom attribute label with two parts:
94
+ #
95
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`,
96
+ # or `Secret`). Tag keys are case sensitive.
97
+ #
98
+ # * An optional field known as a *tag value* (for example,
99
+ # `111122223333`, `Production`, or a team name). Omitting the tag
100
+ # value is the same as using an empty string. Like tag keys, tag
101
+ # values are case sensitive.
102
+ # @return [Hash<String,String>]
103
+ #
74
104
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepositoryResponse AWS API Documentation
75
105
  #
76
106
  class AssociateRepositoryResponse < Struct.new(
77
- :repository_association)
107
+ :repository_association,
108
+ :tags)
78
109
  SENSITIVE = []
79
110
  include Aws::Structure
80
111
  end
@@ -107,7 +138,8 @@ module Aws::CodeGuruReviewer
107
138
  include Aws::Structure
108
139
  end
109
140
 
110
- # Information about a code review.
141
+ # Information about a code review. A code review belongs to the
142
+ # associated repository that contains the reviewed code.
111
143
  #
112
144
  # @!attribute [rw] name
113
145
  # The name of the code review.
@@ -176,6 +208,17 @@ module Aws::CodeGuruReviewer
176
208
  # The type of the source code for the code review.
177
209
  # @return [Types::SourceCodeType]
178
210
  #
211
+ # @!attribute [rw] association_arn
212
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
213
+ # that contains the reviewed source code. You can retrieve associated
214
+ # repository ARNs by calling [ `ListRepositoryAssociations` ][2].
215
+ #
216
+ #
217
+ #
218
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
219
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
220
+ # @return [String]
221
+ #
179
222
  # @!attribute [rw] metrics
180
223
  # The statistics from the code review.
181
224
  # @return [Types::Metrics]
@@ -195,6 +238,7 @@ module Aws::CodeGuruReviewer
195
238
  :type,
196
239
  :pull_request_id,
197
240
  :source_code_type,
241
+ :association_arn,
198
242
  :metrics)
199
243
  SENSITIVE = []
200
244
  include Aws::Structure
@@ -313,7 +357,7 @@ module Aws::CodeGuruReviewer
313
357
  # @!attribute [rw] repository_analysis
314
358
  # A code review that analyzes all code under a specified branch in an
315
359
  # associated respository. The assocated repository is specified using
316
- # its ARN in [ `CreateCodeReview` ][1]
360
+ # its ARN in [ `CreateCodeReview` ][1].
317
361
  #
318
362
  #
319
363
  #
@@ -372,7 +416,7 @@ module Aws::CodeGuruReviewer
372
416
  #
373
417
  # {
374
418
  # name: "CodeReviewName", # required
375
- # repository_association_arn: "Arn", # required
419
+ # repository_association_arn: "AssociationArn", # required
376
420
  # type: { # required
377
421
  # repository_analysis: { # required
378
422
  # repository_head: { # required
@@ -384,13 +428,14 @@ module Aws::CodeGuruReviewer
384
428
  # }
385
429
  #
386
430
  # @!attribute [rw] name
387
- # The name of the code review. Each code review of the same code
388
- # review type must have a unique name in your AWS account.
431
+ # The name of the code review. The name of each code review in your
432
+ # AWS account must be unique.
389
433
  # @return [String]
390
434
  #
391
435
  # @!attribute [rw] repository_association_arn
392
436
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
393
- # object. You can retrieve this ARN by calling `ListRepositories`.
437
+ # object. You can retrieve this ARN by calling [
438
+ # `ListRepositoryAssociations` ][2].
394
439
  #
395
440
  # A code review can only be created on an associated repository. This
396
441
  # is the ARN of the associated repository.
@@ -398,11 +443,13 @@ module Aws::CodeGuruReviewer
398
443
  #
399
444
  #
400
445
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
446
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
401
447
  # @return [String]
402
448
  #
403
449
  # @!attribute [rw] type
404
450
  # The type of code review to create. This is specified using a [
405
- # `CodeReviewType` ][1] object.
451
+ # `CodeReviewType` ][1] object. You can create a code review only of
452
+ # type `RepositoryAnalysis`.
406
453
  #
407
454
  #
408
455
  #
@@ -430,7 +477,8 @@ module Aws::CodeGuruReviewer
430
477
  end
431
478
 
432
479
  # @!attribute [rw] code_review
433
- # Information about a code review.
480
+ # Information about a code review. A code review belongs to the
481
+ # associated repository that contains the reviewed code.
434
482
  # @return [Types::CodeReview]
435
483
  #
436
484
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CreateCodeReviewResponse AWS API Documentation
@@ -538,16 +586,18 @@ module Aws::CodeGuruReviewer
538
586
  # data as a hash:
539
587
  #
540
588
  # {
541
- # association_arn: "Arn", # required
589
+ # association_arn: "AssociationArn", # required
542
590
  # }
543
591
  #
544
592
  # @!attribute [rw] association_arn
545
593
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
546
- # object. You can retrieve this ARN by calling `ListRepositories`.
594
+ # object. You can retrieve this ARN by calling [
595
+ # `ListRepositoryAssociations` ][2].
547
596
  #
548
597
  #
549
598
  #
550
599
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
600
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
551
601
  # @return [String]
552
602
  #
553
603
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociationRequest AWS API Documentation
@@ -562,10 +612,24 @@ module Aws::CodeGuruReviewer
562
612
  # Information about the repository association.
563
613
  # @return [Types::RepositoryAssociation]
564
614
  #
615
+ # @!attribute [rw] tags
616
+ # An array of key-value pairs used to tag an associated repository. A
617
+ # tag is a custom attribute label with two parts:
618
+ #
619
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`,
620
+ # or `Secret`). Tag keys are case sensitive.
621
+ #
622
+ # * An optional field known as a *tag value* (for example,
623
+ # `111122223333`, `Production`, or a team name). Omitting the tag
624
+ # value is the same as using an empty string. Like tag keys, tag
625
+ # values are case sensitive.
626
+ # @return [Hash<String,String>]
627
+ #
565
628
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociationResponse AWS API Documentation
566
629
  #
567
630
  class DescribeRepositoryAssociationResponse < Struct.new(
568
- :repository_association)
631
+ :repository_association,
632
+ :tags)
569
633
  SENSITIVE = []
570
634
  include Aws::Structure
571
635
  end
@@ -574,16 +638,18 @@ module Aws::CodeGuruReviewer
574
638
  # data as a hash:
575
639
  #
576
640
  # {
577
- # association_arn: "Arn", # required
641
+ # association_arn: "AssociationArn", # required
578
642
  # }
579
643
  #
580
644
  # @!attribute [rw] association_arn
581
645
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
582
- # object. You can retrieve this ARN by calling `ListRepositories`.
646
+ # object. You can retrieve this ARN by calling [
647
+ # `ListRepositoryAssociations` ][2].
583
648
  #
584
649
  #
585
650
  #
586
651
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
652
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
587
653
  # @return [String]
588
654
  #
589
655
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepositoryRequest AWS API Documentation
@@ -598,10 +664,24 @@ module Aws::CodeGuruReviewer
598
664
  # Information about the disassociated repository.
599
665
  # @return [Types::RepositoryAssociation]
600
666
  #
667
+ # @!attribute [rw] tags
668
+ # An array of key-value pairs used to tag an associated repository. A
669
+ # tag is a custom attribute label with two parts:
670
+ #
671
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`,
672
+ # or `Secret`). Tag keys are case sensitive.
673
+ #
674
+ # * An optional field known as a *tag value* (for example,
675
+ # `111122223333`, `Production`, or a team name). Omitting the tag
676
+ # value is the same as using an empty string. Like tag keys, tag
677
+ # values are case sensitive.
678
+ # @return [Hash<String,String>]
679
+ #
601
680
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepositoryResponse AWS API Documentation
602
681
  #
603
682
  class DisassociateRepositoryResponse < Struct.new(
604
- :repository_association)
683
+ :repository_association,
684
+ :tags)
605
685
  SENSITIVE = []
606
686
  include Aws::Structure
607
687
  end
@@ -848,7 +928,7 @@ module Aws::CodeGuruReviewer
848
928
  #
849
929
  # {
850
930
  # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
851
- # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
931
+ # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating, Disassociated
852
932
  # names: ["Name"],
853
933
  # owners: ["Owner"],
854
934
  # max_results: 1,
@@ -886,6 +966,18 @@ module Aws::CodeGuruReviewer
886
966
  #
887
967
  # * **Disassociating**\: CodeGuru Reviewer is removing the
888
968
  # repository's pull request notifications and source code access.
969
+ #
970
+ # * **Disassociated**\: CodeGuru Reviewer successfully disassociated
971
+ # the repository. You can create a new association with this
972
+ # repository if you want to review source code in it later. You can
973
+ # control access to code reviews created in an associated repository
974
+ # with tags after it has been disassociated. For more information,
975
+ # see [Using tags to control access to associated repositories][1]
976
+ # in the *Amazon CodeGuru Reviewer User Guide*.
977
+ #
978
+ #
979
+ #
980
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html
889
981
  # @return [Array<String>]
890
982
  #
891
983
  # @!attribute [rw] names
@@ -961,6 +1053,53 @@ module Aws::CodeGuruReviewer
961
1053
  include Aws::Structure
962
1054
  end
963
1055
 
1056
+ # @note When making an API call, you may pass ListTagsForResourceRequest
1057
+ # data as a hash:
1058
+ #
1059
+ # {
1060
+ # resource_arn: "AssociationArn", # required
1061
+ # }
1062
+ #
1063
+ # @!attribute [rw] resource_arn
1064
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1065
+ # object. You can retrieve this ARN by calling [
1066
+ # `ListRepositoryAssociations` ][2].
1067
+ #
1068
+ #
1069
+ #
1070
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1071
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1072
+ # @return [String]
1073
+ #
1074
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListTagsForResourceRequest AWS API Documentation
1075
+ #
1076
+ class ListTagsForResourceRequest < Struct.new(
1077
+ :resource_arn)
1078
+ SENSITIVE = []
1079
+ include Aws::Structure
1080
+ end
1081
+
1082
+ # @!attribute [rw] tags
1083
+ # An array of key-value pairs used to tag an associated repository. A
1084
+ # tag is a custom attribute label with two parts:
1085
+ #
1086
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`,
1087
+ # or `Secret`). Tag keys are case sensitive.
1088
+ #
1089
+ # * An optional field known as a *tag value* (for example,
1090
+ # `111122223333`, `Production`, or a team name). Omitting the tag
1091
+ # value is the same as using an empty string. Like tag keys, tag
1092
+ # values are case sensitive.
1093
+ # @return [Hash<String,String>]
1094
+ #
1095
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListTagsForResourceResponse AWS API Documentation
1096
+ #
1097
+ class ListTagsForResourceResponse < Struct.new(
1098
+ :tags)
1099
+ SENSITIVE = []
1100
+ include Aws::Structure
1101
+ end
1102
+
964
1103
  # Information about the statistics from the code review.
965
1104
  #
966
1105
  # @!attribute [rw] metered_lines_of_code_count
@@ -1354,6 +1493,18 @@ module Aws::CodeGuruReviewer
1354
1493
  #
1355
1494
  # * **Disassociating**\: CodeGuru Reviewer is removing the
1356
1495
  # repository's pull request notifications and source code access.
1496
+ #
1497
+ # * **Disassociated**\: CodeGuru Reviewer successfully disassociated
1498
+ # the repository. You can create a new association with this
1499
+ # repository if you want to review source code in it later. You can
1500
+ # control access to code reviews created in an associated repository
1501
+ # with tags after it has been disassociated. For more information,
1502
+ # see [Using tags to control access to associated repositories][1]
1503
+ # in the *Amazon CodeGuru Reviewer User Guide*.
1504
+ #
1505
+ #
1506
+ #
1507
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html
1357
1508
  # @return [String]
1358
1509
  #
1359
1510
  # @!attribute [rw] state_reason
@@ -1398,11 +1549,13 @@ module Aws::CodeGuruReviewer
1398
1549
  #
1399
1550
  # @!attribute [rw] association_arn
1400
1551
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1401
- # object. You can retrieve this ARN by calling `ListRepositories`.
1552
+ # object. You can retrieve this ARN by calling [
1553
+ # `ListRepositoryAssociations` ][2].
1402
1554
  #
1403
1555
  #
1404
1556
  #
1405
1557
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1558
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1406
1559
  # @return [String]
1407
1560
  #
1408
1561
  # @!attribute [rw] connection_arn
@@ -1468,6 +1621,18 @@ module Aws::CodeGuruReviewer
1468
1621
  #
1469
1622
  # * **Disassociating**\: CodeGuru Reviewer is removing the
1470
1623
  # repository's pull request notifications and source code access.
1624
+ #
1625
+ # * **Disassociated**\: CodeGuru Reviewer successfully disassociated
1626
+ # the repository. You can create a new association with this
1627
+ # repository if you want to review source code in it later. You can
1628
+ # control access to code reviews created in an associated repository
1629
+ # with tags after it has been disassociated. For more information,
1630
+ # see [Using tags to control access to associated repositories][1]
1631
+ # in the *Amazon CodeGuru Reviewer User Guide*.
1632
+ #
1633
+ #
1634
+ #
1635
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html
1471
1636
  # @return [String]
1472
1637
  #
1473
1638
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RepositoryAssociationSummary AWS API Documentation
@@ -1556,6 +1721,53 @@ module Aws::CodeGuruReviewer
1556
1721
  include Aws::Structure
1557
1722
  end
1558
1723
 
1724
+ # @note When making an API call, you may pass TagResourceRequest
1725
+ # data as a hash:
1726
+ #
1727
+ # {
1728
+ # resource_arn: "AssociationArn", # required
1729
+ # tags: { # required
1730
+ # "TagKey" => "TagValue",
1731
+ # },
1732
+ # }
1733
+ #
1734
+ # @!attribute [rw] resource_arn
1735
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1736
+ # object. You can retrieve this ARN by calling [
1737
+ # `ListRepositoryAssociations` ][2].
1738
+ #
1739
+ #
1740
+ #
1741
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1742
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1743
+ # @return [String]
1744
+ #
1745
+ # @!attribute [rw] tags
1746
+ # An array of key-value pairs used to tag an associated repository. A
1747
+ # tag is a custom attribute label with two parts:
1748
+ #
1749
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`,
1750
+ # or `Secret`). Tag keys are case sensitive.
1751
+ #
1752
+ # * An optional field known as a *tag value* (for example,
1753
+ # `111122223333`, `Production`, or a team name). Omitting the tag
1754
+ # value is the same as using an empty string. Like tag keys, tag
1755
+ # values are case sensitive.
1756
+ # @return [Hash<String,String>]
1757
+ #
1758
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/TagResourceRequest AWS API Documentation
1759
+ #
1760
+ class TagResourceRequest < Struct.new(
1761
+ :resource_arn,
1762
+ :tags)
1763
+ SENSITIVE = []
1764
+ include Aws::Structure
1765
+ end
1766
+
1767
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/TagResourceResponse AWS API Documentation
1768
+ #
1769
+ class TagResourceResponse < Aws::EmptyStructure; end
1770
+
1559
1771
  # Information about a third-party source repository connected to
1560
1772
  # CodeGuru Reviewer.
1561
1773
  #
@@ -1613,6 +1825,43 @@ module Aws::CodeGuruReviewer
1613
1825
  include Aws::Structure
1614
1826
  end
1615
1827
 
1828
+ # @note When making an API call, you may pass UntagResourceRequest
1829
+ # data as a hash:
1830
+ #
1831
+ # {
1832
+ # resource_arn: "AssociationArn", # required
1833
+ # tag_keys: ["TagKey"], # required
1834
+ # }
1835
+ #
1836
+ # @!attribute [rw] resource_arn
1837
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1838
+ # object. You can retrieve this ARN by calling [
1839
+ # `ListRepositoryAssociations` ][2].
1840
+ #
1841
+ #
1842
+ #
1843
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1844
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1845
+ # @return [String]
1846
+ #
1847
+ # @!attribute [rw] tag_keys
1848
+ # A list of the keys for each tag you want to remove from an
1849
+ # associated repository.
1850
+ # @return [Array<String>]
1851
+ #
1852
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/UntagResourceRequest AWS API Documentation
1853
+ #
1854
+ class UntagResourceRequest < Struct.new(
1855
+ :resource_arn,
1856
+ :tag_keys)
1857
+ SENSITIVE = []
1858
+ include Aws::Structure
1859
+ end
1860
+
1861
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/UntagResourceResponse AWS API Documentation
1862
+ #
1863
+ class UntagResourceResponse < Aws::EmptyStructure; end
1864
+
1616
1865
  # The input fails to satisfy the specified constraints.
1617
1866
  #
1618
1867
  # @!attribute [rw] message
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.13.0
4
+ version: 1.14.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: 2020-09-30 00:00:00.000000000 Z
11
+ date: 2020-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core