aws-sdk-codecommit 1.2.0 → 1.3.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 +79 -1
- data/lib/aws-sdk-codecommit/client_api.rb +69 -0
- data/lib/aws-sdk-codecommit/types.rb +105 -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: 044346780011c2631f71d9618df50eae34814b12
|
4
|
+
data.tar.gz: da29f958853a2f096745e2c3164701d8b4bddaea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dad7031fed1f2251d9fce2ca0b29e8a3b7bfe06656adb63f369ff788dd815009d0b716f98d0f6102183a4602d935ada7b620424d088c95e4621f7a57edb027e3
|
7
|
+
data.tar.gz: 7877d8812baf4768fc33bf1e6a6c2a4a8040127f3231687d8af52d8416e07ff24ca3a0605680b8b1c88396bc773f5e271397f2d344fca18e3bff7cccffcc8bdd
|
data/lib/aws-sdk-codecommit.rb
CHANGED
@@ -1510,6 +1510,84 @@ module Aws::CodeCommit
|
|
1510
1510
|
req.send_request(options)
|
1511
1511
|
end
|
1512
1512
|
|
1513
|
+
# Adds or updates a file in an AWS CodeCommit repository.
|
1514
|
+
#
|
1515
|
+
# @option params [required, String] :repository_name
|
1516
|
+
# The name of the repository where you want to add or update the file.
|
1517
|
+
#
|
1518
|
+
# @option params [required, String] :branch_name
|
1519
|
+
# The name of the branch where you want to add or update the file.
|
1520
|
+
#
|
1521
|
+
# @option params [required, String, IO] :file_content
|
1522
|
+
# The content of the file, in binary object format.
|
1523
|
+
#
|
1524
|
+
# @option params [required, String] :file_path
|
1525
|
+
# The name of the file you want to add or update, including the relative
|
1526
|
+
# path to the file in the repository.
|
1527
|
+
#
|
1528
|
+
# <note markdown="1"> If the path does not currently exist in the repository, the path will
|
1529
|
+
# be created as part of adding the file.
|
1530
|
+
#
|
1531
|
+
# </note>
|
1532
|
+
#
|
1533
|
+
# @option params [String] :file_mode
|
1534
|
+
# The file mode permissions of the blob. Valid file mode permissions are
|
1535
|
+
# listed below.
|
1536
|
+
#
|
1537
|
+
# @option params [String] :parent_commit_id
|
1538
|
+
# The full commit ID of the head commit in the branch where you want to
|
1539
|
+
# add or update the file. If the commit ID does not match the ID of the
|
1540
|
+
# head commit at the time of the operation, an error will occur, and the
|
1541
|
+
# file will not be added or updated.
|
1542
|
+
#
|
1543
|
+
# @option params [String] :commit_message
|
1544
|
+
# A message about why this file was added or updated. While optional,
|
1545
|
+
# adding a message is strongly encouraged in order to provide a more
|
1546
|
+
# useful commit history for your repository.
|
1547
|
+
#
|
1548
|
+
# @option params [String] :name
|
1549
|
+
# The name of the person adding or updating the file. While optional,
|
1550
|
+
# adding a name is strongly encouraged in order to provide a more useful
|
1551
|
+
# commit history for your repository.
|
1552
|
+
#
|
1553
|
+
# @option params [String] :email
|
1554
|
+
# An email address for the person adding or updating the file.
|
1555
|
+
#
|
1556
|
+
# @return [Types::PutFileOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1557
|
+
#
|
1558
|
+
# * {Types::PutFileOutput#commit_id #commit_id} => String
|
1559
|
+
# * {Types::PutFileOutput#blob_id #blob_id} => String
|
1560
|
+
# * {Types::PutFileOutput#tree_id #tree_id} => String
|
1561
|
+
#
|
1562
|
+
# @example Request syntax with placeholder values
|
1563
|
+
#
|
1564
|
+
# resp = client.put_file({
|
1565
|
+
# repository_name: "RepositoryName", # required
|
1566
|
+
# branch_name: "BranchName", # required
|
1567
|
+
# file_content: "data", # required
|
1568
|
+
# file_path: "Path", # required
|
1569
|
+
# file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
|
1570
|
+
# parent_commit_id: "CommitId",
|
1571
|
+
# commit_message: "Message",
|
1572
|
+
# name: "Name",
|
1573
|
+
# email: "Email",
|
1574
|
+
# })
|
1575
|
+
#
|
1576
|
+
# @example Response structure
|
1577
|
+
#
|
1578
|
+
# resp.commit_id #=> String
|
1579
|
+
# resp.blob_id #=> String
|
1580
|
+
# resp.tree_id #=> String
|
1581
|
+
#
|
1582
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutFile AWS API Documentation
|
1583
|
+
#
|
1584
|
+
# @overload put_file(params = {})
|
1585
|
+
# @param [Hash] params ({})
|
1586
|
+
def put_file(params = {}, options = {})
|
1587
|
+
req = build_request(:put_file, params)
|
1588
|
+
req.send_request(options)
|
1589
|
+
end
|
1590
|
+
|
1513
1591
|
# Replaces all triggers for a repository. This can be used to create or
|
1514
1592
|
# delete triggers.
|
1515
1593
|
#
|
@@ -1906,7 +1984,7 @@ module Aws::CodeCommit
|
|
1906
1984
|
params: params,
|
1907
1985
|
config: config)
|
1908
1986
|
context[:gem_name] = 'aws-sdk-codecommit'
|
1909
|
-
context[:gem_version] = '1.
|
1987
|
+
context[:gem_version] = '1.3.0'
|
1910
1988
|
Seahorse::Client::Request.new(handlers, context)
|
1911
1989
|
end
|
1912
1990
|
|
@@ -26,6 +26,7 @@ module Aws::CodeCommit
|
|
26
26
|
BranchInfo = Shapes::StructureShape.new(name: 'BranchInfo')
|
27
27
|
BranchName = Shapes::StringShape.new(name: 'BranchName')
|
28
28
|
BranchNameExistsException = Shapes::StructureShape.new(name: 'BranchNameExistsException')
|
29
|
+
BranchNameIsTagNameException = Shapes::StructureShape.new(name: 'BranchNameIsTagNameException')
|
29
30
|
BranchNameList = Shapes::ListShape.new(name: 'BranchNameList')
|
30
31
|
BranchNameRequiredException = Shapes::StructureShape.new(name: 'BranchNameRequiredException')
|
31
32
|
ChangeTypeEnum = Shapes::StringShape.new(name: 'ChangeTypeEnum')
|
@@ -51,6 +52,7 @@ module Aws::CodeCommit
|
|
51
52
|
CommitId = Shapes::StringShape.new(name: 'CommitId')
|
52
53
|
CommitIdDoesNotExistException = Shapes::StructureShape.new(name: 'CommitIdDoesNotExistException')
|
53
54
|
CommitIdRequiredException = Shapes::StructureShape.new(name: 'CommitIdRequiredException')
|
55
|
+
CommitMessageLengthExceededException = Shapes::StructureShape.new(name: 'CommitMessageLengthExceededException')
|
54
56
|
CommitName = Shapes::StringShape.new(name: 'CommitName')
|
55
57
|
CommitRequiredException = Shapes::StructureShape.new(name: 'CommitRequiredException')
|
56
58
|
Content = Shapes::StringShape.new(name: 'Content')
|
@@ -73,6 +75,7 @@ module Aws::CodeCommit
|
|
73
75
|
Description = Shapes::StringShape.new(name: 'Description')
|
74
76
|
Difference = Shapes::StructureShape.new(name: 'Difference')
|
75
77
|
DifferenceList = Shapes::ListShape.new(name: 'DifferenceList')
|
78
|
+
DirectoryNameConflictsWithFileNameException = Shapes::StructureShape.new(name: 'DirectoryNameConflictsWithFileNameException')
|
76
79
|
Email = Shapes::StringShape.new(name: 'Email')
|
77
80
|
EncryptionIntegrityChecksFailedException = Shapes::StructureShape.new(name: 'EncryptionIntegrityChecksFailedException')
|
78
81
|
EncryptionKeyAccessDeniedException = Shapes::StructureShape.new(name: 'EncryptionKeyAccessDeniedException')
|
@@ -80,6 +83,11 @@ module Aws::CodeCommit
|
|
80
83
|
EncryptionKeyNotFoundException = Shapes::StructureShape.new(name: 'EncryptionKeyNotFoundException')
|
81
84
|
EncryptionKeyUnavailableException = Shapes::StructureShape.new(name: 'EncryptionKeyUnavailableException')
|
82
85
|
EventDate = Shapes::TimestampShape.new(name: 'EventDate')
|
86
|
+
FileContent = Shapes::BlobShape.new(name: 'FileContent')
|
87
|
+
FileContentRequiredException = Shapes::StructureShape.new(name: 'FileContentRequiredException')
|
88
|
+
FileContentSizeLimitExceededException = Shapes::StructureShape.new(name: 'FileContentSizeLimitExceededException')
|
89
|
+
FileModeTypeEnum = Shapes::StringShape.new(name: 'FileModeTypeEnum')
|
90
|
+
FileNameConflictsWithDirectoryNameException = Shapes::StructureShape.new(name: 'FileNameConflictsWithDirectoryNameException')
|
83
91
|
FileTooLargeException = Shapes::StructureShape.new(name: 'FileTooLargeException')
|
84
92
|
GetBlobInput = Shapes::StructureShape.new(name: 'GetBlobInput')
|
85
93
|
GetBlobOutput = Shapes::StructureShape.new(name: 'GetBlobOutput')
|
@@ -115,11 +123,14 @@ module Aws::CodeCommit
|
|
115
123
|
InvalidContinuationTokenException = Shapes::StructureShape.new(name: 'InvalidContinuationTokenException')
|
116
124
|
InvalidDescriptionException = Shapes::StructureShape.new(name: 'InvalidDescriptionException')
|
117
125
|
InvalidDestinationCommitSpecifierException = Shapes::StructureShape.new(name: 'InvalidDestinationCommitSpecifierException')
|
126
|
+
InvalidEmailException = Shapes::StructureShape.new(name: 'InvalidEmailException')
|
118
127
|
InvalidFileLocationException = Shapes::StructureShape.new(name: 'InvalidFileLocationException')
|
128
|
+
InvalidFileModeException = Shapes::StructureShape.new(name: 'InvalidFileModeException')
|
119
129
|
InvalidFilePositionException = Shapes::StructureShape.new(name: 'InvalidFilePositionException')
|
120
130
|
InvalidMaxResultsException = Shapes::StructureShape.new(name: 'InvalidMaxResultsException')
|
121
131
|
InvalidMergeOptionException = Shapes::StructureShape.new(name: 'InvalidMergeOptionException')
|
122
132
|
InvalidOrderException = Shapes::StructureShape.new(name: 'InvalidOrderException')
|
133
|
+
InvalidParentCommitIdException = Shapes::StructureShape.new(name: 'InvalidParentCommitIdException')
|
123
134
|
InvalidPathException = Shapes::StructureShape.new(name: 'InvalidPathException')
|
124
135
|
InvalidPullRequestEventTypeException = Shapes::StructureShape.new(name: 'InvalidPullRequestEventTypeException')
|
125
136
|
InvalidPullRequestIdException = Shapes::StructureShape.new(name: 'InvalidPullRequestIdException')
|
@@ -167,9 +178,13 @@ module Aws::CodeCommit
|
|
167
178
|
Mode = Shapes::StringShape.new(name: 'Mode')
|
168
179
|
MultipleRepositoriesInPullRequestException = Shapes::StructureShape.new(name: 'MultipleRepositoriesInPullRequestException')
|
169
180
|
Name = Shapes::StringShape.new(name: 'Name')
|
181
|
+
NameLengthExceededException = Shapes::StructureShape.new(name: 'NameLengthExceededException')
|
170
182
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
171
183
|
ObjectId = Shapes::StringShape.new(name: 'ObjectId')
|
172
184
|
OrderEnum = Shapes::StringShape.new(name: 'OrderEnum')
|
185
|
+
ParentCommitDoesNotExistException = Shapes::StructureShape.new(name: 'ParentCommitDoesNotExistException')
|
186
|
+
ParentCommitIdOutdatedException = Shapes::StructureShape.new(name: 'ParentCommitIdOutdatedException')
|
187
|
+
ParentCommitIdRequiredException = Shapes::StructureShape.new(name: 'ParentCommitIdRequiredException')
|
173
188
|
ParentList = Shapes::ListShape.new(name: 'ParentList')
|
174
189
|
Path = Shapes::StringShape.new(name: 'Path')
|
175
190
|
PathDoesNotExistException = Shapes::StructureShape.new(name: 'PathDoesNotExistException')
|
@@ -197,6 +212,8 @@ module Aws::CodeCommit
|
|
197
212
|
PullRequestStatusRequiredException = Shapes::StructureShape.new(name: 'PullRequestStatusRequiredException')
|
198
213
|
PullRequestTarget = Shapes::StructureShape.new(name: 'PullRequestTarget')
|
199
214
|
PullRequestTargetList = Shapes::ListShape.new(name: 'PullRequestTargetList')
|
215
|
+
PutFileInput = Shapes::StructureShape.new(name: 'PutFileInput')
|
216
|
+
PutFileOutput = Shapes::StructureShape.new(name: 'PutFileOutput')
|
200
217
|
PutRepositoryTriggersInput = Shapes::StructureShape.new(name: 'PutRepositoryTriggersInput')
|
201
218
|
PutRepositoryTriggersOutput = Shapes::StructureShape.new(name: 'PutRepositoryTriggersOutput')
|
202
219
|
ReferenceDoesNotExistException = Shapes::StructureShape.new(name: 'ReferenceDoesNotExistException')
|
@@ -235,6 +252,7 @@ module Aws::CodeCommit
|
|
235
252
|
RepositoryTriggersConfigurationId = Shapes::StringShape.new(name: 'RepositoryTriggersConfigurationId')
|
236
253
|
RepositoryTriggersList = Shapes::ListShape.new(name: 'RepositoryTriggersList')
|
237
254
|
RepositoryTriggersListRequiredException = Shapes::StructureShape.new(name: 'RepositoryTriggersListRequiredException')
|
255
|
+
SameFileContentException = Shapes::StructureShape.new(name: 'SameFileContentException')
|
238
256
|
SortByEnum = Shapes::StringShape.new(name: 'SortByEnum')
|
239
257
|
SourceAndDestinationAreSameException = Shapes::StructureShape.new(name: 'SourceAndDestinationAreSameException')
|
240
258
|
Target = Shapes::StructureShape.new(name: 'Target')
|
@@ -612,6 +630,22 @@ module Aws::CodeCommit
|
|
612
630
|
|
613
631
|
PullRequestTargetList.member = Shapes::ShapeRef.new(shape: PullRequestTarget)
|
614
632
|
|
633
|
+
PutFileInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
634
|
+
PutFileInput.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location_name: "branchName"))
|
635
|
+
PutFileInput.add_member(:file_content, Shapes::ShapeRef.new(shape: FileContent, required: true, location_name: "fileContent"))
|
636
|
+
PutFileInput.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
|
637
|
+
PutFileInput.add_member(:file_mode, Shapes::ShapeRef.new(shape: FileModeTypeEnum, location_name: "fileMode"))
|
638
|
+
PutFileInput.add_member(:parent_commit_id, Shapes::ShapeRef.new(shape: CommitId, location_name: "parentCommitId"))
|
639
|
+
PutFileInput.add_member(:commit_message, Shapes::ShapeRef.new(shape: Message, location_name: "commitMessage"))
|
640
|
+
PutFileInput.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
|
641
|
+
PutFileInput.add_member(:email, Shapes::ShapeRef.new(shape: Email, location_name: "email"))
|
642
|
+
PutFileInput.struct_class = Types::PutFileInput
|
643
|
+
|
644
|
+
PutFileOutput.add_member(:commit_id, Shapes::ShapeRef.new(shape: ObjectId, required: true, location_name: "commitId"))
|
645
|
+
PutFileOutput.add_member(:blob_id, Shapes::ShapeRef.new(shape: ObjectId, required: true, location_name: "blobId"))
|
646
|
+
PutFileOutput.add_member(:tree_id, Shapes::ShapeRef.new(shape: ObjectId, required: true, location_name: "treeId"))
|
647
|
+
PutFileOutput.struct_class = Types::PutFileOutput
|
648
|
+
|
615
649
|
PutRepositoryTriggersInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
616
650
|
PutRepositoryTriggersInput.add_member(:triggers, Shapes::ShapeRef.new(shape: RepositoryTriggersList, required: true, location_name: "triggers"))
|
617
651
|
PutRepositoryTriggersInput.struct_class = Types::PutRepositoryTriggersInput
|
@@ -1301,6 +1335,41 @@ module Aws::CodeCommit
|
|
1301
1335
|
o.errors << Shapes::ShapeRef.new(shape: InvalidCommentIdException)
|
1302
1336
|
end)
|
1303
1337
|
|
1338
|
+
api.add_operation(:put_file, Seahorse::Model::Operation.new.tap do |o|
|
1339
|
+
o.name = "PutFile"
|
1340
|
+
o.http_method = "POST"
|
1341
|
+
o.http_request_uri = "/"
|
1342
|
+
o.input = Shapes::ShapeRef.new(shape: PutFileInput)
|
1343
|
+
o.output = Shapes::ShapeRef.new(shape: PutFileOutput)
|
1344
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryNameRequiredException)
|
1345
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
|
1346
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
|
1347
|
+
o.errors << Shapes::ShapeRef.new(shape: ParentCommitIdRequiredException)
|
1348
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParentCommitIdException)
|
1349
|
+
o.errors << Shapes::ShapeRef.new(shape: ParentCommitDoesNotExistException)
|
1350
|
+
o.errors << Shapes::ShapeRef.new(shape: ParentCommitIdOutdatedException)
|
1351
|
+
o.errors << Shapes::ShapeRef.new(shape: FileContentRequiredException)
|
1352
|
+
o.errors << Shapes::ShapeRef.new(shape: FileContentSizeLimitExceededException)
|
1353
|
+
o.errors << Shapes::ShapeRef.new(shape: PathRequiredException)
|
1354
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidPathException)
|
1355
|
+
o.errors << Shapes::ShapeRef.new(shape: BranchNameRequiredException)
|
1356
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidBranchNameException)
|
1357
|
+
o.errors << Shapes::ShapeRef.new(shape: BranchDoesNotExistException)
|
1358
|
+
o.errors << Shapes::ShapeRef.new(shape: BranchNameIsTagNameException)
|
1359
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidFileModeException)
|
1360
|
+
o.errors << Shapes::ShapeRef.new(shape: NameLengthExceededException)
|
1361
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEmailException)
|
1362
|
+
o.errors << Shapes::ShapeRef.new(shape: CommitMessageLengthExceededException)
|
1363
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
|
1364
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
|
1365
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
1366
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
|
1367
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
1368
|
+
o.errors << Shapes::ShapeRef.new(shape: SameFileContentException)
|
1369
|
+
o.errors << Shapes::ShapeRef.new(shape: FileNameConflictsWithDirectoryNameException)
|
1370
|
+
o.errors << Shapes::ShapeRef.new(shape: DirectoryNameConflictsWithFileNameException)
|
1371
|
+
end)
|
1372
|
+
|
1304
1373
|
api.add_operation(:put_repository_triggers, Seahorse::Model::Operation.new.tap do |o|
|
1305
1374
|
o.name = "PutRepositoryTriggers"
|
1306
1375
|
o.http_method = "POST"
|
@@ -271,7 +271,8 @@ module Aws::CodeCommit
|
|
271
271
|
# @return [String]
|
272
272
|
#
|
273
273
|
# @!attribute [rw] parents
|
274
|
-
#
|
274
|
+
# A list of parent commits for the specified commit. Each parent
|
275
|
+
# commit ID is the full commit ID.
|
275
276
|
# @return [Array<String>]
|
276
277
|
#
|
277
278
|
# @!attribute [rw] message
|
@@ -1980,6 +1981,107 @@ module Aws::CodeCommit
|
|
1980
1981
|
include Aws::Structure
|
1981
1982
|
end
|
1982
1983
|
|
1984
|
+
# @note When making an API call, you may pass PutFileInput
|
1985
|
+
# data as a hash:
|
1986
|
+
#
|
1987
|
+
# {
|
1988
|
+
# repository_name: "RepositoryName", # required
|
1989
|
+
# branch_name: "BranchName", # required
|
1990
|
+
# file_content: "data", # required
|
1991
|
+
# file_path: "Path", # required
|
1992
|
+
# file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
|
1993
|
+
# parent_commit_id: "CommitId",
|
1994
|
+
# commit_message: "Message",
|
1995
|
+
# name: "Name",
|
1996
|
+
# email: "Email",
|
1997
|
+
# }
|
1998
|
+
#
|
1999
|
+
# @!attribute [rw] repository_name
|
2000
|
+
# The name of the repository where you want to add or update the file.
|
2001
|
+
# @return [String]
|
2002
|
+
#
|
2003
|
+
# @!attribute [rw] branch_name
|
2004
|
+
# The name of the branch where you want to add or update the file.
|
2005
|
+
# @return [String]
|
2006
|
+
#
|
2007
|
+
# @!attribute [rw] file_content
|
2008
|
+
# The content of the file, in binary object format.
|
2009
|
+
# @return [String]
|
2010
|
+
#
|
2011
|
+
# @!attribute [rw] file_path
|
2012
|
+
# The name of the file you want to add or update, including the
|
2013
|
+
# relative path to the file in the repository.
|
2014
|
+
#
|
2015
|
+
# <note markdown="1"> If the path does not currently exist in the repository, the path
|
2016
|
+
# will be created as part of adding the file.
|
2017
|
+
#
|
2018
|
+
# </note>
|
2019
|
+
# @return [String]
|
2020
|
+
#
|
2021
|
+
# @!attribute [rw] file_mode
|
2022
|
+
# The file mode permissions of the blob. Valid file mode permissions
|
2023
|
+
# are listed below.
|
2024
|
+
# @return [String]
|
2025
|
+
#
|
2026
|
+
# @!attribute [rw] parent_commit_id
|
2027
|
+
# The full commit ID of the head commit in the branch where you want
|
2028
|
+
# to add or update the file. If the commit ID does not match the ID of
|
2029
|
+
# the head commit at the time of the operation, an error will occur,
|
2030
|
+
# and the file will not be added or updated.
|
2031
|
+
# @return [String]
|
2032
|
+
#
|
2033
|
+
# @!attribute [rw] commit_message
|
2034
|
+
# A message about why this file was added or updated. While optional,
|
2035
|
+
# adding a message is strongly encouraged in order to provide a more
|
2036
|
+
# useful commit history for your repository.
|
2037
|
+
# @return [String]
|
2038
|
+
#
|
2039
|
+
# @!attribute [rw] name
|
2040
|
+
# The name of the person adding or updating the file. While optional,
|
2041
|
+
# adding a name is strongly encouraged in order to provide a more
|
2042
|
+
# useful commit history for your repository.
|
2043
|
+
# @return [String]
|
2044
|
+
#
|
2045
|
+
# @!attribute [rw] email
|
2046
|
+
# An email address for the person adding or updating the file.
|
2047
|
+
# @return [String]
|
2048
|
+
#
|
2049
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutFileInput AWS API Documentation
|
2050
|
+
#
|
2051
|
+
class PutFileInput < Struct.new(
|
2052
|
+
:repository_name,
|
2053
|
+
:branch_name,
|
2054
|
+
:file_content,
|
2055
|
+
:file_path,
|
2056
|
+
:file_mode,
|
2057
|
+
:parent_commit_id,
|
2058
|
+
:commit_message,
|
2059
|
+
:name,
|
2060
|
+
:email)
|
2061
|
+
include Aws::Structure
|
2062
|
+
end
|
2063
|
+
|
2064
|
+
# @!attribute [rw] commit_id
|
2065
|
+
# The full SHA of the commit that contains this file change.
|
2066
|
+
# @return [String]
|
2067
|
+
#
|
2068
|
+
# @!attribute [rw] blob_id
|
2069
|
+
# The ID of the blob, which is its SHA-1 pointer.
|
2070
|
+
# @return [String]
|
2071
|
+
#
|
2072
|
+
# @!attribute [rw] tree_id
|
2073
|
+
# Tree information for the commit that contains this file change.
|
2074
|
+
# @return [String]
|
2075
|
+
#
|
2076
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutFileOutput AWS API Documentation
|
2077
|
+
#
|
2078
|
+
class PutFileOutput < Struct.new(
|
2079
|
+
:commit_id,
|
2080
|
+
:blob_id,
|
2081
|
+
:tree_id)
|
2082
|
+
include Aws::Structure
|
2083
|
+
end
|
2084
|
+
|
1983
2085
|
# Represents the input ofa put repository triggers operation.
|
1984
2086
|
#
|
1985
2087
|
# @note When making an API call, you may pass PutRepositoryTriggersInput
|
@@ -2514,7 +2616,8 @@ module Aws::CodeCommit
|
|
2514
2616
|
# @return [String]
|
2515
2617
|
#
|
2516
2618
|
# @!attribute [rw] date
|
2517
|
-
# The date when the specified commit was
|
2619
|
+
# The date when the specified commit was commited, in timestamp format
|
2620
|
+
# with GMT offset.
|
2518
2621
|
# @return [String]
|
2519
2622
|
#
|
2520
2623
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UserInfo 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.3.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:
|
11
|
+
date: 2018-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|