aws-sdk-codegurureviewer 1.11.0 → 1.16.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: a17597e3cae8c8f99e884e68fce8cc5f282960dc0032046c4b4f71c6bb5bcb48
4
- data.tar.gz: 1a7883959a6263a010d49ad360e2e914ea4e484c1f80ce567797627025609699
3
+ metadata.gz: 88a971acade1d785fa9313eba0a48968c6106dd317591aeb5eebd4a932f07bec
4
+ data.tar.gz: d10921161901a8a98cb619ba0adaf629bfe60ab406a8a71b60af48f26b6a48e2
5
5
  SHA512:
6
- metadata.gz: 77617b34fe72d1fa4c7495c52e5ef3cb96bc708f265d5cf80898248fdf6be87a95ddaf7188c7722926eb28322ab91238321fea87ced67bb79be8ac7dfb12f2be
7
- data.tar.gz: 3d1fca8b60788280361736f86df5288d299d3eb52f98f342e3c869db2c7784affae1f44bc37434e94df39e2667ea64aff31200d98d8ffb47c1abe77724858026
6
+ metadata.gz: 778590f3a52eb90fd94db9ab3033885a77cca44dec6e3b31f6955ace7aaa9e694011c717ec2ee934dd5f08a7c0201fcb2533b7cb5f92e9f923a8ebdc60beb93f
7
+ data.tar.gz: 2e7f3d0f65fd7b0fc9645f76698ab4780afeffcc0cb8d2270813f5b59093c5e445149a664c1cd0083d7a9af602dc11f2545750641942a002857cb85a6e5e307e
data/CHANGELOG.md ADDED
@@ -0,0 +1,93 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.16.0 (2021-03-10)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.15.0 (2021-02-02)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.14.0 (2020-11-20)
15
+ ------------------
16
+
17
+ * Feature - This release supports tagging repository association resources in Amazon CodeGuru Reviewer.
18
+
19
+ 1.13.0 (2020-09-30)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.12.0 (2020-09-15)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.11.0 (2020-09-01)
30
+ ------------------
31
+
32
+ * Feature - Add support for repository analysis based code reviews
33
+
34
+ 1.10.0 (2020-08-25)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.9.0 (2020-06-30)
40
+ ------------------
41
+
42
+ * Feature - Release GitHub Enterprise Server source provider integration
43
+
44
+ 1.8.0 (2020-06-23)
45
+ ------------------
46
+
47
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
48
+
49
+ 1.7.1 (2020-06-11)
50
+ ------------------
51
+
52
+ * Issue - Republish previous version with correct dependency on `aws-sdk-core`.
53
+
54
+ 1.7.0 (2020-06-10)
55
+ ------------------
56
+
57
+ * Issue - This version has been yanked. (#2327).
58
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
59
+
60
+ 1.6.0 (2020-05-28)
61
+ ------------------
62
+
63
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
64
+
65
+ 1.5.0 (2020-05-11)
66
+ ------------------
67
+
68
+ * Feature - Add Bitbucket integration APIs
69
+
70
+ 1.4.0 (2020-05-07)
71
+ ------------------
72
+
73
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
74
+
75
+ 1.3.0 (2020-04-22)
76
+ ------------------
77
+
78
+ * Feature - Add support for code review and recommendation feedback APIs.
79
+
80
+ 1.2.0 (2020-04-07)
81
+ ------------------
82
+
83
+ * Feature - API updates for CodeGuruReviewer
84
+
85
+ 1.1.0 (2020-03-09)
86
+ ------------------
87
+
88
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
89
+
90
+ 1.0.0 (2019-12-03)
91
+ ------------------
92
+
93
+ * Feature - Initial release of `aws-sdk-codegurureviewer`.
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.16.0
@@ -3,10 +3,11 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -47,6 +48,6 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
47
48
  # @!group service
48
49
  module Aws::CodeGuruReviewer
49
50
 
50
- GEM_VERSION = '1.11.0'
51
+ GEM_VERSION = '1.16.0'
51
52
 
52
53
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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.11.0'
1240
+ context[:gem_version] = '1.16.0'
1073
1241
  Seahorse::Client::Request.new(handlers, context)
1074
1242
  end
1075
1243