aws-sdk-codecommit 1.20.0 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-codecommit.rb +1 -1
- data/lib/aws-sdk-codecommit/client.rb +121 -3
- data/lib/aws-sdk-codecommit/client_api.rb +90 -0
- data/lib/aws-sdk-codecommit/types.rb +106 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 618e025db363bb123d581352240171f67d3ee731
|
|
4
|
+
data.tar.gz: 3c860e030dc73a38e291595ca00ddc64fbd4c1f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6cc77868b2f01283e44fce718795bca5e326bc6880e6aa28adaa58cb3fd19d618efc7bc47576cef3eb6ca8a8ff73a25f54cbe3a36fb8e33af16024b1595206f3
|
|
7
|
+
data.tar.gz: 2106d9dac5759c08e43b327ebcce8288901a87c88ad317f6d019ab68b2c62f109c1ce3e45bdb66c6a31d4c6a95ac8a605d4b6a4a38a3b357986a499c30ccb356
|
data/lib/aws-sdk-codecommit.rb
CHANGED
|
@@ -547,7 +547,7 @@ module Aws::CodeCommit
|
|
|
547
547
|
#
|
|
548
548
|
#
|
|
549
549
|
#
|
|
550
|
-
# [1]:
|
|
550
|
+
# [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
|
|
551
551
|
#
|
|
552
552
|
# @option params [String] :repository_description
|
|
553
553
|
# A comment or description about the new repository.
|
|
@@ -561,6 +561,9 @@ module Aws::CodeCommit
|
|
|
561
561
|
#
|
|
562
562
|
# </note>
|
|
563
563
|
#
|
|
564
|
+
# @option params [Hash<String,String>] :tags
|
|
565
|
+
# One or more tag key-value pairs to use when tagging this repository.
|
|
566
|
+
#
|
|
564
567
|
# @return [Types::CreateRepositoryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
565
568
|
#
|
|
566
569
|
# * {Types::CreateRepositoryOutput#repository_metadata #repository_metadata} => Types::RepositoryMetadata
|
|
@@ -570,6 +573,9 @@ module Aws::CodeCommit
|
|
|
570
573
|
# resp = client.create_repository({
|
|
571
574
|
# repository_name: "RepositoryName", # required
|
|
572
575
|
# repository_description: "RepositoryDescription",
|
|
576
|
+
# tags: {
|
|
577
|
+
# "TagKey" => "TagValue",
|
|
578
|
+
# },
|
|
573
579
|
# })
|
|
574
580
|
#
|
|
575
581
|
# @example Response structure
|
|
@@ -1646,6 +1652,50 @@ module Aws::CodeCommit
|
|
|
1646
1652
|
req.send_request(options)
|
|
1647
1653
|
end
|
|
1648
1654
|
|
|
1655
|
+
# Gets information about AWS tags for a specified Amazon Resource Name
|
|
1656
|
+
# (ARN) in AWS CodeCommit. For a list of valid resources in AWS
|
|
1657
|
+
# CodeCommit, see [CodeCommit Resources and Operations][1] in the AWS
|
|
1658
|
+
# CodeCommit User Guide.
|
|
1659
|
+
#
|
|
1660
|
+
#
|
|
1661
|
+
#
|
|
1662
|
+
# [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats
|
|
1663
|
+
#
|
|
1664
|
+
# @option params [required, String] :resource_arn
|
|
1665
|
+
# The Amazon Resource Name (ARN) of the resource for which you want to
|
|
1666
|
+
# get information about tags, if any.
|
|
1667
|
+
#
|
|
1668
|
+
# @option params [String] :next_token
|
|
1669
|
+
# An enumeration token that when provided in a request, returns the next
|
|
1670
|
+
# batch of the results.
|
|
1671
|
+
#
|
|
1672
|
+
# @return [Types::ListTagsForResourceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1673
|
+
#
|
|
1674
|
+
# * {Types::ListTagsForResourceOutput#tags #tags} => Hash<String,String>
|
|
1675
|
+
# * {Types::ListTagsForResourceOutput#next_token #next_token} => String
|
|
1676
|
+
#
|
|
1677
|
+
# @example Request syntax with placeholder values
|
|
1678
|
+
#
|
|
1679
|
+
# resp = client.list_tags_for_resource({
|
|
1680
|
+
# resource_arn: "ResourceArn", # required
|
|
1681
|
+
# next_token: "NextToken",
|
|
1682
|
+
# })
|
|
1683
|
+
#
|
|
1684
|
+
# @example Response structure
|
|
1685
|
+
#
|
|
1686
|
+
# resp.tags #=> Hash
|
|
1687
|
+
# resp.tags["TagKey"] #=> String
|
|
1688
|
+
# resp.next_token #=> String
|
|
1689
|
+
#
|
|
1690
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListTagsForResource AWS API Documentation
|
|
1691
|
+
#
|
|
1692
|
+
# @overload list_tags_for_resource(params = {})
|
|
1693
|
+
# @param [Hash] params ({})
|
|
1694
|
+
def list_tags_for_resource(params = {}, options = {})
|
|
1695
|
+
req = build_request(:list_tags_for_resource, params)
|
|
1696
|
+
req.send_request(options)
|
|
1697
|
+
end
|
|
1698
|
+
|
|
1649
1699
|
# Closes a pull request and attempts to merge the source commit of a
|
|
1650
1700
|
# pull request into the specified destination branch for that pull
|
|
1651
1701
|
# request at the specified commit using the fast-forward merge option.
|
|
@@ -2060,6 +2110,41 @@ module Aws::CodeCommit
|
|
|
2060
2110
|
req.send_request(options)
|
|
2061
2111
|
end
|
|
2062
2112
|
|
|
2113
|
+
# Adds or updates tags for a resource in AWS CodeCommit. For a list of
|
|
2114
|
+
# valid resources in AWS CodeCommit, see [CodeCommit Resources and
|
|
2115
|
+
# Operations][1] in the AWS CodeCommit User Guide.
|
|
2116
|
+
#
|
|
2117
|
+
#
|
|
2118
|
+
#
|
|
2119
|
+
# [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats
|
|
2120
|
+
#
|
|
2121
|
+
# @option params [required, String] :resource_arn
|
|
2122
|
+
# The Amazon Resource Name (ARN) of the resource to which you want to
|
|
2123
|
+
# add or update tags.
|
|
2124
|
+
#
|
|
2125
|
+
# @option params [required, Hash<String,String>] :tags
|
|
2126
|
+
# The key-value pair to use when tagging this repository.
|
|
2127
|
+
#
|
|
2128
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
2129
|
+
#
|
|
2130
|
+
# @example Request syntax with placeholder values
|
|
2131
|
+
#
|
|
2132
|
+
# resp = client.tag_resource({
|
|
2133
|
+
# resource_arn: "ResourceArn", # required
|
|
2134
|
+
# tags: { # required
|
|
2135
|
+
# "TagKey" => "TagValue",
|
|
2136
|
+
# },
|
|
2137
|
+
# })
|
|
2138
|
+
#
|
|
2139
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TagResource AWS API Documentation
|
|
2140
|
+
#
|
|
2141
|
+
# @overload tag_resource(params = {})
|
|
2142
|
+
# @param [Hash] params ({})
|
|
2143
|
+
def tag_resource(params = {}, options = {})
|
|
2144
|
+
req = build_request(:tag_resource, params)
|
|
2145
|
+
req.send_request(options)
|
|
2146
|
+
end
|
|
2147
|
+
|
|
2063
2148
|
# Tests the functionality of repository triggers by sending information
|
|
2064
2149
|
# to the trigger target. If real data is available in the repository,
|
|
2065
2150
|
# the test will send data from the last commit. If no data is available,
|
|
@@ -2108,6 +2193,39 @@ module Aws::CodeCommit
|
|
|
2108
2193
|
req.send_request(options)
|
|
2109
2194
|
end
|
|
2110
2195
|
|
|
2196
|
+
# Removes tags for a resource in AWS CodeCommit. For a list of valid
|
|
2197
|
+
# resources in AWS CodeCommit, see [CodeCommit Resources and
|
|
2198
|
+
# Operations][1] in the AWS CodeCommit User Guide.
|
|
2199
|
+
#
|
|
2200
|
+
#
|
|
2201
|
+
#
|
|
2202
|
+
# [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats
|
|
2203
|
+
#
|
|
2204
|
+
# @option params [required, String] :resource_arn
|
|
2205
|
+
# The Amazon Resource Name (ARN) of the resource to which you want to
|
|
2206
|
+
# remove tags.
|
|
2207
|
+
#
|
|
2208
|
+
# @option params [required, Array<String>] :tag_keys
|
|
2209
|
+
# The tag key for each tag that you want to remove from the resource.
|
|
2210
|
+
#
|
|
2211
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
2212
|
+
#
|
|
2213
|
+
# @example Request syntax with placeholder values
|
|
2214
|
+
#
|
|
2215
|
+
# resp = client.untag_resource({
|
|
2216
|
+
# resource_arn: "ResourceArn", # required
|
|
2217
|
+
# tag_keys: ["TagKey"], # required
|
|
2218
|
+
# })
|
|
2219
|
+
#
|
|
2220
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UntagResource AWS API Documentation
|
|
2221
|
+
#
|
|
2222
|
+
# @overload untag_resource(params = {})
|
|
2223
|
+
# @param [Hash] params ({})
|
|
2224
|
+
def untag_resource(params = {}, options = {})
|
|
2225
|
+
req = build_request(:untag_resource, params)
|
|
2226
|
+
req.send_request(options)
|
|
2227
|
+
end
|
|
2228
|
+
|
|
2111
2229
|
# Replaces the contents of a comment.
|
|
2112
2230
|
#
|
|
2113
2231
|
# @option params [required, String] :comment_id
|
|
@@ -2378,7 +2496,7 @@ module Aws::CodeCommit
|
|
|
2378
2496
|
#
|
|
2379
2497
|
#
|
|
2380
2498
|
#
|
|
2381
|
-
# [1]:
|
|
2499
|
+
# [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
|
|
2382
2500
|
#
|
|
2383
2501
|
# @option params [required, String] :old_name
|
|
2384
2502
|
# The existing name of the repository.
|
|
@@ -2417,7 +2535,7 @@ module Aws::CodeCommit
|
|
|
2417
2535
|
params: params,
|
|
2418
2536
|
config: config)
|
|
2419
2537
|
context[:gem_name] = 'aws-sdk-codecommit'
|
|
2420
|
-
context[:gem_version] = '1.
|
|
2538
|
+
context[:gem_version] = '1.21.0'
|
|
2421
2539
|
Seahorse::Client::Request.new(handlers, context)
|
|
2422
2540
|
end
|
|
2423
2541
|
|
|
@@ -170,8 +170,12 @@ module Aws::CodeCommit
|
|
|
170
170
|
InvalidRepositoryTriggerEventsException = Shapes::StructureShape.new(name: 'InvalidRepositoryTriggerEventsException')
|
|
171
171
|
InvalidRepositoryTriggerNameException = Shapes::StructureShape.new(name: 'InvalidRepositoryTriggerNameException')
|
|
172
172
|
InvalidRepositoryTriggerRegionException = Shapes::StructureShape.new(name: 'InvalidRepositoryTriggerRegionException')
|
|
173
|
+
InvalidResourceArnException = Shapes::StructureShape.new(name: 'InvalidResourceArnException')
|
|
173
174
|
InvalidSortByException = Shapes::StructureShape.new(name: 'InvalidSortByException')
|
|
174
175
|
InvalidSourceCommitSpecifierException = Shapes::StructureShape.new(name: 'InvalidSourceCommitSpecifierException')
|
|
176
|
+
InvalidSystemTagUsageException = Shapes::StructureShape.new(name: 'InvalidSystemTagUsageException')
|
|
177
|
+
InvalidTagKeysListException = Shapes::StructureShape.new(name: 'InvalidTagKeysListException')
|
|
178
|
+
InvalidTagsMapException = Shapes::StructureShape.new(name: 'InvalidTagsMapException')
|
|
175
179
|
InvalidTargetException = Shapes::StructureShape.new(name: 'InvalidTargetException')
|
|
176
180
|
InvalidTargetsException = Shapes::StructureShape.new(name: 'InvalidTargetsException')
|
|
177
181
|
InvalidTitleException = Shapes::StructureShape.new(name: 'InvalidTitleException')
|
|
@@ -188,6 +192,8 @@ module Aws::CodeCommit
|
|
|
188
192
|
ListPullRequestsOutput = Shapes::StructureShape.new(name: 'ListPullRequestsOutput')
|
|
189
193
|
ListRepositoriesInput = Shapes::StructureShape.new(name: 'ListRepositoriesInput')
|
|
190
194
|
ListRepositoriesOutput = Shapes::StructureShape.new(name: 'ListRepositoriesOutput')
|
|
195
|
+
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
|
196
|
+
ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
|
|
191
197
|
Location = Shapes::StructureShape.new(name: 'Location')
|
|
192
198
|
ManualMergeRequiredException = Shapes::StructureShape.new(name: 'ManualMergeRequiredException')
|
|
193
199
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
|
@@ -285,6 +291,8 @@ module Aws::CodeCommit
|
|
|
285
291
|
RepositoryTriggersConfigurationId = Shapes::StringShape.new(name: 'RepositoryTriggersConfigurationId')
|
|
286
292
|
RepositoryTriggersList = Shapes::ListShape.new(name: 'RepositoryTriggersList')
|
|
287
293
|
RepositoryTriggersListRequiredException = Shapes::StructureShape.new(name: 'RepositoryTriggersListRequiredException')
|
|
294
|
+
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
|
295
|
+
ResourceArnRequiredException = Shapes::StructureShape.new(name: 'ResourceArnRequiredException')
|
|
288
296
|
RestrictedSourceFileException = Shapes::StructureShape.new(name: 'RestrictedSourceFileException')
|
|
289
297
|
SameFileContentException = Shapes::StructureShape.new(name: 'SameFileContentException')
|
|
290
298
|
SamePathRequestException = Shapes::StructureShape.new(name: 'SamePathRequestException')
|
|
@@ -298,6 +306,14 @@ module Aws::CodeCommit
|
|
|
298
306
|
SubModuleList = Shapes::ListShape.new(name: 'SubModuleList')
|
|
299
307
|
SymbolicLink = Shapes::StructureShape.new(name: 'SymbolicLink')
|
|
300
308
|
SymbolicLinkList = Shapes::ListShape.new(name: 'SymbolicLinkList')
|
|
309
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
|
310
|
+
TagKeysList = Shapes::ListShape.new(name: 'TagKeysList')
|
|
311
|
+
TagKeysListRequiredException = Shapes::StructureShape.new(name: 'TagKeysListRequiredException')
|
|
312
|
+
TagPolicyException = Shapes::StructureShape.new(name: 'TagPolicyException')
|
|
313
|
+
TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
|
|
314
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
|
315
|
+
TagsMap = Shapes::MapShape.new(name: 'TagsMap')
|
|
316
|
+
TagsMapRequiredException = Shapes::StructureShape.new(name: 'TagsMapRequiredException')
|
|
301
317
|
Target = Shapes::StructureShape.new(name: 'Target')
|
|
302
318
|
TargetList = Shapes::ListShape.new(name: 'TargetList')
|
|
303
319
|
TargetRequiredException = Shapes::StructureShape.new(name: 'TargetRequiredException')
|
|
@@ -308,6 +324,8 @@ module Aws::CodeCommit
|
|
|
308
324
|
TipsDivergenceExceededException = Shapes::StructureShape.new(name: 'TipsDivergenceExceededException')
|
|
309
325
|
Title = Shapes::StringShape.new(name: 'Title')
|
|
310
326
|
TitleRequiredException = Shapes::StructureShape.new(name: 'TitleRequiredException')
|
|
327
|
+
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
|
328
|
+
UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
|
|
311
329
|
UpdateCommentInput = Shapes::StructureShape.new(name: 'UpdateCommentInput')
|
|
312
330
|
UpdateCommentOutput = Shapes::StructureShape.new(name: 'UpdateCommentOutput')
|
|
313
331
|
UpdateDefaultBranchInput = Shapes::StructureShape.new(name: 'UpdateDefaultBranchInput')
|
|
@@ -419,6 +437,7 @@ module Aws::CodeCommit
|
|
|
419
437
|
|
|
420
438
|
CreateRepositoryInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
|
421
439
|
CreateRepositoryInput.add_member(:repository_description, Shapes::ShapeRef.new(shape: RepositoryDescription, location_name: "repositoryDescription"))
|
|
440
|
+
CreateRepositoryInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
|
422
441
|
CreateRepositoryInput.struct_class = Types::CreateRepositoryInput
|
|
423
442
|
|
|
424
443
|
CreateRepositoryOutput.add_member(:repository_metadata, Shapes::ShapeRef.new(shape: RepositoryMetadata, location_name: "repositoryMetadata"))
|
|
@@ -652,6 +671,14 @@ module Aws::CodeCommit
|
|
|
652
671
|
ListRepositoriesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
653
672
|
ListRepositoriesOutput.struct_class = Types::ListRepositoriesOutput
|
|
654
673
|
|
|
674
|
+
ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
|
|
675
|
+
ListTagsForResourceInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
676
|
+
ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
|
|
677
|
+
|
|
678
|
+
ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
|
679
|
+
ListTagsForResourceOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
|
680
|
+
ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
|
|
681
|
+
|
|
655
682
|
Location.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, location_name: "filePath"))
|
|
656
683
|
Location.add_member(:file_position, Shapes::ShapeRef.new(shape: Position, location_name: "filePosition"))
|
|
657
684
|
Location.add_member(:relative_file_version, Shapes::ShapeRef.new(shape: RelativeFileVersionEnum, location_name: "relativeFileVersion"))
|
|
@@ -870,6 +897,15 @@ module Aws::CodeCommit
|
|
|
870
897
|
|
|
871
898
|
SymbolicLinkList.member = Shapes::ShapeRef.new(shape: SymbolicLink)
|
|
872
899
|
|
|
900
|
+
TagKeysList.member = Shapes::ShapeRef.new(shape: TagKey)
|
|
901
|
+
|
|
902
|
+
TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
|
|
903
|
+
TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, required: true, location_name: "tags"))
|
|
904
|
+
TagResourceInput.struct_class = Types::TagResourceInput
|
|
905
|
+
|
|
906
|
+
TagsMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
|
907
|
+
TagsMap.value = Shapes::ShapeRef.new(shape: TagValue)
|
|
908
|
+
|
|
873
909
|
Target.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
|
874
910
|
Target.add_member(:source_reference, Shapes::ShapeRef.new(shape: ReferenceName, required: true, location_name: "sourceReference"))
|
|
875
911
|
Target.add_member(:destination_reference, Shapes::ShapeRef.new(shape: ReferenceName, location_name: "destinationReference"))
|
|
@@ -885,6 +921,10 @@ module Aws::CodeCommit
|
|
|
885
921
|
TestRepositoryTriggersOutput.add_member(:failed_executions, Shapes::ShapeRef.new(shape: RepositoryTriggerExecutionFailureList, location_name: "failedExecutions"))
|
|
886
922
|
TestRepositoryTriggersOutput.struct_class = Types::TestRepositoryTriggersOutput
|
|
887
923
|
|
|
924
|
+
UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
|
|
925
|
+
UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeysList, required: true, location_name: "tagKeys"))
|
|
926
|
+
UntagResourceInput.struct_class = Types::UntagResourceInput
|
|
927
|
+
|
|
888
928
|
UpdateCommentInput.add_member(:comment_id, Shapes::ShapeRef.new(shape: CommentId, required: true, location_name: "commentId"))
|
|
889
929
|
UpdateCommentInput.add_member(:content, Shapes::ShapeRef.new(shape: Content, required: true, location_name: "content"))
|
|
890
930
|
UpdateCommentInput.struct_class = Types::UpdateCommentInput
|
|
@@ -1082,6 +1122,10 @@ module Aws::CodeCommit
|
|
|
1082
1122
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
|
1083
1123
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
|
|
1084
1124
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
|
1125
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTagsMapException)
|
|
1126
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
|
1127
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSystemTagUsageException)
|
|
1128
|
+
o.errors << Shapes::ShapeRef.new(shape: TagPolicyException)
|
|
1085
1129
|
end)
|
|
1086
1130
|
|
|
1087
1131
|
api.add_operation(:delete_branch, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -1525,6 +1569,18 @@ module Aws::CodeCommit
|
|
|
1525
1569
|
)
|
|
1526
1570
|
end)
|
|
1527
1571
|
|
|
1572
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
1573
|
+
o.name = "ListTagsForResource"
|
|
1574
|
+
o.http_method = "POST"
|
|
1575
|
+
o.http_request_uri = "/"
|
|
1576
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceInput)
|
|
1577
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceOutput)
|
|
1578
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
|
|
1579
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
|
|
1580
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceArnRequiredException)
|
|
1581
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidResourceArnException)
|
|
1582
|
+
end)
|
|
1583
|
+
|
|
1528
1584
|
api.add_operation(:merge_pull_request_by_fast_forward, Seahorse::Model::Operation.new.tap do |o|
|
|
1529
1585
|
o.name = "MergePullRequestByFastForward"
|
|
1530
1586
|
o.http_method = "POST"
|
|
@@ -1699,6 +1755,23 @@ module Aws::CodeCommit
|
|
|
1699
1755
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
|
1700
1756
|
end)
|
|
1701
1757
|
|
|
1758
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
1759
|
+
o.name = "TagResource"
|
|
1760
|
+
o.http_method = "POST"
|
|
1761
|
+
o.http_request_uri = "/"
|
|
1762
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceInput)
|
|
1763
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
|
1764
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
|
|
1765
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
|
|
1766
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceArnRequiredException)
|
|
1767
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidResourceArnException)
|
|
1768
|
+
o.errors << Shapes::ShapeRef.new(shape: TagsMapRequiredException)
|
|
1769
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTagsMapException)
|
|
1770
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
|
1771
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSystemTagUsageException)
|
|
1772
|
+
o.errors << Shapes::ShapeRef.new(shape: TagPolicyException)
|
|
1773
|
+
end)
|
|
1774
|
+
|
|
1702
1775
|
api.add_operation(:test_repository_triggers, Seahorse::Model::Operation.new.tap do |o|
|
|
1703
1776
|
o.name = "TestRepositoryTriggers"
|
|
1704
1777
|
o.http_method = "POST"
|
|
@@ -1728,6 +1801,23 @@ module Aws::CodeCommit
|
|
|
1728
1801
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
|
1729
1802
|
end)
|
|
1730
1803
|
|
|
1804
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
1805
|
+
o.name = "UntagResource"
|
|
1806
|
+
o.http_method = "POST"
|
|
1807
|
+
o.http_request_uri = "/"
|
|
1808
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceInput)
|
|
1809
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
|
1810
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
|
|
1811
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
|
|
1812
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceArnRequiredException)
|
|
1813
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidResourceArnException)
|
|
1814
|
+
o.errors << Shapes::ShapeRef.new(shape: TagKeysListRequiredException)
|
|
1815
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTagKeysListException)
|
|
1816
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
|
1817
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSystemTagUsageException)
|
|
1818
|
+
o.errors << Shapes::ShapeRef.new(shape: TagPolicyException)
|
|
1819
|
+
end)
|
|
1820
|
+
|
|
1731
1821
|
api.add_operation(:update_comment, Seahorse::Model::Operation.new.tap do |o|
|
|
1732
1822
|
o.name = "UpdateComment"
|
|
1733
1823
|
o.http_method = "POST"
|
|
@@ -561,6 +561,9 @@ module Aws::CodeCommit
|
|
|
561
561
|
# {
|
|
562
562
|
# repository_name: "RepositoryName", # required
|
|
563
563
|
# repository_description: "RepositoryDescription",
|
|
564
|
+
# tags: {
|
|
565
|
+
# "TagKey" => "TagValue",
|
|
566
|
+
# },
|
|
564
567
|
# }
|
|
565
568
|
#
|
|
566
569
|
# @!attribute [rw] repository_name
|
|
@@ -577,7 +580,7 @@ module Aws::CodeCommit
|
|
|
577
580
|
#
|
|
578
581
|
#
|
|
579
582
|
#
|
|
580
|
-
# [1]:
|
|
583
|
+
# [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
|
|
581
584
|
# @return [String]
|
|
582
585
|
#
|
|
583
586
|
# @!attribute [rw] repository_description
|
|
@@ -593,11 +596,16 @@ module Aws::CodeCommit
|
|
|
593
596
|
# </note>
|
|
594
597
|
# @return [String]
|
|
595
598
|
#
|
|
599
|
+
# @!attribute [rw] tags
|
|
600
|
+
# One or more tag key-value pairs to use when tagging this repository.
|
|
601
|
+
# @return [Hash<String,String>]
|
|
602
|
+
#
|
|
596
603
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepositoryInput AWS API Documentation
|
|
597
604
|
#
|
|
598
605
|
class CreateRepositoryInput < Struct.new(
|
|
599
606
|
:repository_name,
|
|
600
|
-
:repository_description
|
|
607
|
+
:repository_description,
|
|
608
|
+
:tags)
|
|
601
609
|
include Aws::Structure
|
|
602
610
|
end
|
|
603
611
|
|
|
@@ -1877,6 +1885,50 @@ module Aws::CodeCommit
|
|
|
1877
1885
|
include Aws::Structure
|
|
1878
1886
|
end
|
|
1879
1887
|
|
|
1888
|
+
# @note When making an API call, you may pass ListTagsForResourceInput
|
|
1889
|
+
# data as a hash:
|
|
1890
|
+
#
|
|
1891
|
+
# {
|
|
1892
|
+
# resource_arn: "ResourceArn", # required
|
|
1893
|
+
# next_token: "NextToken",
|
|
1894
|
+
# }
|
|
1895
|
+
#
|
|
1896
|
+
# @!attribute [rw] resource_arn
|
|
1897
|
+
# The Amazon Resource Name (ARN) of the resource for which you want to
|
|
1898
|
+
# get information about tags, if any.
|
|
1899
|
+
# @return [String]
|
|
1900
|
+
#
|
|
1901
|
+
# @!attribute [rw] next_token
|
|
1902
|
+
# An enumeration token that when provided in a request, returns the
|
|
1903
|
+
# next batch of the results.
|
|
1904
|
+
# @return [String]
|
|
1905
|
+
#
|
|
1906
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListTagsForResourceInput AWS API Documentation
|
|
1907
|
+
#
|
|
1908
|
+
class ListTagsForResourceInput < Struct.new(
|
|
1909
|
+
:resource_arn,
|
|
1910
|
+
:next_token)
|
|
1911
|
+
include Aws::Structure
|
|
1912
|
+
end
|
|
1913
|
+
|
|
1914
|
+
# @!attribute [rw] tags
|
|
1915
|
+
# A list of tag key and value pairs associated with the specified
|
|
1916
|
+
# resource.
|
|
1917
|
+
# @return [Hash<String,String>]
|
|
1918
|
+
#
|
|
1919
|
+
# @!attribute [rw] next_token
|
|
1920
|
+
# An enumeration token that allows the operation to batch the next
|
|
1921
|
+
# results of the operation.
|
|
1922
|
+
# @return [String]
|
|
1923
|
+
#
|
|
1924
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListTagsForResourceOutput AWS API Documentation
|
|
1925
|
+
#
|
|
1926
|
+
class ListTagsForResourceOutput < Struct.new(
|
|
1927
|
+
:tags,
|
|
1928
|
+
:next_token)
|
|
1929
|
+
include Aws::Structure
|
|
1930
|
+
end
|
|
1931
|
+
|
|
1880
1932
|
# Returns information about the location of a change or comment in the
|
|
1881
1933
|
# comparison between two commits or a pull request.
|
|
1882
1934
|
#
|
|
@@ -2999,6 +3051,33 @@ module Aws::CodeCommit
|
|
|
2999
3051
|
include Aws::Structure
|
|
3000
3052
|
end
|
|
3001
3053
|
|
|
3054
|
+
# @note When making an API call, you may pass TagResourceInput
|
|
3055
|
+
# data as a hash:
|
|
3056
|
+
#
|
|
3057
|
+
# {
|
|
3058
|
+
# resource_arn: "ResourceArn", # required
|
|
3059
|
+
# tags: { # required
|
|
3060
|
+
# "TagKey" => "TagValue",
|
|
3061
|
+
# },
|
|
3062
|
+
# }
|
|
3063
|
+
#
|
|
3064
|
+
# @!attribute [rw] resource_arn
|
|
3065
|
+
# The Amazon Resource Name (ARN) of the resource to which you want to
|
|
3066
|
+
# add or update tags.
|
|
3067
|
+
# @return [String]
|
|
3068
|
+
#
|
|
3069
|
+
# @!attribute [rw] tags
|
|
3070
|
+
# The key-value pair to use when tagging this repository.
|
|
3071
|
+
# @return [Hash<String,String>]
|
|
3072
|
+
#
|
|
3073
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TagResourceInput AWS API Documentation
|
|
3074
|
+
#
|
|
3075
|
+
class TagResourceInput < Struct.new(
|
|
3076
|
+
:resource_arn,
|
|
3077
|
+
:tags)
|
|
3078
|
+
include Aws::Structure
|
|
3079
|
+
end
|
|
3080
|
+
|
|
3002
3081
|
# Returns information about a target for a pull request.
|
|
3003
3082
|
#
|
|
3004
3083
|
# @note When making an API call, you may pass Target
|
|
@@ -3089,6 +3168,31 @@ module Aws::CodeCommit
|
|
|
3089
3168
|
include Aws::Structure
|
|
3090
3169
|
end
|
|
3091
3170
|
|
|
3171
|
+
# @note When making an API call, you may pass UntagResourceInput
|
|
3172
|
+
# data as a hash:
|
|
3173
|
+
#
|
|
3174
|
+
# {
|
|
3175
|
+
# resource_arn: "ResourceArn", # required
|
|
3176
|
+
# tag_keys: ["TagKey"], # required
|
|
3177
|
+
# }
|
|
3178
|
+
#
|
|
3179
|
+
# @!attribute [rw] resource_arn
|
|
3180
|
+
# The Amazon Resource Name (ARN) of the resource to which you want to
|
|
3181
|
+
# remove tags.
|
|
3182
|
+
# @return [String]
|
|
3183
|
+
#
|
|
3184
|
+
# @!attribute [rw] tag_keys
|
|
3185
|
+
# The tag key for each tag that you want to remove from the resource.
|
|
3186
|
+
# @return [Array<String>]
|
|
3187
|
+
#
|
|
3188
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UntagResourceInput AWS API Documentation
|
|
3189
|
+
#
|
|
3190
|
+
class UntagResourceInput < Struct.new(
|
|
3191
|
+
:resource_arn,
|
|
3192
|
+
:tag_keys)
|
|
3193
|
+
include Aws::Structure
|
|
3194
|
+
end
|
|
3195
|
+
|
|
3092
3196
|
# @note When making an API call, you may pass UpdateCommentInput
|
|
3093
3197
|
# data as a hash:
|
|
3094
3198
|
#
|
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.21.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: 2019-05-
|
|
11
|
+
date: 2019-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|