aws-sdk-codecommit 1.6.0 → 1.7.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 +23 -6
- data/lib/aws-sdk-codecommit/client_api.rb +10 -0
- data/lib/aws-sdk-codecommit/types.rb +62 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d8e049d32934aa2eda87bb9e0d38ead90c1729f
|
4
|
+
data.tar.gz: 216270650795477156450daf7c003f5ebca1cd88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28d6fe1bd257aecc9915b28b207c0e522dbb77c3933d72579d61636b132746033971b30de3b3aba17736f909a79c49a672014811b7a10e1a035139c3d4b96ffa
|
7
|
+
data.tar.gz: fd4ee804e25c5ee9f39f14524f4e14fbe042309ef74f050f54231f474ef755cdd2b06a7f906a2397f60c35b1e732cacde6bc512ccc9ba98beaee526feefafad4
|
data/lib/aws-sdk-codecommit.rb
CHANGED
@@ -336,6 +336,7 @@ module Aws::CodeCommit
|
|
336
336
|
# resp.pull_request.pull_request_targets[0].source_reference #=> String
|
337
337
|
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
|
338
338
|
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
|
339
|
+
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
339
340
|
# resp.pull_request.pull_request_targets[0].source_commit #=> String
|
340
341
|
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
|
341
342
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
|
@@ -562,10 +563,15 @@ module Aws::CodeCommit
|
|
562
563
|
# resp.pull_request_events[0].event_date #=> Time
|
563
564
|
# resp.pull_request_events[0].pull_request_event_type #=> String, one of "PULL_REQUEST_CREATED", "PULL_REQUEST_STATUS_CHANGED", "PULL_REQUEST_SOURCE_REFERENCE_UPDATED", "PULL_REQUEST_MERGE_STATE_CHANGED"
|
564
565
|
# resp.pull_request_events[0].actor_arn #=> String
|
566
|
+
# resp.pull_request_events[0].pull_request_created_event_metadata.repository_name #=> String
|
567
|
+
# resp.pull_request_events[0].pull_request_created_event_metadata.source_commit_id #=> String
|
568
|
+
# resp.pull_request_events[0].pull_request_created_event_metadata.destination_commit_id #=> String
|
569
|
+
# resp.pull_request_events[0].pull_request_created_event_metadata.merge_base #=> String
|
565
570
|
# resp.pull_request_events[0].pull_request_status_changed_event_metadata.pull_request_status #=> String, one of "OPEN", "CLOSED"
|
566
571
|
# resp.pull_request_events[0].pull_request_source_reference_updated_event_metadata.repository_name #=> String
|
567
572
|
# resp.pull_request_events[0].pull_request_source_reference_updated_event_metadata.before_commit_id #=> String
|
568
573
|
# resp.pull_request_events[0].pull_request_source_reference_updated_event_metadata.after_commit_id #=> String
|
574
|
+
# resp.pull_request_events[0].pull_request_source_reference_updated_event_metadata.merge_base #=> String
|
569
575
|
# resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.repository_name #=> String
|
570
576
|
# resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.destination_reference #=> String
|
571
577
|
# resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.merge_metadata.is_merged #=> Boolean
|
@@ -1025,6 +1031,7 @@ module Aws::CodeCommit
|
|
1025
1031
|
# resp.pull_request.pull_request_targets[0].source_reference #=> String
|
1026
1032
|
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
|
1027
1033
|
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
|
1034
|
+
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1028
1035
|
# resp.pull_request.pull_request_targets[0].source_commit #=> String
|
1029
1036
|
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
|
1030
1037
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
|
@@ -1297,6 +1304,7 @@ module Aws::CodeCommit
|
|
1297
1304
|
# resp.pull_request.pull_request_targets[0].source_reference #=> String
|
1298
1305
|
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
|
1299
1306
|
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
|
1307
|
+
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1300
1308
|
# resp.pull_request.pull_request_targets[0].source_commit #=> String
|
1301
1309
|
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
|
1302
1310
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
|
@@ -1541,13 +1549,15 @@ module Aws::CodeCommit
|
|
1541
1549
|
req.send_request(options)
|
1542
1550
|
end
|
1543
1551
|
|
1544
|
-
# Adds or updates a file in an AWS CodeCommit repository
|
1552
|
+
# Adds or updates a file in a branch in an AWS CodeCommit repository,
|
1553
|
+
# and generates a commit for the addition in the specified branch.
|
1545
1554
|
#
|
1546
1555
|
# @option params [required, String] :repository_name
|
1547
1556
|
# The name of the repository where you want to add or update the file.
|
1548
1557
|
#
|
1549
1558
|
# @option params [required, String] :branch_name
|
1550
|
-
# The name of the branch where you want to add or update the file.
|
1559
|
+
# The name of the branch where you want to add or update the file. If
|
1560
|
+
# this is an empty repository, this branch will be created.
|
1551
1561
|
#
|
1552
1562
|
# @option params [required, String, IO] :file_content
|
1553
1563
|
# The content of the file, in binary object format.
|
@@ -1567,9 +1577,13 @@ module Aws::CodeCommit
|
|
1567
1577
|
#
|
1568
1578
|
# @option params [String] :parent_commit_id
|
1569
1579
|
# The full commit ID of the head commit in the branch where you want to
|
1570
|
-
# add or update the file. If
|
1571
|
-
#
|
1572
|
-
#
|
1580
|
+
# add or update the file. If this is an empty repository, no commit ID
|
1581
|
+
# is required. If this is not an empty repository, a commit ID is
|
1582
|
+
# required.
|
1583
|
+
#
|
1584
|
+
# The commit ID must match the ID of the head commit at the time of the
|
1585
|
+
# operation, or an error will occur, and the file will not be added or
|
1586
|
+
# updated.
|
1573
1587
|
#
|
1574
1588
|
# @option params [String] :commit_message
|
1575
1589
|
# A message about why this file was added or updated. While optional,
|
@@ -1817,6 +1831,7 @@ module Aws::CodeCommit
|
|
1817
1831
|
# resp.pull_request.pull_request_targets[0].source_reference #=> String
|
1818
1832
|
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
|
1819
1833
|
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
|
1834
|
+
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1820
1835
|
# resp.pull_request.pull_request_targets[0].source_commit #=> String
|
1821
1836
|
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
|
1822
1837
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
|
@@ -1867,6 +1882,7 @@ module Aws::CodeCommit
|
|
1867
1882
|
# resp.pull_request.pull_request_targets[0].source_reference #=> String
|
1868
1883
|
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
|
1869
1884
|
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
|
1885
|
+
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1870
1886
|
# resp.pull_request.pull_request_targets[0].source_commit #=> String
|
1871
1887
|
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
|
1872
1888
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
|
@@ -1916,6 +1932,7 @@ module Aws::CodeCommit
|
|
1916
1932
|
# resp.pull_request.pull_request_targets[0].source_reference #=> String
|
1917
1933
|
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
|
1918
1934
|
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
|
1935
|
+
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1919
1936
|
# resp.pull_request.pull_request_targets[0].source_commit #=> String
|
1920
1937
|
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
|
1921
1938
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
|
@@ -2015,7 +2032,7 @@ module Aws::CodeCommit
|
|
2015
2032
|
params: params,
|
2016
2033
|
config: config)
|
2017
2034
|
context[:gem_name] = 'aws-sdk-codecommit'
|
2018
|
-
context[:gem_version] = '1.
|
2035
|
+
context[:gem_version] = '1.7.0'
|
2019
2036
|
Seahorse::Client::Request.new(handlers, context)
|
2020
2037
|
end
|
2021
2038
|
|
@@ -198,6 +198,7 @@ module Aws::CodeCommit
|
|
198
198
|
PostCommentReplyOutput = Shapes::StructureShape.new(name: 'PostCommentReplyOutput')
|
199
199
|
PullRequest = Shapes::StructureShape.new(name: 'PullRequest')
|
200
200
|
PullRequestAlreadyClosedException = Shapes::StructureShape.new(name: 'PullRequestAlreadyClosedException')
|
201
|
+
PullRequestCreatedEventMetadata = Shapes::StructureShape.new(name: 'PullRequestCreatedEventMetadata')
|
201
202
|
PullRequestDoesNotExistException = Shapes::StructureShape.new(name: 'PullRequestDoesNotExistException')
|
202
203
|
PullRequestEvent = Shapes::StructureShape.new(name: 'PullRequestEvent')
|
203
204
|
PullRequestEventList = Shapes::ListShape.new(name: 'PullRequestEventList')
|
@@ -594,10 +595,17 @@ module Aws::CodeCommit
|
|
594
595
|
PullRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "clientRequestToken"))
|
595
596
|
PullRequest.struct_class = Types::PullRequest
|
596
597
|
|
598
|
+
PullRequestCreatedEventMetadata.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, location_name: "repositoryName"))
|
599
|
+
PullRequestCreatedEventMetadata.add_member(:source_commit_id, Shapes::ShapeRef.new(shape: CommitId, location_name: "sourceCommitId"))
|
600
|
+
PullRequestCreatedEventMetadata.add_member(:destination_commit_id, Shapes::ShapeRef.new(shape: CommitId, location_name: "destinationCommitId"))
|
601
|
+
PullRequestCreatedEventMetadata.add_member(:merge_base, Shapes::ShapeRef.new(shape: CommitId, location_name: "mergeBase"))
|
602
|
+
PullRequestCreatedEventMetadata.struct_class = Types::PullRequestCreatedEventMetadata
|
603
|
+
|
597
604
|
PullRequestEvent.add_member(:pull_request_id, Shapes::ShapeRef.new(shape: PullRequestId, location_name: "pullRequestId"))
|
598
605
|
PullRequestEvent.add_member(:event_date, Shapes::ShapeRef.new(shape: EventDate, location_name: "eventDate"))
|
599
606
|
PullRequestEvent.add_member(:pull_request_event_type, Shapes::ShapeRef.new(shape: PullRequestEventType, location_name: "pullRequestEventType"))
|
600
607
|
PullRequestEvent.add_member(:actor_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "actorArn"))
|
608
|
+
PullRequestEvent.add_member(:pull_request_created_event_metadata, Shapes::ShapeRef.new(shape: PullRequestCreatedEventMetadata, location_name: "pullRequestCreatedEventMetadata"))
|
601
609
|
PullRequestEvent.add_member(:pull_request_status_changed_event_metadata, Shapes::ShapeRef.new(shape: PullRequestStatusChangedEventMetadata, location_name: "pullRequestStatusChangedEventMetadata"))
|
602
610
|
PullRequestEvent.add_member(:pull_request_source_reference_updated_event_metadata, Shapes::ShapeRef.new(shape: PullRequestSourceReferenceUpdatedEventMetadata, location_name: "pullRequestSourceReferenceUpdatedEventMetadata"))
|
603
611
|
PullRequestEvent.add_member(:pull_request_merged_state_changed_event_metadata, Shapes::ShapeRef.new(shape: PullRequestMergedStateChangedEventMetadata, location_name: "pullRequestMergedStateChangedEventMetadata"))
|
@@ -615,6 +623,7 @@ module Aws::CodeCommit
|
|
615
623
|
PullRequestSourceReferenceUpdatedEventMetadata.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, location_name: "repositoryName"))
|
616
624
|
PullRequestSourceReferenceUpdatedEventMetadata.add_member(:before_commit_id, Shapes::ShapeRef.new(shape: CommitId, location_name: "beforeCommitId"))
|
617
625
|
PullRequestSourceReferenceUpdatedEventMetadata.add_member(:after_commit_id, Shapes::ShapeRef.new(shape: CommitId, location_name: "afterCommitId"))
|
626
|
+
PullRequestSourceReferenceUpdatedEventMetadata.add_member(:merge_base, Shapes::ShapeRef.new(shape: CommitId, location_name: "mergeBase"))
|
618
627
|
PullRequestSourceReferenceUpdatedEventMetadata.struct_class = Types::PullRequestSourceReferenceUpdatedEventMetadata
|
619
628
|
|
620
629
|
PullRequestStatusChangedEventMetadata.add_member(:pull_request_status, Shapes::ShapeRef.new(shape: PullRequestStatusEnum, location_name: "pullRequestStatus"))
|
@@ -624,6 +633,7 @@ module Aws::CodeCommit
|
|
624
633
|
PullRequestTarget.add_member(:source_reference, Shapes::ShapeRef.new(shape: ReferenceName, location_name: "sourceReference"))
|
625
634
|
PullRequestTarget.add_member(:destination_reference, Shapes::ShapeRef.new(shape: ReferenceName, location_name: "destinationReference"))
|
626
635
|
PullRequestTarget.add_member(:destination_commit, Shapes::ShapeRef.new(shape: CommitId, location_name: "destinationCommit"))
|
636
|
+
PullRequestTarget.add_member(:merge_base, Shapes::ShapeRef.new(shape: CommitId, location_name: "mergeBase"))
|
627
637
|
PullRequestTarget.add_member(:source_commit, Shapes::ShapeRef.new(shape: CommitId, location_name: "sourceCommit"))
|
628
638
|
PullRequestTarget.add_member(:merge_metadata, Shapes::ShapeRef.new(shape: MergeMetadata, location_name: "mergeMetadata"))
|
629
639
|
PullRequestTarget.struct_class = Types::PullRequestTarget
|
@@ -1824,6 +1824,38 @@ module Aws::CodeCommit
|
|
1824
1824
|
include Aws::Structure
|
1825
1825
|
end
|
1826
1826
|
|
1827
|
+
# Metadata about the pull request that is used when comparing the pull
|
1828
|
+
# request source with its destination.
|
1829
|
+
#
|
1830
|
+
# @!attribute [rw] repository_name
|
1831
|
+
# The name of the repository where the pull request was created.
|
1832
|
+
# @return [String]
|
1833
|
+
#
|
1834
|
+
# @!attribute [rw] source_commit_id
|
1835
|
+
# The commit ID on the source branch used when the pull request was
|
1836
|
+
# created.
|
1837
|
+
# @return [String]
|
1838
|
+
#
|
1839
|
+
# @!attribute [rw] destination_commit_id
|
1840
|
+
# The commit ID of the tip of the branch specified as the destination
|
1841
|
+
# branch when the pull request was created.
|
1842
|
+
# @return [String]
|
1843
|
+
#
|
1844
|
+
# @!attribute [rw] merge_base
|
1845
|
+
# The commit ID of the most recent commit that the source branch and
|
1846
|
+
# the destination branch have in common.
|
1847
|
+
# @return [String]
|
1848
|
+
#
|
1849
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PullRequestCreatedEventMetadata AWS API Documentation
|
1850
|
+
#
|
1851
|
+
class PullRequestCreatedEventMetadata < Struct.new(
|
1852
|
+
:repository_name,
|
1853
|
+
:source_commit_id,
|
1854
|
+
:destination_commit_id,
|
1855
|
+
:merge_base)
|
1856
|
+
include Aws::Structure
|
1857
|
+
end
|
1858
|
+
|
1827
1859
|
# Returns information about a pull request event.
|
1828
1860
|
#
|
1829
1861
|
# @!attribute [rw] pull_request_id
|
@@ -1846,6 +1878,11 @@ module Aws::CodeCommit
|
|
1846
1878
|
# additional commits or changing the status of a pull request.
|
1847
1879
|
# @return [String]
|
1848
1880
|
#
|
1881
|
+
# @!attribute [rw] pull_request_created_event_metadata
|
1882
|
+
# Information about the source and destination branches for the pull
|
1883
|
+
# request.
|
1884
|
+
# @return [Types::PullRequestCreatedEventMetadata]
|
1885
|
+
#
|
1849
1886
|
# @!attribute [rw] pull_request_status_changed_event_metadata
|
1850
1887
|
# Information about the change in status for the pull request event.
|
1851
1888
|
# @return [Types::PullRequestStatusChangedEventMetadata]
|
@@ -1867,6 +1904,7 @@ module Aws::CodeCommit
|
|
1867
1904
|
:event_date,
|
1868
1905
|
:pull_request_event_type,
|
1869
1906
|
:actor_arn,
|
1907
|
+
:pull_request_created_event_metadata,
|
1870
1908
|
:pull_request_status_changed_event_metadata,
|
1871
1909
|
:pull_request_source_reference_updated_event_metadata,
|
1872
1910
|
:pull_request_merged_state_changed_event_metadata)
|
@@ -1913,12 +1951,18 @@ module Aws::CodeCommit
|
|
1913
1951
|
# tip of the branch at the time the pull request was updated.
|
1914
1952
|
# @return [String]
|
1915
1953
|
#
|
1954
|
+
# @!attribute [rw] merge_base
|
1955
|
+
# The commit ID of the most recent commit that the source branch and
|
1956
|
+
# the destination branch have in common.
|
1957
|
+
# @return [String]
|
1958
|
+
#
|
1916
1959
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PullRequestSourceReferenceUpdatedEventMetadata AWS API Documentation
|
1917
1960
|
#
|
1918
1961
|
class PullRequestSourceReferenceUpdatedEventMetadata < Struct.new(
|
1919
1962
|
:repository_name,
|
1920
1963
|
:before_commit_id,
|
1921
|
-
:after_commit_id
|
1964
|
+
:after_commit_id,
|
1965
|
+
:merge_base)
|
1922
1966
|
include Aws::Structure
|
1923
1967
|
end
|
1924
1968
|
|
@@ -1957,6 +2001,11 @@ module Aws::CodeCommit
|
|
1957
2001
|
# is the commit where the pull request was or will be merged.
|
1958
2002
|
# @return [String]
|
1959
2003
|
#
|
2004
|
+
# @!attribute [rw] merge_base
|
2005
|
+
# The commit ID of the most recent commit that the source branch and
|
2006
|
+
# the destination branch have in common.
|
2007
|
+
# @return [String]
|
2008
|
+
#
|
1960
2009
|
# @!attribute [rw] source_commit
|
1961
2010
|
# The full commit ID of the tip of the source branch used to create
|
1962
2011
|
# the pull request. If the pull request branch is updated by a push
|
@@ -1976,6 +2025,7 @@ module Aws::CodeCommit
|
|
1976
2025
|
:source_reference,
|
1977
2026
|
:destination_reference,
|
1978
2027
|
:destination_commit,
|
2028
|
+
:merge_base,
|
1979
2029
|
:source_commit,
|
1980
2030
|
:merge_metadata)
|
1981
2031
|
include Aws::Structure
|
@@ -2001,7 +2051,8 @@ module Aws::CodeCommit
|
|
2001
2051
|
# @return [String]
|
2002
2052
|
#
|
2003
2053
|
# @!attribute [rw] branch_name
|
2004
|
-
# The name of the branch where you want to add or update the file.
|
2054
|
+
# The name of the branch where you want to add or update the file. If
|
2055
|
+
# this is an empty repository, this branch will be created.
|
2005
2056
|
# @return [String]
|
2006
2057
|
#
|
2007
2058
|
# @!attribute [rw] file_content
|
@@ -2025,9 +2076,13 @@ module Aws::CodeCommit
|
|
2025
2076
|
#
|
2026
2077
|
# @!attribute [rw] parent_commit_id
|
2027
2078
|
# The full commit ID of the head commit in the branch where you want
|
2028
|
-
# to add or update the file. If
|
2029
|
-
#
|
2030
|
-
#
|
2079
|
+
# to add or update the file. If this is an empty repository, no commit
|
2080
|
+
# ID is required. If this is not an empty repository, a commit ID is
|
2081
|
+
# required.
|
2082
|
+
#
|
2083
|
+
# The commit ID must match the ID of the head commit at the time of
|
2084
|
+
# the operation, or an error will occur, and the file will not be
|
2085
|
+
# added or updated.
|
2031
2086
|
# @return [String]
|
2032
2087
|
#
|
2033
2088
|
# @!attribute [rw] commit_message
|
@@ -2070,7 +2125,8 @@ module Aws::CodeCommit
|
|
2070
2125
|
# @return [String]
|
2071
2126
|
#
|
2072
2127
|
# @!attribute [rw] tree_id
|
2073
|
-
#
|
2128
|
+
# The full SHA-1 pointer of the tree information for the commit that
|
2129
|
+
# contains this file change.
|
2074
2130
|
# @return [String]
|
2075
2131
|
#
|
2076
2132
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutFileOutput AWS API Documentation
|