aws-sdk-codecommit 1.35.0 → 1.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-codecommit.rb +3 -2
- data/lib/aws-sdk-codecommit/client.rb +168 -12
- data/lib/aws-sdk-codecommit/client_api.rb +105 -2
- data/lib/aws-sdk-codecommit/errors.rb +44 -0
- data/lib/aws-sdk-codecommit/types.rb +196 -5
- 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: c8e1063370e1f138244f5661aaad209fb2b950b01516e7c378a67e556287e75b
|
4
|
+
data.tar.gz: 62c7571e8a13a5e8e2419c08184a4e8ba248bb093e40d82a8ec7b96bfa36f0ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ab5a2853cd123755079c03af5fc72ad4beb8315bd3470742e26c86551ed8de0ce6cef400da213878ca61644559e24eeb1fd1dd8c8726203eb0c49a86f9c6e60
|
7
|
+
data.tar.gz: 3b38cd5a8a2c33308ef7c760e27cac6268cb4254fbd64e8753c95b06d25fe9a5982f970013c21aa95d9d11585626679ecfb40e8496a4812bdc7b70cd133154e0
|
data/lib/aws-sdk-codecommit.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-codecommit/customizations'
|
|
44
45
|
#
|
45
46
|
# See {Errors} for more information.
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# @!group service
|
48
49
|
module Aws::CodeCommit
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.40.0'
|
51
52
|
|
52
53
|
end
|
@@ -85,13 +85,28 @@ module Aws::CodeCommit
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::CodeCommit
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -730,7 +745,7 @@ module Aws::CodeCommit
|
|
730
745
|
#
|
731
746
|
#
|
732
747
|
#
|
733
|
-
# [1]: https://docs.aws.amazon.com/
|
748
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
|
734
749
|
#
|
735
750
|
# @option params [String] :approval_rule_template_description
|
736
751
|
# The description of the approval rule template. Consider providing a
|
@@ -1050,7 +1065,7 @@ module Aws::CodeCommit
|
|
1050
1065
|
#
|
1051
1066
|
#
|
1052
1067
|
#
|
1053
|
-
# [1]: https://docs.aws.amazon.com/
|
1068
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
|
1054
1069
|
#
|
1055
1070
|
# @return [Types::CreatePullRequestApprovalRuleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1056
1071
|
#
|
@@ -1359,6 +1374,10 @@ module Aws::CodeCommit
|
|
1359
1374
|
# resp.comment.author_arn #=> String
|
1360
1375
|
# resp.comment.deleted #=> Boolean
|
1361
1376
|
# resp.comment.client_request_token #=> String
|
1377
|
+
# resp.comment.caller_reactions #=> Array
|
1378
|
+
# resp.comment.caller_reactions[0] #=> String
|
1379
|
+
# resp.comment.reaction_counts #=> Hash
|
1380
|
+
# resp.comment.reaction_counts["ReactionValue"] #=> Integer
|
1362
1381
|
#
|
1363
1382
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteCommentContent AWS API Documentation
|
1364
1383
|
#
|
@@ -1892,6 +1911,12 @@ module Aws::CodeCommit
|
|
1892
1911
|
# Returns the content of a comment made on a change, file, or commit in
|
1893
1912
|
# a repository.
|
1894
1913
|
#
|
1914
|
+
# <note markdown="1"> Reaction counts might include numbers from user identities who were
|
1915
|
+
# deleted after the reaction was made. For a count of reactions from
|
1916
|
+
# active identities, use GetCommentReactions.
|
1917
|
+
#
|
1918
|
+
# </note>
|
1919
|
+
#
|
1895
1920
|
# @option params [required, String] :comment_id
|
1896
1921
|
# The unique, system-generated ID of the comment. To get this ID, use
|
1897
1922
|
# GetCommentsForComparedCommit or GetCommentsForPullRequest.
|
@@ -1916,6 +1941,10 @@ module Aws::CodeCommit
|
|
1916
1941
|
# resp.comment.author_arn #=> String
|
1917
1942
|
# resp.comment.deleted #=> Boolean
|
1918
1943
|
# resp.comment.client_request_token #=> String
|
1944
|
+
# resp.comment.caller_reactions #=> Array
|
1945
|
+
# resp.comment.caller_reactions[0] #=> String
|
1946
|
+
# resp.comment.reaction_counts #=> Hash
|
1947
|
+
# resp.comment.reaction_counts["ReactionValue"] #=> Integer
|
1919
1948
|
#
|
1920
1949
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetComment AWS API Documentation
|
1921
1950
|
#
|
@@ -1926,9 +1955,70 @@ module Aws::CodeCommit
|
|
1926
1955
|
req.send_request(options)
|
1927
1956
|
end
|
1928
1957
|
|
1958
|
+
# Returns information about reactions to a specified comment ID.
|
1959
|
+
# Reactions from users who have been deleted will not be included in the
|
1960
|
+
# count.
|
1961
|
+
#
|
1962
|
+
# @option params [required, String] :comment_id
|
1963
|
+
# The ID of the comment for which you want to get reactions information.
|
1964
|
+
#
|
1965
|
+
# @option params [String] :reaction_user_arn
|
1966
|
+
# Optional. The Amazon Resource Name (ARN) of the user or identity for
|
1967
|
+
# which you want to get reaction information.
|
1968
|
+
#
|
1969
|
+
# @option params [String] :next_token
|
1970
|
+
# An enumeration token that, when provided in a request, returns the
|
1971
|
+
# next batch of the results.
|
1972
|
+
#
|
1973
|
+
# @option params [Integer] :max_results
|
1974
|
+
# A non-zero, non-negative integer used to limit the number of returned
|
1975
|
+
# results. The default is the same as the allowed maximum, 1,000.
|
1976
|
+
#
|
1977
|
+
# @return [Types::GetCommentReactionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1978
|
+
#
|
1979
|
+
# * {Types::GetCommentReactionsOutput#reactions_for_comment #reactions_for_comment} => Array<Types::ReactionForComment>
|
1980
|
+
# * {Types::GetCommentReactionsOutput#next_token #next_token} => String
|
1981
|
+
#
|
1982
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1983
|
+
#
|
1984
|
+
# @example Request syntax with placeholder values
|
1985
|
+
#
|
1986
|
+
# resp = client.get_comment_reactions({
|
1987
|
+
# comment_id: "CommentId", # required
|
1988
|
+
# reaction_user_arn: "Arn",
|
1989
|
+
# next_token: "NextToken",
|
1990
|
+
# max_results: 1,
|
1991
|
+
# })
|
1992
|
+
#
|
1993
|
+
# @example Response structure
|
1994
|
+
#
|
1995
|
+
# resp.reactions_for_comment #=> Array
|
1996
|
+
# resp.reactions_for_comment[0].reaction.emoji #=> String
|
1997
|
+
# resp.reactions_for_comment[0].reaction.short_code #=> String
|
1998
|
+
# resp.reactions_for_comment[0].reaction.unicode #=> String
|
1999
|
+
# resp.reactions_for_comment[0].reaction_users #=> Array
|
2000
|
+
# resp.reactions_for_comment[0].reaction_users[0] #=> String
|
2001
|
+
# resp.reactions_for_comment[0].reactions_from_deleted_users_count #=> Integer
|
2002
|
+
# resp.next_token #=> String
|
2003
|
+
#
|
2004
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentReactions AWS API Documentation
|
2005
|
+
#
|
2006
|
+
# @overload get_comment_reactions(params = {})
|
2007
|
+
# @param [Hash] params ({})
|
2008
|
+
def get_comment_reactions(params = {}, options = {})
|
2009
|
+
req = build_request(:get_comment_reactions, params)
|
2010
|
+
req.send_request(options)
|
2011
|
+
end
|
2012
|
+
|
1929
2013
|
# Returns information about comments made on the comparison between two
|
1930
2014
|
# commits.
|
1931
2015
|
#
|
2016
|
+
# <note markdown="1"> Reaction counts might include numbers from user identities who were
|
2017
|
+
# deleted after the reaction was made. For a count of reactions from
|
2018
|
+
# active identities, use GetCommentReactions.
|
2019
|
+
#
|
2020
|
+
# </note>
|
2021
|
+
#
|
1932
2022
|
# @option params [required, String] :repository_name
|
1933
2023
|
# The name of the repository where you want to compare commits.
|
1934
2024
|
#
|
@@ -1985,6 +2075,10 @@ module Aws::CodeCommit
|
|
1985
2075
|
# resp.comments_for_compared_commit_data[0].comments[0].author_arn #=> String
|
1986
2076
|
# resp.comments_for_compared_commit_data[0].comments[0].deleted #=> Boolean
|
1987
2077
|
# resp.comments_for_compared_commit_data[0].comments[0].client_request_token #=> String
|
2078
|
+
# resp.comments_for_compared_commit_data[0].comments[0].caller_reactions #=> Array
|
2079
|
+
# resp.comments_for_compared_commit_data[0].comments[0].caller_reactions[0] #=> String
|
2080
|
+
# resp.comments_for_compared_commit_data[0].comments[0].reaction_counts #=> Hash
|
2081
|
+
# resp.comments_for_compared_commit_data[0].comments[0].reaction_counts["ReactionValue"] #=> Integer
|
1988
2082
|
# resp.next_token #=> String
|
1989
2083
|
#
|
1990
2084
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForComparedCommit AWS API Documentation
|
@@ -1998,6 +2092,12 @@ module Aws::CodeCommit
|
|
1998
2092
|
|
1999
2093
|
# Returns comments made on a pull request.
|
2000
2094
|
#
|
2095
|
+
# <note markdown="1"> Reaction counts might include numbers from user identities who were
|
2096
|
+
# deleted after the reaction was made. For a count of reactions from
|
2097
|
+
# active identities, use GetCommentReactions.
|
2098
|
+
#
|
2099
|
+
# </note>
|
2100
|
+
#
|
2001
2101
|
# @option params [required, String] :pull_request_id
|
2002
2102
|
# The system-generated ID of the pull request. To get this ID, use
|
2003
2103
|
# ListPullRequests.
|
@@ -2061,6 +2161,10 @@ module Aws::CodeCommit
|
|
2061
2161
|
# resp.comments_for_pull_request_data[0].comments[0].author_arn #=> String
|
2062
2162
|
# resp.comments_for_pull_request_data[0].comments[0].deleted #=> Boolean
|
2063
2163
|
# resp.comments_for_pull_request_data[0].comments[0].client_request_token #=> String
|
2164
|
+
# resp.comments_for_pull_request_data[0].comments[0].caller_reactions #=> Array
|
2165
|
+
# resp.comments_for_pull_request_data[0].comments[0].caller_reactions[0] #=> String
|
2166
|
+
# resp.comments_for_pull_request_data[0].comments[0].reaction_counts #=> Hash
|
2167
|
+
# resp.comments_for_pull_request_data[0].comments[0].reaction_counts["ReactionValue"] #=> Integer
|
2064
2168
|
# resp.next_token #=> String
|
2065
2169
|
#
|
2066
2170
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForPullRequest AWS API Documentation
|
@@ -3767,6 +3871,10 @@ module Aws::CodeCommit
|
|
3767
3871
|
# resp.comment.author_arn #=> String
|
3768
3872
|
# resp.comment.deleted #=> Boolean
|
3769
3873
|
# resp.comment.client_request_token #=> String
|
3874
|
+
# resp.comment.caller_reactions #=> Array
|
3875
|
+
# resp.comment.caller_reactions[0] #=> String
|
3876
|
+
# resp.comment.reaction_counts #=> Hash
|
3877
|
+
# resp.comment.reaction_counts["ReactionValue"] #=> Integer
|
3770
3878
|
#
|
3771
3879
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForComparedCommit AWS API Documentation
|
3772
3880
|
#
|
@@ -3861,6 +3969,10 @@ module Aws::CodeCommit
|
|
3861
3969
|
# resp.comment.author_arn #=> String
|
3862
3970
|
# resp.comment.deleted #=> Boolean
|
3863
3971
|
# resp.comment.client_request_token #=> String
|
3972
|
+
# resp.comment.caller_reactions #=> Array
|
3973
|
+
# resp.comment.caller_reactions[0] #=> String
|
3974
|
+
# resp.comment.reaction_counts #=> Hash
|
3975
|
+
# resp.comment.reaction_counts["ReactionValue"] #=> Integer
|
3864
3976
|
#
|
3865
3977
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForPullRequest AWS API Documentation
|
3866
3978
|
#
|
@@ -3914,6 +4026,10 @@ module Aws::CodeCommit
|
|
3914
4026
|
# resp.comment.author_arn #=> String
|
3915
4027
|
# resp.comment.deleted #=> Boolean
|
3916
4028
|
# resp.comment.client_request_token #=> String
|
4029
|
+
# resp.comment.caller_reactions #=> Array
|
4030
|
+
# resp.comment.caller_reactions[0] #=> String
|
4031
|
+
# resp.comment.reaction_counts #=> Hash
|
4032
|
+
# resp.comment.reaction_counts["ReactionValue"] #=> Integer
|
3917
4033
|
#
|
3918
4034
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentReply AWS API Documentation
|
3919
4035
|
#
|
@@ -3924,6 +4040,42 @@ module Aws::CodeCommit
|
|
3924
4040
|
req.send_request(options)
|
3925
4041
|
end
|
3926
4042
|
|
4043
|
+
# Adds or updates a reaction to a specified comment for the user whose
|
4044
|
+
# identity is used to make the request. You can only add or update a
|
4045
|
+
# reaction for yourself. You cannot add, modify, or delete a reaction
|
4046
|
+
# for another user.
|
4047
|
+
#
|
4048
|
+
# @option params [required, String] :comment_id
|
4049
|
+
# The ID of the comment to which you want to add or update a reaction.
|
4050
|
+
#
|
4051
|
+
# @option params [required, String] :reaction_value
|
4052
|
+
# The emoji reaction you want to add or update. To remove a reaction,
|
4053
|
+
# provide a value of blank or null. You can also provide the value of
|
4054
|
+
# none. For information about emoji reaction values supported in AWS
|
4055
|
+
# CodeCommit, see the [AWS CodeCommit User Guide][1].
|
4056
|
+
#
|
4057
|
+
#
|
4058
|
+
#
|
4059
|
+
# [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table
|
4060
|
+
#
|
4061
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4062
|
+
#
|
4063
|
+
# @example Request syntax with placeholder values
|
4064
|
+
#
|
4065
|
+
# resp = client.put_comment_reaction({
|
4066
|
+
# comment_id: "CommentId", # required
|
4067
|
+
# reaction_value: "ReactionValue", # required
|
4068
|
+
# })
|
4069
|
+
#
|
4070
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutCommentReaction AWS API Documentation
|
4071
|
+
#
|
4072
|
+
# @overload put_comment_reaction(params = {})
|
4073
|
+
# @param [Hash] params ({})
|
4074
|
+
def put_comment_reaction(params = {}, options = {})
|
4075
|
+
req = build_request(:put_comment_reaction, params)
|
4076
|
+
req.send_request(options)
|
4077
|
+
end
|
4078
|
+
|
3927
4079
|
# Adds or updates a file in a branch in an AWS CodeCommit repository,
|
3928
4080
|
# and generates a commit for the addition in the specified branch.
|
3929
4081
|
#
|
@@ -3934,7 +4086,7 @@ module Aws::CodeCommit
|
|
3934
4086
|
# The name of the branch where you want to add or update the file. If
|
3935
4087
|
# this is an empty repository, this branch is created.
|
3936
4088
|
#
|
3937
|
-
# @option params [required, String,
|
4089
|
+
# @option params [required, String, StringIO, File] :file_content
|
3938
4090
|
# The content of the file, in binary object format.
|
3939
4091
|
#
|
3940
4092
|
# @option params [required, String] :file_path
|
@@ -4322,6 +4474,10 @@ module Aws::CodeCommit
|
|
4322
4474
|
# resp.comment.author_arn #=> String
|
4323
4475
|
# resp.comment.deleted #=> Boolean
|
4324
4476
|
# resp.comment.client_request_token #=> String
|
4477
|
+
# resp.comment.caller_reactions #=> Array
|
4478
|
+
# resp.comment.caller_reactions[0] #=> String
|
4479
|
+
# resp.comment.reaction_counts #=> Hash
|
4480
|
+
# resp.comment.reaction_counts["ReactionValue"] #=> Integer
|
4325
4481
|
#
|
4326
4482
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateComment AWS API Documentation
|
4327
4483
|
#
|
@@ -4414,7 +4570,7 @@ module Aws::CodeCommit
|
|
4414
4570
|
#
|
4415
4571
|
#
|
4416
4572
|
#
|
4417
|
-
# [1]: https://docs.aws.amazon.com/
|
4573
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
|
4418
4574
|
#
|
4419
4575
|
# @return [Types::UpdatePullRequestApprovalRuleContentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4420
4576
|
#
|
@@ -4756,7 +4912,7 @@ module Aws::CodeCommit
|
|
4756
4912
|
params: params,
|
4757
4913
|
config: config)
|
4758
4914
|
context[:gem_name] = 'aws-sdk-codecommit'
|
4759
|
-
context[:gem_version] = '1.
|
4915
|
+
context[:gem_version] = '1.40.0'
|
4760
4916
|
Seahorse::Client::Request.new(handlers, context)
|
4761
4917
|
end
|
4762
4918
|
|
@@ -78,6 +78,7 @@ module Aws::CodeCommit
|
|
78
78
|
BranchNameIsTagNameException = Shapes::StructureShape.new(name: 'BranchNameIsTagNameException')
|
79
79
|
BranchNameList = Shapes::ListShape.new(name: 'BranchNameList')
|
80
80
|
BranchNameRequiredException = Shapes::StructureShape.new(name: 'BranchNameRequiredException')
|
81
|
+
CallerReactions = Shapes::ListShape.new(name: 'CallerReactions')
|
81
82
|
CannotDeleteApprovalRuleFromTemplateException = Shapes::StructureShape.new(name: 'CannotDeleteApprovalRuleFromTemplateException')
|
82
83
|
CannotModifyApprovalRuleFromTemplateException = Shapes::StructureShape.new(name: 'CannotModifyApprovalRuleFromTemplateException')
|
83
84
|
CapitalBoolean = Shapes::BooleanShape.new(name: 'CapitalBoolean')
|
@@ -120,6 +121,7 @@ module Aws::CodeCommit
|
|
120
121
|
ConflictResolutionStrategyTypeEnum = Shapes::StringShape.new(name: 'ConflictResolutionStrategyTypeEnum')
|
121
122
|
Conflicts = Shapes::ListShape.new(name: 'Conflicts')
|
122
123
|
Content = Shapes::StringShape.new(name: 'Content')
|
124
|
+
Count = Shapes::IntegerShape.new(name: 'Count')
|
123
125
|
CreateApprovalRuleTemplateInput = Shapes::StructureShape.new(name: 'CreateApprovalRuleTemplateInput')
|
124
126
|
CreateApprovalRuleTemplateOutput = Shapes::StructureShape.new(name: 'CreateApprovalRuleTemplateOutput')
|
125
127
|
CreateBranchInput = Shapes::StructureShape.new(name: 'CreateBranchInput')
|
@@ -203,6 +205,8 @@ module Aws::CodeCommit
|
|
203
205
|
GetBranchOutput = Shapes::StructureShape.new(name: 'GetBranchOutput')
|
204
206
|
GetCommentInput = Shapes::StructureShape.new(name: 'GetCommentInput')
|
205
207
|
GetCommentOutput = Shapes::StructureShape.new(name: 'GetCommentOutput')
|
208
|
+
GetCommentReactionsInput = Shapes::StructureShape.new(name: 'GetCommentReactionsInput')
|
209
|
+
GetCommentReactionsOutput = Shapes::StructureShape.new(name: 'GetCommentReactionsOutput')
|
206
210
|
GetCommentsForComparedCommitInput = Shapes::StructureShape.new(name: 'GetCommentsForComparedCommitInput')
|
207
211
|
GetCommentsForComparedCommitOutput = Shapes::StructureShape.new(name: 'GetCommentsForComparedCommitOutput')
|
208
212
|
GetCommentsForPullRequestInput = Shapes::StructureShape.new(name: 'GetCommentsForPullRequestInput')
|
@@ -270,6 +274,8 @@ module Aws::CodeCommit
|
|
270
274
|
InvalidPullRequestIdException = Shapes::StructureShape.new(name: 'InvalidPullRequestIdException')
|
271
275
|
InvalidPullRequestStatusException = Shapes::StructureShape.new(name: 'InvalidPullRequestStatusException')
|
272
276
|
InvalidPullRequestStatusUpdateException = Shapes::StructureShape.new(name: 'InvalidPullRequestStatusUpdateException')
|
277
|
+
InvalidReactionUserArnException = Shapes::StructureShape.new(name: 'InvalidReactionUserArnException')
|
278
|
+
InvalidReactionValueException = Shapes::StructureShape.new(name: 'InvalidReactionValueException')
|
273
279
|
InvalidReferenceNameException = Shapes::StructureShape.new(name: 'InvalidReferenceNameException')
|
274
280
|
InvalidRelativeFileVersionEnumException = Shapes::StructureShape.new(name: 'InvalidRelativeFileVersionEnumException')
|
275
281
|
InvalidReplacementContentException = Shapes::StructureShape.new(name: 'InvalidReplacementContentException')
|
@@ -409,6 +415,7 @@ module Aws::CodeCommit
|
|
409
415
|
PullRequestStatusRequiredException = Shapes::StructureShape.new(name: 'PullRequestStatusRequiredException')
|
410
416
|
PullRequestTarget = Shapes::StructureShape.new(name: 'PullRequestTarget')
|
411
417
|
PullRequestTargetList = Shapes::ListShape.new(name: 'PullRequestTargetList')
|
418
|
+
PutCommentReactionInput = Shapes::StructureShape.new(name: 'PutCommentReactionInput')
|
412
419
|
PutFileEntries = Shapes::ListShape.new(name: 'PutFileEntries')
|
413
420
|
PutFileEntry = Shapes::StructureShape.new(name: 'PutFileEntry')
|
414
421
|
PutFileEntryConflictException = Shapes::StructureShape.new(name: 'PutFileEntryConflictException')
|
@@ -416,6 +423,17 @@ module Aws::CodeCommit
|
|
416
423
|
PutFileOutput = Shapes::StructureShape.new(name: 'PutFileOutput')
|
417
424
|
PutRepositoryTriggersInput = Shapes::StructureShape.new(name: 'PutRepositoryTriggersInput')
|
418
425
|
PutRepositoryTriggersOutput = Shapes::StructureShape.new(name: 'PutRepositoryTriggersOutput')
|
426
|
+
ReactionCountsMap = Shapes::MapShape.new(name: 'ReactionCountsMap')
|
427
|
+
ReactionEmoji = Shapes::StringShape.new(name: 'ReactionEmoji')
|
428
|
+
ReactionForComment = Shapes::StructureShape.new(name: 'ReactionForComment')
|
429
|
+
ReactionLimitExceededException = Shapes::StructureShape.new(name: 'ReactionLimitExceededException')
|
430
|
+
ReactionShortCode = Shapes::StringShape.new(name: 'ReactionShortCode')
|
431
|
+
ReactionUnicode = Shapes::StringShape.new(name: 'ReactionUnicode')
|
432
|
+
ReactionUsersList = Shapes::ListShape.new(name: 'ReactionUsersList')
|
433
|
+
ReactionValue = Shapes::StringShape.new(name: 'ReactionValue')
|
434
|
+
ReactionValueFormats = Shapes::StructureShape.new(name: 'ReactionValueFormats')
|
435
|
+
ReactionValueRequiredException = Shapes::StructureShape.new(name: 'ReactionValueRequiredException')
|
436
|
+
ReactionsForCommentList = Shapes::ListShape.new(name: 'ReactionsForCommentList')
|
419
437
|
ReferenceDoesNotExistException = Shapes::StructureShape.new(name: 'ReferenceDoesNotExistException')
|
420
438
|
ReferenceName = Shapes::StringShape.new(name: 'ReferenceName')
|
421
439
|
ReferenceNameRequiredException = Shapes::StructureShape.new(name: 'ReferenceNameRequiredException')
|
@@ -698,6 +716,8 @@ module Aws::CodeCommit
|
|
698
716
|
|
699
717
|
BranchNameRequiredException.struct_class = Types::BranchNameRequiredException
|
700
718
|
|
719
|
+
CallerReactions.member = Shapes::ShapeRef.new(shape: ReactionValue)
|
720
|
+
|
701
721
|
CannotDeleteApprovalRuleFromTemplateException.struct_class = Types::CannotDeleteApprovalRuleFromTemplateException
|
702
722
|
|
703
723
|
CannotModifyApprovalRuleFromTemplateException.struct_class = Types::CannotModifyApprovalRuleFromTemplateException
|
@@ -712,6 +732,8 @@ module Aws::CodeCommit
|
|
712
732
|
Comment.add_member(:author_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "authorArn"))
|
713
733
|
Comment.add_member(:deleted, Shapes::ShapeRef.new(shape: IsCommentDeleted, location_name: "deleted"))
|
714
734
|
Comment.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "clientRequestToken"))
|
735
|
+
Comment.add_member(:caller_reactions, Shapes::ShapeRef.new(shape: CallerReactions, location_name: "callerReactions"))
|
736
|
+
Comment.add_member(:reaction_counts, Shapes::ShapeRef.new(shape: ReactionCountsMap, location_name: "reactionCounts"))
|
715
737
|
Comment.struct_class = Types::Comment
|
716
738
|
|
717
739
|
CommentContentRequiredException.struct_class = Types::CommentContentRequiredException
|
@@ -1082,6 +1104,16 @@ module Aws::CodeCommit
|
|
1082
1104
|
GetCommentOutput.add_member(:comment, Shapes::ShapeRef.new(shape: Comment, location_name: "comment"))
|
1083
1105
|
GetCommentOutput.struct_class = Types::GetCommentOutput
|
1084
1106
|
|
1107
|
+
GetCommentReactionsInput.add_member(:comment_id, Shapes::ShapeRef.new(shape: CommentId, required: true, location_name: "commentId"))
|
1108
|
+
GetCommentReactionsInput.add_member(:reaction_user_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "reactionUserArn"))
|
1109
|
+
GetCommentReactionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
1110
|
+
GetCommentReactionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
|
1111
|
+
GetCommentReactionsInput.struct_class = Types::GetCommentReactionsInput
|
1112
|
+
|
1113
|
+
GetCommentReactionsOutput.add_member(:reactions_for_comment, Shapes::ShapeRef.new(shape: ReactionsForCommentList, required: true, location_name: "reactionsForComment"))
|
1114
|
+
GetCommentReactionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
1115
|
+
GetCommentReactionsOutput.struct_class = Types::GetCommentReactionsOutput
|
1116
|
+
|
1085
1117
|
GetCommentsForComparedCommitInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
1086
1118
|
GetCommentsForComparedCommitInput.add_member(:before_commit_id, Shapes::ShapeRef.new(shape: CommitId, location_name: "beforeCommitId"))
|
1087
1119
|
GetCommentsForComparedCommitInput.add_member(:after_commit_id, Shapes::ShapeRef.new(shape: CommitId, required: true, location_name: "afterCommitId"))
|
@@ -1306,6 +1338,10 @@ module Aws::CodeCommit
|
|
1306
1338
|
|
1307
1339
|
InvalidPullRequestStatusUpdateException.struct_class = Types::InvalidPullRequestStatusUpdateException
|
1308
1340
|
|
1341
|
+
InvalidReactionUserArnException.struct_class = Types::InvalidReactionUserArnException
|
1342
|
+
|
1343
|
+
InvalidReactionValueException.struct_class = Types::InvalidReactionValueException
|
1344
|
+
|
1309
1345
|
InvalidReferenceNameException.struct_class = Types::InvalidReferenceNameException
|
1310
1346
|
|
1311
1347
|
InvalidRelativeFileVersionEnumException.struct_class = Types::InvalidRelativeFileVersionEnumException
|
@@ -1716,6 +1752,10 @@ module Aws::CodeCommit
|
|
1716
1752
|
|
1717
1753
|
PullRequestTargetList.member = Shapes::ShapeRef.new(shape: PullRequestTarget)
|
1718
1754
|
|
1755
|
+
PutCommentReactionInput.add_member(:comment_id, Shapes::ShapeRef.new(shape: CommentId, required: true, location_name: "commentId"))
|
1756
|
+
PutCommentReactionInput.add_member(:reaction_value, Shapes::ShapeRef.new(shape: ReactionValue, required: true, location_name: "reactionValue"))
|
1757
|
+
PutCommentReactionInput.struct_class = Types::PutCommentReactionInput
|
1758
|
+
|
1719
1759
|
PutFileEntries.member = Shapes::ShapeRef.new(shape: PutFileEntry)
|
1720
1760
|
|
1721
1761
|
PutFileEntry.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
|
@@ -1749,6 +1789,27 @@ module Aws::CodeCommit
|
|
1749
1789
|
PutRepositoryTriggersOutput.add_member(:configuration_id, Shapes::ShapeRef.new(shape: RepositoryTriggersConfigurationId, location_name: "configurationId"))
|
1750
1790
|
PutRepositoryTriggersOutput.struct_class = Types::PutRepositoryTriggersOutput
|
1751
1791
|
|
1792
|
+
ReactionCountsMap.key = Shapes::ShapeRef.new(shape: ReactionValue)
|
1793
|
+
ReactionCountsMap.value = Shapes::ShapeRef.new(shape: Count)
|
1794
|
+
|
1795
|
+
ReactionForComment.add_member(:reaction, Shapes::ShapeRef.new(shape: ReactionValueFormats, location_name: "reaction"))
|
1796
|
+
ReactionForComment.add_member(:reaction_users, Shapes::ShapeRef.new(shape: ReactionUsersList, location_name: "reactionUsers"))
|
1797
|
+
ReactionForComment.add_member(:reactions_from_deleted_users_count, Shapes::ShapeRef.new(shape: Count, location_name: "reactionsFromDeletedUsersCount"))
|
1798
|
+
ReactionForComment.struct_class = Types::ReactionForComment
|
1799
|
+
|
1800
|
+
ReactionLimitExceededException.struct_class = Types::ReactionLimitExceededException
|
1801
|
+
|
1802
|
+
ReactionUsersList.member = Shapes::ShapeRef.new(shape: Arn)
|
1803
|
+
|
1804
|
+
ReactionValueFormats.add_member(:emoji, Shapes::ShapeRef.new(shape: ReactionEmoji, location_name: "emoji"))
|
1805
|
+
ReactionValueFormats.add_member(:short_code, Shapes::ShapeRef.new(shape: ReactionShortCode, location_name: "shortCode"))
|
1806
|
+
ReactionValueFormats.add_member(:unicode, Shapes::ShapeRef.new(shape: ReactionUnicode, location_name: "unicode"))
|
1807
|
+
ReactionValueFormats.struct_class = Types::ReactionValueFormats
|
1808
|
+
|
1809
|
+
ReactionValueRequiredException.struct_class = Types::ReactionValueRequiredException
|
1810
|
+
|
1811
|
+
ReactionsForCommentList.member = Shapes::ShapeRef.new(shape: ReactionForComment)
|
1812
|
+
|
1752
1813
|
ReferenceDoesNotExistException.struct_class = Types::ReferenceDoesNotExistException
|
1753
1814
|
|
1754
1815
|
ReferenceNameRequiredException.struct_class = Types::ReferenceNameRequiredException
|
@@ -2609,9 +2670,35 @@ module Aws::CodeCommit
|
|
2609
2670
|
o.input = Shapes::ShapeRef.new(shape: GetCommentInput)
|
2610
2671
|
o.output = Shapes::ShapeRef.new(shape: GetCommentOutput)
|
2611
2672
|
o.errors << Shapes::ShapeRef.new(shape: CommentDoesNotExistException)
|
2673
|
+
o.errors << Shapes::ShapeRef.new(shape: CommentDeletedException)
|
2674
|
+
o.errors << Shapes::ShapeRef.new(shape: CommentIdRequiredException)
|
2675
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidCommentIdException)
|
2676
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
|
2677
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
|
2678
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
2679
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
|
2680
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
2681
|
+
end)
|
2682
|
+
|
2683
|
+
api.add_operation(:get_comment_reactions, Seahorse::Model::Operation.new.tap do |o|
|
2684
|
+
o.name = "GetCommentReactions"
|
2685
|
+
o.http_method = "POST"
|
2686
|
+
o.http_request_uri = "/"
|
2687
|
+
o.input = Shapes::ShapeRef.new(shape: GetCommentReactionsInput)
|
2688
|
+
o.output = Shapes::ShapeRef.new(shape: GetCommentReactionsOutput)
|
2689
|
+
o.errors << Shapes::ShapeRef.new(shape: CommentDoesNotExistException)
|
2612
2690
|
o.errors << Shapes::ShapeRef.new(shape: CommentIdRequiredException)
|
2613
2691
|
o.errors << Shapes::ShapeRef.new(shape: InvalidCommentIdException)
|
2692
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidReactionUserArnException)
|
2693
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidMaxResultsException)
|
2694
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidContinuationTokenException)
|
2614
2695
|
o.errors << Shapes::ShapeRef.new(shape: CommentDeletedException)
|
2696
|
+
o[:pager] = Aws::Pager.new(
|
2697
|
+
limit_key: "max_results",
|
2698
|
+
tokens: {
|
2699
|
+
"next_token" => "next_token"
|
2700
|
+
}
|
2701
|
+
)
|
2615
2702
|
end)
|
2616
2703
|
|
2617
2704
|
api.add_operation(:get_comments_for_compared_commit, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3353,15 +3440,16 @@ module Aws::CodeCommit
|
|
3353
3440
|
o.errors << Shapes::ShapeRef.new(shape: InvalidFilePositionException)
|
3354
3441
|
o.errors << Shapes::ShapeRef.new(shape: CommitIdRequiredException)
|
3355
3442
|
o.errors << Shapes::ShapeRef.new(shape: InvalidCommitIdException)
|
3443
|
+
o.errors << Shapes::ShapeRef.new(shape: BeforeCommitIdAndAfterCommitIdAreSameException)
|
3356
3444
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
|
3357
3445
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
|
3358
3446
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
3359
3447
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
|
3360
3448
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
3361
|
-
o.errors << Shapes::ShapeRef.new(shape: BeforeCommitIdAndAfterCommitIdAreSameException)
|
3362
3449
|
o.errors << Shapes::ShapeRef.new(shape: CommitDoesNotExistException)
|
3363
3450
|
o.errors << Shapes::ShapeRef.new(shape: InvalidPathException)
|
3364
3451
|
o.errors << Shapes::ShapeRef.new(shape: PathDoesNotExistException)
|
3452
|
+
o.errors << Shapes::ShapeRef.new(shape: PathRequiredException)
|
3365
3453
|
end)
|
3366
3454
|
|
3367
3455
|
api.add_operation(:post_comment_for_pull_request, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3388,6 +3476,7 @@ module Aws::CodeCommit
|
|
3388
3476
|
o.errors << Shapes::ShapeRef.new(shape: InvalidFilePositionException)
|
3389
3477
|
o.errors << Shapes::ShapeRef.new(shape: CommitIdRequiredException)
|
3390
3478
|
o.errors << Shapes::ShapeRef.new(shape: InvalidCommitIdException)
|
3479
|
+
o.errors << Shapes::ShapeRef.new(shape: BeforeCommitIdAndAfterCommitIdAreSameException)
|
3391
3480
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
|
3392
3481
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
|
3393
3482
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
@@ -3397,7 +3486,6 @@ module Aws::CodeCommit
|
|
3397
3486
|
o.errors << Shapes::ShapeRef.new(shape: InvalidPathException)
|
3398
3487
|
o.errors << Shapes::ShapeRef.new(shape: PathDoesNotExistException)
|
3399
3488
|
o.errors << Shapes::ShapeRef.new(shape: PathRequiredException)
|
3400
|
-
o.errors << Shapes::ShapeRef.new(shape: BeforeCommitIdAndAfterCommitIdAreSameException)
|
3401
3489
|
end)
|
3402
3490
|
|
3403
3491
|
api.add_operation(:post_comment_reply, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3416,6 +3504,21 @@ module Aws::CodeCommit
|
|
3416
3504
|
o.errors << Shapes::ShapeRef.new(shape: InvalidCommentIdException)
|
3417
3505
|
end)
|
3418
3506
|
|
3507
|
+
api.add_operation(:put_comment_reaction, Seahorse::Model::Operation.new.tap do |o|
|
3508
|
+
o.name = "PutCommentReaction"
|
3509
|
+
o.http_method = "POST"
|
3510
|
+
o.http_request_uri = "/"
|
3511
|
+
o.input = Shapes::ShapeRef.new(shape: PutCommentReactionInput)
|
3512
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
3513
|
+
o.errors << Shapes::ShapeRef.new(shape: CommentDoesNotExistException)
|
3514
|
+
o.errors << Shapes::ShapeRef.new(shape: CommentIdRequiredException)
|
3515
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidCommentIdException)
|
3516
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidReactionValueException)
|
3517
|
+
o.errors << Shapes::ShapeRef.new(shape: ReactionValueRequiredException)
|
3518
|
+
o.errors << Shapes::ShapeRef.new(shape: ReactionLimitExceededException)
|
3519
|
+
o.errors << Shapes::ShapeRef.new(shape: CommentDeletedException)
|
3520
|
+
end)
|
3521
|
+
|
3419
3522
|
api.add_operation(:put_file, Seahorse::Model::Operation.new.tap do |o|
|
3420
3523
|
o.name = "PutFile"
|
3421
3524
|
o.http_method = "POST"
|
@@ -119,6 +119,8 @@ module Aws::CodeCommit
|
|
119
119
|
# * {InvalidPullRequestIdException}
|
120
120
|
# * {InvalidPullRequestStatusException}
|
121
121
|
# * {InvalidPullRequestStatusUpdateException}
|
122
|
+
# * {InvalidReactionUserArnException}
|
123
|
+
# * {InvalidReactionValueException}
|
122
124
|
# * {InvalidReferenceNameException}
|
123
125
|
# * {InvalidRelativeFileVersionEnumException}
|
124
126
|
# * {InvalidReplacementContentException}
|
@@ -175,6 +177,8 @@ module Aws::CodeCommit
|
|
175
177
|
# * {PullRequestIdRequiredException}
|
176
178
|
# * {PullRequestStatusRequiredException}
|
177
179
|
# * {PutFileEntryConflictException}
|
180
|
+
# * {ReactionLimitExceededException}
|
181
|
+
# * {ReactionValueRequiredException}
|
178
182
|
# * {ReferenceDoesNotExistException}
|
179
183
|
# * {ReferenceNameRequiredException}
|
180
184
|
# * {ReferenceTypeNotSupportedException}
|
@@ -1135,6 +1139,26 @@ module Aws::CodeCommit
|
|
1135
1139
|
end
|
1136
1140
|
end
|
1137
1141
|
|
1142
|
+
class InvalidReactionUserArnException < ServiceError
|
1143
|
+
|
1144
|
+
# @param [Seahorse::Client::RequestContext] context
|
1145
|
+
# @param [String] message
|
1146
|
+
# @param [Aws::CodeCommit::Types::InvalidReactionUserArnException] data
|
1147
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
1148
|
+
super(context, message, data)
|
1149
|
+
end
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
class InvalidReactionValueException < ServiceError
|
1153
|
+
|
1154
|
+
# @param [Seahorse::Client::RequestContext] context
|
1155
|
+
# @param [String] message
|
1156
|
+
# @param [Aws::CodeCommit::Types::InvalidReactionValueException] data
|
1157
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
1158
|
+
super(context, message, data)
|
1159
|
+
end
|
1160
|
+
end
|
1161
|
+
|
1138
1162
|
class InvalidReferenceNameException < ServiceError
|
1139
1163
|
|
1140
1164
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -1695,6 +1719,26 @@ module Aws::CodeCommit
|
|
1695
1719
|
end
|
1696
1720
|
end
|
1697
1721
|
|
1722
|
+
class ReactionLimitExceededException < ServiceError
|
1723
|
+
|
1724
|
+
# @param [Seahorse::Client::RequestContext] context
|
1725
|
+
# @param [String] message
|
1726
|
+
# @param [Aws::CodeCommit::Types::ReactionLimitExceededException] data
|
1727
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
1728
|
+
super(context, message, data)
|
1729
|
+
end
|
1730
|
+
end
|
1731
|
+
|
1732
|
+
class ReactionValueRequiredException < ServiceError
|
1733
|
+
|
1734
|
+
# @param [Seahorse::Client::RequestContext] context
|
1735
|
+
# @param [String] message
|
1736
|
+
# @param [Aws::CodeCommit::Types::ReactionValueRequiredException] data
|
1737
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
1738
|
+
super(context, message, data)
|
1739
|
+
end
|
1740
|
+
end
|
1741
|
+
|
1698
1742
|
class ReferenceDoesNotExistException < ServiceError
|
1699
1743
|
|
1700
1744
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -821,7 +821,9 @@ module Aws::CodeCommit
|
|
821
821
|
include Aws::Structure
|
822
822
|
end
|
823
823
|
|
824
|
-
#
|
824
|
+
# Cannot create the branch with the specified name because the commit
|
825
|
+
# conflicts with an existing branch with the same name. Branch names
|
826
|
+
# must be unique.
|
825
827
|
#
|
826
828
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BranchNameExistsException AWS API Documentation
|
827
829
|
#
|
@@ -907,6 +909,16 @@ module Aws::CodeCommit
|
|
907
909
|
# request that used that token.
|
908
910
|
# @return [String]
|
909
911
|
#
|
912
|
+
# @!attribute [rw] caller_reactions
|
913
|
+
# The emoji reactions to a comment, if any, submitted by the user
|
914
|
+
# whose credentials are associated with the call to the API.
|
915
|
+
# @return [Array<String>]
|
916
|
+
#
|
917
|
+
# @!attribute [rw] reaction_counts
|
918
|
+
# A string to integer map that represents the number of individual
|
919
|
+
# users who have responded to a comment with the specified reactions.
|
920
|
+
# @return [Hash<String,Integer>]
|
921
|
+
#
|
910
922
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/Comment AWS API Documentation
|
911
923
|
#
|
912
924
|
class Comment < Struct.new(
|
@@ -917,7 +929,9 @@ module Aws::CodeCommit
|
|
917
929
|
:last_modified_date,
|
918
930
|
:author_arn,
|
919
931
|
:deleted,
|
920
|
-
:client_request_token
|
932
|
+
:client_request_token,
|
933
|
+
:caller_reactions,
|
934
|
+
:reaction_counts)
|
921
935
|
SENSITIVE = []
|
922
936
|
include Aws::Structure
|
923
937
|
end
|
@@ -1381,7 +1395,7 @@ module Aws::CodeCommit
|
|
1381
1395
|
#
|
1382
1396
|
#
|
1383
1397
|
#
|
1384
|
-
# [1]: https://docs.aws.amazon.com/
|
1398
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
|
1385
1399
|
# @return [String]
|
1386
1400
|
#
|
1387
1401
|
# @!attribute [rw] approval_rule_template_description
|
@@ -1637,7 +1651,7 @@ module Aws::CodeCommit
|
|
1637
1651
|
#
|
1638
1652
|
#
|
1639
1653
|
#
|
1640
|
-
# [1]: https://docs.aws.amazon.com/
|
1654
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
|
1641
1655
|
# @return [String]
|
1642
1656
|
#
|
1643
1657
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequestApprovalRuleInput AWS API Documentation
|
@@ -2983,6 +2997,66 @@ module Aws::CodeCommit
|
|
2983
2997
|
include Aws::Structure
|
2984
2998
|
end
|
2985
2999
|
|
3000
|
+
# @note When making an API call, you may pass GetCommentReactionsInput
|
3001
|
+
# data as a hash:
|
3002
|
+
#
|
3003
|
+
# {
|
3004
|
+
# comment_id: "CommentId", # required
|
3005
|
+
# reaction_user_arn: "Arn",
|
3006
|
+
# next_token: "NextToken",
|
3007
|
+
# max_results: 1,
|
3008
|
+
# }
|
3009
|
+
#
|
3010
|
+
# @!attribute [rw] comment_id
|
3011
|
+
# The ID of the comment for which you want to get reactions
|
3012
|
+
# information.
|
3013
|
+
# @return [String]
|
3014
|
+
#
|
3015
|
+
# @!attribute [rw] reaction_user_arn
|
3016
|
+
# Optional. The Amazon Resource Name (ARN) of the user or identity for
|
3017
|
+
# which you want to get reaction information.
|
3018
|
+
# @return [String]
|
3019
|
+
#
|
3020
|
+
# @!attribute [rw] next_token
|
3021
|
+
# An enumeration token that, when provided in a request, returns the
|
3022
|
+
# next batch of the results.
|
3023
|
+
# @return [String]
|
3024
|
+
#
|
3025
|
+
# @!attribute [rw] max_results
|
3026
|
+
# A non-zero, non-negative integer used to limit the number of
|
3027
|
+
# returned results. The default is the same as the allowed maximum,
|
3028
|
+
# 1,000.
|
3029
|
+
# @return [Integer]
|
3030
|
+
#
|
3031
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentReactionsInput AWS API Documentation
|
3032
|
+
#
|
3033
|
+
class GetCommentReactionsInput < Struct.new(
|
3034
|
+
:comment_id,
|
3035
|
+
:reaction_user_arn,
|
3036
|
+
:next_token,
|
3037
|
+
:max_results)
|
3038
|
+
SENSITIVE = []
|
3039
|
+
include Aws::Structure
|
3040
|
+
end
|
3041
|
+
|
3042
|
+
# @!attribute [rw] reactions_for_comment
|
3043
|
+
# An array of reactions to the specified comment.
|
3044
|
+
# @return [Array<Types::ReactionForComment>]
|
3045
|
+
#
|
3046
|
+
# @!attribute [rw] next_token
|
3047
|
+
# An enumeration token that can be used in a request to return the
|
3048
|
+
# next batch of the results.
|
3049
|
+
# @return [String]
|
3050
|
+
#
|
3051
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentReactionsOutput AWS API Documentation
|
3052
|
+
#
|
3053
|
+
class GetCommentReactionsOutput < Struct.new(
|
3054
|
+
:reactions_for_comment,
|
3055
|
+
:next_token)
|
3056
|
+
SENSITIVE = []
|
3057
|
+
include Aws::Structure
|
3058
|
+
end
|
3059
|
+
|
2986
3060
|
# @note When making an API call, you may pass GetCommentsForComparedCommitInput
|
2987
3061
|
# data as a hash:
|
2988
3062
|
#
|
@@ -4155,6 +4229,23 @@ module Aws::CodeCommit
|
|
4155
4229
|
#
|
4156
4230
|
class InvalidPullRequestStatusUpdateException < Aws::EmptyStructure; end
|
4157
4231
|
|
4232
|
+
# The Amazon Resource Name (ARN) of the user or identity is not valid.
|
4233
|
+
#
|
4234
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/InvalidReactionUserArnException AWS API Documentation
|
4235
|
+
#
|
4236
|
+
class InvalidReactionUserArnException < Aws::EmptyStructure; end
|
4237
|
+
|
4238
|
+
# The value of the reaction is not valid. For more information, see the
|
4239
|
+
# [AWS CodeCommit User Guide][1].
|
4240
|
+
#
|
4241
|
+
#
|
4242
|
+
#
|
4243
|
+
# [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html
|
4244
|
+
#
|
4245
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/InvalidReactionValueException AWS API Documentation
|
4246
|
+
#
|
4247
|
+
class InvalidReactionValueException < Aws::EmptyStructure; end
|
4248
|
+
|
4158
4249
|
# The specified reference name format is not valid. Reference names must
|
4159
4250
|
# conform to the Git references format (for example, refs/heads/master).
|
4160
4251
|
# For more information, see [Git Internals - Git References][1] or
|
@@ -6390,6 +6481,38 @@ module Aws::CodeCommit
|
|
6390
6481
|
include Aws::Structure
|
6391
6482
|
end
|
6392
6483
|
|
6484
|
+
# @note When making an API call, you may pass PutCommentReactionInput
|
6485
|
+
# data as a hash:
|
6486
|
+
#
|
6487
|
+
# {
|
6488
|
+
# comment_id: "CommentId", # required
|
6489
|
+
# reaction_value: "ReactionValue", # required
|
6490
|
+
# }
|
6491
|
+
#
|
6492
|
+
# @!attribute [rw] comment_id
|
6493
|
+
# The ID of the comment to which you want to add or update a reaction.
|
6494
|
+
# @return [String]
|
6495
|
+
#
|
6496
|
+
# @!attribute [rw] reaction_value
|
6497
|
+
# The emoji reaction you want to add or update. To remove a reaction,
|
6498
|
+
# provide a value of blank or null. You can also provide the value of
|
6499
|
+
# none. For information about emoji reaction values supported in AWS
|
6500
|
+
# CodeCommit, see the [AWS CodeCommit User Guide][1].
|
6501
|
+
#
|
6502
|
+
#
|
6503
|
+
#
|
6504
|
+
# [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table
|
6505
|
+
# @return [String]
|
6506
|
+
#
|
6507
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutCommentReactionInput AWS API Documentation
|
6508
|
+
#
|
6509
|
+
class PutCommentReactionInput < Struct.new(
|
6510
|
+
:comment_id,
|
6511
|
+
:reaction_value)
|
6512
|
+
SENSITIVE = []
|
6513
|
+
include Aws::Structure
|
6514
|
+
end
|
6515
|
+
|
6393
6516
|
# Information about a file added or updated as part of a commit.
|
6394
6517
|
#
|
6395
6518
|
# @note When making an API call, you may pass PutFileEntry
|
@@ -6602,6 +6725,74 @@ module Aws::CodeCommit
|
|
6602
6725
|
include Aws::Structure
|
6603
6726
|
end
|
6604
6727
|
|
6728
|
+
# Information about the reaction values provided by users on a comment.
|
6729
|
+
#
|
6730
|
+
# @!attribute [rw] reaction
|
6731
|
+
# The reaction for a specified comment.
|
6732
|
+
# @return [Types::ReactionValueFormats]
|
6733
|
+
#
|
6734
|
+
# @!attribute [rw] reaction_users
|
6735
|
+
# The Amazon Resource Names (ARNs) of users who have provided
|
6736
|
+
# reactions to the comment.
|
6737
|
+
# @return [Array<String>]
|
6738
|
+
#
|
6739
|
+
# @!attribute [rw] reactions_from_deleted_users_count
|
6740
|
+
# A numerical count of users who reacted with the specified emoji
|
6741
|
+
# whose identities have been subsequently deleted from IAM. While
|
6742
|
+
# these IAM users or roles no longer exist, the reactions might still
|
6743
|
+
# appear in total reaction counts.
|
6744
|
+
# @return [Integer]
|
6745
|
+
#
|
6746
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ReactionForComment AWS API Documentation
|
6747
|
+
#
|
6748
|
+
class ReactionForComment < Struct.new(
|
6749
|
+
:reaction,
|
6750
|
+
:reaction_users,
|
6751
|
+
:reactions_from_deleted_users_count)
|
6752
|
+
SENSITIVE = []
|
6753
|
+
include Aws::Structure
|
6754
|
+
end
|
6755
|
+
|
6756
|
+
# The number of reactions has been exceeded. Reactions are limited to
|
6757
|
+
# one reaction per user for each individual comment ID.
|
6758
|
+
#
|
6759
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ReactionLimitExceededException AWS API Documentation
|
6760
|
+
#
|
6761
|
+
class ReactionLimitExceededException < Aws::EmptyStructure; end
|
6762
|
+
|
6763
|
+
# Information about the values for reactions to a comment. AWS
|
6764
|
+
# CodeCommit supports a limited set of reactions.
|
6765
|
+
#
|
6766
|
+
# @!attribute [rw] emoji
|
6767
|
+
# The Emoji Version 1.0 graphic of the reaction. These graphics are
|
6768
|
+
# interpreted slightly differently on different operating systems.
|
6769
|
+
# @return [String]
|
6770
|
+
#
|
6771
|
+
# @!attribute [rw] short_code
|
6772
|
+
# The emoji short code for the reaction. Short codes are interpreted
|
6773
|
+
# slightly differently on different operating systems.
|
6774
|
+
# @return [String]
|
6775
|
+
#
|
6776
|
+
# @!attribute [rw] unicode
|
6777
|
+
# The Unicode codepoint for the reaction.
|
6778
|
+
# @return [String]
|
6779
|
+
#
|
6780
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ReactionValueFormats AWS API Documentation
|
6781
|
+
#
|
6782
|
+
class ReactionValueFormats < Struct.new(
|
6783
|
+
:emoji,
|
6784
|
+
:short_code,
|
6785
|
+
:unicode)
|
6786
|
+
SENSITIVE = []
|
6787
|
+
include Aws::Structure
|
6788
|
+
end
|
6789
|
+
|
6790
|
+
# A reaction value is required.
|
6791
|
+
#
|
6792
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ReactionValueRequiredException AWS API Documentation
|
6793
|
+
#
|
6794
|
+
class ReactionValueRequiredException < Aws::EmptyStructure; end
|
6795
|
+
|
6605
6796
|
# The specified reference does not exist. You must provide a full commit
|
6606
6797
|
# ID.
|
6607
6798
|
#
|
@@ -7539,7 +7730,7 @@ module Aws::CodeCommit
|
|
7539
7730
|
#
|
7540
7731
|
#
|
7541
7732
|
#
|
7542
|
-
# [1]: https://docs.aws.amazon.com/
|
7733
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
|
7543
7734
|
# @return [String]
|
7544
7735
|
#
|
7545
7736
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestApprovalRuleContentInput AWS API Documentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-codecommit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.40.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-
|
11
|
+
date: 2020-09-30 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.109.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.109.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|