aws-sdk-codecommit 1.21.0 → 1.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,154 @@
8
8
  module Aws::CodeCommit
9
9
  module Types
10
10
 
11
+ # Information about errors in a BatchDescribeMergeConflicts operation.
12
+ #
13
+ # @!attribute [rw] file_path
14
+ # The path to the file.
15
+ # @return [String]
16
+ #
17
+ # @!attribute [rw] exception_name
18
+ # The name of the exception.
19
+ # @return [String]
20
+ #
21
+ # @!attribute [rw] message
22
+ # The message provided by the exception.
23
+ # @return [String]
24
+ #
25
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchDescribeMergeConflictsError AWS API Documentation
26
+ #
27
+ class BatchDescribeMergeConflictsError < Struct.new(
28
+ :file_path,
29
+ :exception_name,
30
+ :message)
31
+ include Aws::Structure
32
+ end
33
+
34
+ # @note When making an API call, you may pass BatchDescribeMergeConflictsInput
35
+ # data as a hash:
36
+ #
37
+ # {
38
+ # repository_name: "RepositoryName", # required
39
+ # destination_commit_specifier: "CommitName", # required
40
+ # source_commit_specifier: "CommitName", # required
41
+ # merge_option: "FAST_FORWARD_MERGE", # required, accepts FAST_FORWARD_MERGE, SQUASH_MERGE, THREE_WAY_MERGE
42
+ # max_merge_hunks: 1,
43
+ # max_conflict_files: 1,
44
+ # file_paths: ["Path"],
45
+ # conflict_detail_level: "FILE_LEVEL", # accepts FILE_LEVEL, LINE_LEVEL
46
+ # conflict_resolution_strategy: "NONE", # accepts NONE, ACCEPT_SOURCE, ACCEPT_DESTINATION, AUTOMERGE
47
+ # next_token: "NextToken",
48
+ # }
49
+ #
50
+ # @!attribute [rw] repository_name
51
+ # The name of the repository that contains the merge conflicts you
52
+ # want to review.
53
+ # @return [String]
54
+ #
55
+ # @!attribute [rw] destination_commit_specifier
56
+ # The branch, tag, HEAD, or other fully qualified reference used to
57
+ # identify a commit. For example, a branch name or a full commit ID.
58
+ # @return [String]
59
+ #
60
+ # @!attribute [rw] source_commit_specifier
61
+ # The branch, tag, HEAD, or other fully qualified reference used to
62
+ # identify a commit. For example, a branch name or a full commit ID.
63
+ # @return [String]
64
+ #
65
+ # @!attribute [rw] merge_option
66
+ # The merge option or strategy you want to use to merge the code.
67
+ # @return [String]
68
+ #
69
+ # @!attribute [rw] max_merge_hunks
70
+ # The maximum number of merge hunks to include in the output.
71
+ # @return [Integer]
72
+ #
73
+ # @!attribute [rw] max_conflict_files
74
+ # The maximum number of files to include in the output.
75
+ # @return [Integer]
76
+ #
77
+ # @!attribute [rw] file_paths
78
+ # The path of the target files used to describe the conflicts. If not
79
+ # specified, the default is all conflict files.
80
+ # @return [Array<String>]
81
+ #
82
+ # @!attribute [rw] conflict_detail_level
83
+ # The level of conflict detail to use. If unspecified, the default
84
+ # FILE\_LEVEL is used, which will return a not mergeable result if the
85
+ # same file has differences in both branches. If LINE\_LEVEL is
86
+ # specified, a conflict will be considered not mergeable if the same
87
+ # file in both branches has differences on the same line.
88
+ # @return [String]
89
+ #
90
+ # @!attribute [rw] conflict_resolution_strategy
91
+ # Specifies which branch to use when resolving conflicts, or whether
92
+ # to attempt automatically merging two versions of a file. The default
93
+ # is NONE, which requires any conflicts to be resolved manually before
94
+ # the merge operation will be successful.
95
+ # @return [String]
96
+ #
97
+ # @!attribute [rw] next_token
98
+ # An enumeration token that when provided in a request, returns the
99
+ # next batch of the results.
100
+ # @return [String]
101
+ #
102
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchDescribeMergeConflictsInput AWS API Documentation
103
+ #
104
+ class BatchDescribeMergeConflictsInput < Struct.new(
105
+ :repository_name,
106
+ :destination_commit_specifier,
107
+ :source_commit_specifier,
108
+ :merge_option,
109
+ :max_merge_hunks,
110
+ :max_conflict_files,
111
+ :file_paths,
112
+ :conflict_detail_level,
113
+ :conflict_resolution_strategy,
114
+ :next_token)
115
+ include Aws::Structure
116
+ end
117
+
118
+ # @!attribute [rw] conflicts
119
+ # A list of conflicts for each file, including the conflict metadata
120
+ # and the hunks of the differences between the files.
121
+ # @return [Array<Types::Conflict>]
122
+ #
123
+ # @!attribute [rw] next_token
124
+ # An enumeration token that can be used in a request to return the
125
+ # next batch of the results.
126
+ # @return [String]
127
+ #
128
+ # @!attribute [rw] errors
129
+ # A list of any errors returned while describing the merge conflicts
130
+ # for each file.
131
+ # @return [Array<Types::BatchDescribeMergeConflictsError>]
132
+ #
133
+ # @!attribute [rw] destination_commit_id
134
+ # The commit ID of the destination commit specifier that was used in
135
+ # the merge evaluation.
136
+ # @return [String]
137
+ #
138
+ # @!attribute [rw] source_commit_id
139
+ # The commit ID of the source commit specifier that was used in the
140
+ # merge evaluation.
141
+ # @return [String]
142
+ #
143
+ # @!attribute [rw] base_commit_id
144
+ # The commit ID of the merge base.
145
+ # @return [String]
146
+ #
147
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchDescribeMergeConflictsOutput AWS API Documentation
148
+ #
149
+ class BatchDescribeMergeConflictsOutput < Struct.new(
150
+ :conflicts,
151
+ :next_token,
152
+ :errors,
153
+ :destination_commit_id,
154
+ :source_commit_id,
155
+ :base_commit_id)
156
+ include Aws::Structure
157
+ end
158
+
11
159
  # Represents the input of a batch get repositories operation.
12
160
  #
13
161
  # @note When making an API call, you may pass BatchGetRepositoriesInput
@@ -318,6 +466,141 @@ module Aws::CodeCommit
318
466
  include Aws::Structure
319
467
  end
320
468
 
469
+ # Information about conflicts in a merge operation.
470
+ #
471
+ # @!attribute [rw] conflict_metadata
472
+ # Metadata about a conflict in a merge operation.
473
+ # @return [Types::ConflictMetadata]
474
+ #
475
+ # @!attribute [rw] merge_hunks
476
+ # A list of hunks that contain the differences between files or lines
477
+ # causing the conflict.
478
+ # @return [Array<Types::MergeHunk>]
479
+ #
480
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/Conflict AWS API Documentation
481
+ #
482
+ class Conflict < Struct.new(
483
+ :conflict_metadata,
484
+ :merge_hunks)
485
+ include Aws::Structure
486
+ end
487
+
488
+ # Information about the metadata for a conflict in a merge operation.
489
+ #
490
+ # @!attribute [rw] file_path
491
+ # The path of the file that contains conflicts.
492
+ # @return [String]
493
+ #
494
+ # @!attribute [rw] file_sizes
495
+ # The file sizes of the file in the source, destination, and base of
496
+ # the merge.
497
+ # @return [Types::FileSizes]
498
+ #
499
+ # @!attribute [rw] file_modes
500
+ # The file modes of the file in the source, destination, and base of
501
+ # the merge.
502
+ # @return [Types::FileModes]
503
+ #
504
+ # @!attribute [rw] object_types
505
+ # Information about any object type conflicts in a merge operation.
506
+ # @return [Types::ObjectTypes]
507
+ #
508
+ # @!attribute [rw] number_of_conflicts
509
+ # The number of conflicts, including both hunk conflicts and metadata
510
+ # conflicts.
511
+ # @return [Integer]
512
+ #
513
+ # @!attribute [rw] is_binary_file
514
+ # A boolean value (true or false) indicating whether the file is
515
+ # binary or textual in the source, destination, and base of the merge.
516
+ # @return [Types::IsBinaryFile]
517
+ #
518
+ # @!attribute [rw] content_conflict
519
+ # A boolean value indicating whether there are conflicts in the
520
+ # content of a file.
521
+ # @return [Boolean]
522
+ #
523
+ # @!attribute [rw] file_mode_conflict
524
+ # A boolean value indicating whether there are conflicts in the file
525
+ # mode of a file.
526
+ # @return [Boolean]
527
+ #
528
+ # @!attribute [rw] object_type_conflict
529
+ # A boolean value (true or false) indicating whether there are
530
+ # conflicts in the object type of a file.
531
+ # @return [Boolean]
532
+ #
533
+ # @!attribute [rw] merge_operations
534
+ # Whether an add, modify, or delete operation caused the conflict
535
+ # between the source and destination of the merge.
536
+ # @return [Types::MergeOperations]
537
+ #
538
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ConflictMetadata AWS API Documentation
539
+ #
540
+ class ConflictMetadata < Struct.new(
541
+ :file_path,
542
+ :file_sizes,
543
+ :file_modes,
544
+ :object_types,
545
+ :number_of_conflicts,
546
+ :is_binary_file,
547
+ :content_conflict,
548
+ :file_mode_conflict,
549
+ :object_type_conflict,
550
+ :merge_operations)
551
+ include Aws::Structure
552
+ end
553
+
554
+ # A list of inputs to use when resolving conflicts during a merge if
555
+ # AUTOMERGE is chosen as the conflict resolution strategy.
556
+ #
557
+ # @note When making an API call, you may pass ConflictResolution
558
+ # data as a hash:
559
+ #
560
+ # {
561
+ # replace_contents: [
562
+ # {
563
+ # file_path: "Path", # required
564
+ # replacement_type: "KEEP_BASE", # required, accepts KEEP_BASE, KEEP_SOURCE, KEEP_DESTINATION, USE_NEW_CONTENT
565
+ # content: "data",
566
+ # file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
567
+ # },
568
+ # ],
569
+ # delete_files: [
570
+ # {
571
+ # file_path: "Path", # required
572
+ # },
573
+ # ],
574
+ # set_file_modes: [
575
+ # {
576
+ # file_path: "Path", # required
577
+ # file_mode: "EXECUTABLE", # required, accepts EXECUTABLE, NORMAL, SYMLINK
578
+ # },
579
+ # ],
580
+ # }
581
+ #
582
+ # @!attribute [rw] replace_contents
583
+ # Information about how a conflict in a merge will be resolved.
584
+ # @return [Array<Types::ReplaceContentEntry>]
585
+ #
586
+ # @!attribute [rw] delete_files
587
+ # Files that will be deleted as part of the merge conflict resolution.
588
+ # @return [Array<Types::DeleteFileEntry>]
589
+ #
590
+ # @!attribute [rw] set_file_modes
591
+ # File modes that will be set as part of the merge conflict
592
+ # resolution.
593
+ # @return [Array<Types::SetFileModeEntry>]
594
+ #
595
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ConflictResolution AWS API Documentation
596
+ #
597
+ class ConflictResolution < Struct.new(
598
+ :replace_contents,
599
+ :delete_files,
600
+ :set_file_modes)
601
+ include Aws::Structure
602
+ end
603
+
321
604
  # Represents the input of a create branch operation.
322
605
  #
323
606
  # @note When making an API call, you may pass CreateBranchInput
@@ -418,7 +701,7 @@ module Aws::CodeCommit
418
701
  # If the commit contains deletions, whether to keep a folder or folder
419
702
  # structure if the changes leave the folders empty. If this is
420
703
  # specified as true, a .gitkeep file will be created for empty
421
- # folders.
704
+ # folders. The default is false.
422
705
  # @return [Boolean]
423
706
  #
424
707
  # @!attribute [rw] put_files
@@ -622,6 +905,138 @@ module Aws::CodeCommit
622
905
  include Aws::Structure
623
906
  end
624
907
 
908
+ # @note When making an API call, you may pass CreateUnreferencedMergeCommitInput
909
+ # data as a hash:
910
+ #
911
+ # {
912
+ # repository_name: "RepositoryName", # required
913
+ # source_commit_specifier: "CommitName", # required
914
+ # destination_commit_specifier: "CommitName", # required
915
+ # merge_option: "FAST_FORWARD_MERGE", # required, accepts FAST_FORWARD_MERGE, SQUASH_MERGE, THREE_WAY_MERGE
916
+ # conflict_detail_level: "FILE_LEVEL", # accepts FILE_LEVEL, LINE_LEVEL
917
+ # conflict_resolution_strategy: "NONE", # accepts NONE, ACCEPT_SOURCE, ACCEPT_DESTINATION, AUTOMERGE
918
+ # author_name: "Name",
919
+ # email: "Email",
920
+ # commit_message: "Message",
921
+ # keep_empty_folders: false,
922
+ # conflict_resolution: {
923
+ # replace_contents: [
924
+ # {
925
+ # file_path: "Path", # required
926
+ # replacement_type: "KEEP_BASE", # required, accepts KEEP_BASE, KEEP_SOURCE, KEEP_DESTINATION, USE_NEW_CONTENT
927
+ # content: "data",
928
+ # file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
929
+ # },
930
+ # ],
931
+ # delete_files: [
932
+ # {
933
+ # file_path: "Path", # required
934
+ # },
935
+ # ],
936
+ # set_file_modes: [
937
+ # {
938
+ # file_path: "Path", # required
939
+ # file_mode: "EXECUTABLE", # required, accepts EXECUTABLE, NORMAL, SYMLINK
940
+ # },
941
+ # ],
942
+ # },
943
+ # }
944
+ #
945
+ # @!attribute [rw] repository_name
946
+ # The name of the repository where you want to create the unreferenced
947
+ # merge commit.
948
+ # @return [String]
949
+ #
950
+ # @!attribute [rw] source_commit_specifier
951
+ # The branch, tag, HEAD, or other fully qualified reference used to
952
+ # identify a commit. For example, a branch name or a full commit ID.
953
+ # @return [String]
954
+ #
955
+ # @!attribute [rw] destination_commit_specifier
956
+ # The branch, tag, HEAD, or other fully qualified reference used to
957
+ # identify a commit. For example, a branch name or a full commit ID.
958
+ # @return [String]
959
+ #
960
+ # @!attribute [rw] merge_option
961
+ # The merge option or strategy you want to use to merge the code.
962
+ # @return [String]
963
+ #
964
+ # @!attribute [rw] conflict_detail_level
965
+ # The level of conflict detail to use. If unspecified, the default
966
+ # FILE\_LEVEL is used, which will return a not mergeable result if the
967
+ # same file has differences in both branches. If LINE\_LEVEL is
968
+ # specified, a conflict will be considered not mergeable if the same
969
+ # file in both branches has differences on the same line.
970
+ # @return [String]
971
+ #
972
+ # @!attribute [rw] conflict_resolution_strategy
973
+ # Specifies which branch to use when resolving conflicts, or whether
974
+ # to attempt automatically merging two versions of a file. The default
975
+ # is NONE, which requires any conflicts to be resolved manually before
976
+ # the merge operation will be successful.
977
+ # @return [String]
978
+ #
979
+ # @!attribute [rw] author_name
980
+ # The name of the author who created the unreferenced commit. This
981
+ # information will be used as both the author and committer for the
982
+ # commit.
983
+ # @return [String]
984
+ #
985
+ # @!attribute [rw] email
986
+ # The email address for the person who created the unreferenced
987
+ # commit.
988
+ # @return [String]
989
+ #
990
+ # @!attribute [rw] commit_message
991
+ # The commit message for the unreferenced commit.
992
+ # @return [String]
993
+ #
994
+ # @!attribute [rw] keep_empty_folders
995
+ # If the commit contains deletions, whether to keep a folder or folder
996
+ # structure if the changes leave the folders empty. If this is
997
+ # specified as true, a .gitkeep file will be created for empty
998
+ # folders. The default is false.
999
+ # @return [Boolean]
1000
+ #
1001
+ # @!attribute [rw] conflict_resolution
1002
+ # A list of inputs to use when resolving conflicts during a merge if
1003
+ # AUTOMERGE is chosen as the conflict resolution strategy.
1004
+ # @return [Types::ConflictResolution]
1005
+ #
1006
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateUnreferencedMergeCommitInput AWS API Documentation
1007
+ #
1008
+ class CreateUnreferencedMergeCommitInput < Struct.new(
1009
+ :repository_name,
1010
+ :source_commit_specifier,
1011
+ :destination_commit_specifier,
1012
+ :merge_option,
1013
+ :conflict_detail_level,
1014
+ :conflict_resolution_strategy,
1015
+ :author_name,
1016
+ :email,
1017
+ :commit_message,
1018
+ :keep_empty_folders,
1019
+ :conflict_resolution)
1020
+ include Aws::Structure
1021
+ end
1022
+
1023
+ # @!attribute [rw] commit_id
1024
+ # The full commit ID of the commit that contains your merge results.
1025
+ # @return [String]
1026
+ #
1027
+ # @!attribute [rw] tree_id
1028
+ # The full SHA-1 pointer of the tree information for the commit that
1029
+ # contains the merge results.
1030
+ # @return [String]
1031
+ #
1032
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateUnreferencedMergeCommitOutput AWS API Documentation
1033
+ #
1034
+ class CreateUnreferencedMergeCommitOutput < Struct.new(
1035
+ :commit_id,
1036
+ :tree_id)
1037
+ include Aws::Structure
1038
+ end
1039
+
625
1040
  # Represents the input of a delete branch operation.
626
1041
  #
627
1042
  # @note When making an API call, you may pass DeleteBranchInput
@@ -853,31 +1268,147 @@ module Aws::CodeCommit
853
1268
  include Aws::Structure
854
1269
  end
855
1270
 
856
- # @note When making an API call, you may pass DescribePullRequestEventsInput
1271
+ # @note When making an API call, you may pass DescribeMergeConflictsInput
857
1272
  # data as a hash:
858
1273
  #
859
1274
  # {
860
- # pull_request_id: "PullRequestId", # required
861
- # pull_request_event_type: "PULL_REQUEST_CREATED", # accepts PULL_REQUEST_CREATED, PULL_REQUEST_STATUS_CHANGED, PULL_REQUEST_SOURCE_REFERENCE_UPDATED, PULL_REQUEST_MERGE_STATE_CHANGED
862
- # actor_arn: "Arn",
1275
+ # repository_name: "RepositoryName", # required
1276
+ # destination_commit_specifier: "CommitName", # required
1277
+ # source_commit_specifier: "CommitName", # required
1278
+ # merge_option: "FAST_FORWARD_MERGE", # required, accepts FAST_FORWARD_MERGE, SQUASH_MERGE, THREE_WAY_MERGE
1279
+ # max_merge_hunks: 1,
1280
+ # file_path: "Path", # required
1281
+ # conflict_detail_level: "FILE_LEVEL", # accepts FILE_LEVEL, LINE_LEVEL
1282
+ # conflict_resolution_strategy: "NONE", # accepts NONE, ACCEPT_SOURCE, ACCEPT_DESTINATION, AUTOMERGE
863
1283
  # next_token: "NextToken",
864
- # max_results: 1,
865
1284
  # }
866
1285
  #
867
- # @!attribute [rw] pull_request_id
868
- # The system-generated ID of the pull request. To get this ID, use
869
- # ListPullRequests.
870
- # @return [String]
871
- #
872
- # @!attribute [rw] pull_request_event_type
873
- # Optional. The pull request event type about which you want to return
874
- # information.
1286
+ # @!attribute [rw] repository_name
1287
+ # The name of the repository where you want to get information about a
1288
+ # merge conflict.
875
1289
  # @return [String]
876
1290
  #
877
- # @!attribute [rw] actor_arn
878
- # The Amazon Resource Name (ARN) of the user whose actions resulted in
879
- # the event. Examples include updating the pull request with
880
- # additional commits or changing the status of a pull request.
1291
+ # @!attribute [rw] destination_commit_specifier
1292
+ # The branch, tag, HEAD, or other fully qualified reference used to
1293
+ # identify a commit. For example, a branch name or a full commit ID.
1294
+ # @return [String]
1295
+ #
1296
+ # @!attribute [rw] source_commit_specifier
1297
+ # The branch, tag, HEAD, or other fully qualified reference used to
1298
+ # identify a commit. For example, a branch name or a full commit ID.
1299
+ # @return [String]
1300
+ #
1301
+ # @!attribute [rw] merge_option
1302
+ # The merge option or strategy you want to use to merge the code.
1303
+ # @return [String]
1304
+ #
1305
+ # @!attribute [rw] max_merge_hunks
1306
+ # The maximum number of merge hunks to include in the output.
1307
+ # @return [Integer]
1308
+ #
1309
+ # @!attribute [rw] file_path
1310
+ # The path of the target files used to describe the conflicts.
1311
+ # @return [String]
1312
+ #
1313
+ # @!attribute [rw] conflict_detail_level
1314
+ # The level of conflict detail to use. If unspecified, the default
1315
+ # FILE\_LEVEL is used, which will return a not mergeable result if the
1316
+ # same file has differences in both branches. If LINE\_LEVEL is
1317
+ # specified, a conflict will be considered not mergeable if the same
1318
+ # file in both branches has differences on the same line.
1319
+ # @return [String]
1320
+ #
1321
+ # @!attribute [rw] conflict_resolution_strategy
1322
+ # Specifies which branch to use when resolving conflicts, or whether
1323
+ # to attempt automatically merging two versions of a file. The default
1324
+ # is NONE, which requires any conflicts to be resolved manually before
1325
+ # the merge operation will be successful.
1326
+ # @return [String]
1327
+ #
1328
+ # @!attribute [rw] next_token
1329
+ # An enumeration token that when provided in a request, returns the
1330
+ # next batch of the results.
1331
+ # @return [String]
1332
+ #
1333
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribeMergeConflictsInput AWS API Documentation
1334
+ #
1335
+ class DescribeMergeConflictsInput < Struct.new(
1336
+ :repository_name,
1337
+ :destination_commit_specifier,
1338
+ :source_commit_specifier,
1339
+ :merge_option,
1340
+ :max_merge_hunks,
1341
+ :file_path,
1342
+ :conflict_detail_level,
1343
+ :conflict_resolution_strategy,
1344
+ :next_token)
1345
+ include Aws::Structure
1346
+ end
1347
+
1348
+ # @!attribute [rw] conflict_metadata
1349
+ # Contains metadata about the conflicts found in the merge.
1350
+ # @return [Types::ConflictMetadata]
1351
+ #
1352
+ # @!attribute [rw] merge_hunks
1353
+ # A list of merge hunks of the differences between the files or lines.
1354
+ # @return [Array<Types::MergeHunk>]
1355
+ #
1356
+ # @!attribute [rw] next_token
1357
+ # An enumeration token that can be used in a request to return the
1358
+ # next batch of the results.
1359
+ # @return [String]
1360
+ #
1361
+ # @!attribute [rw] destination_commit_id
1362
+ # The commit ID of the destination commit specifier that was used in
1363
+ # the merge evaluation.
1364
+ # @return [String]
1365
+ #
1366
+ # @!attribute [rw] source_commit_id
1367
+ # The commit ID of the source commit specifier that was used in the
1368
+ # merge evaluation.
1369
+ # @return [String]
1370
+ #
1371
+ # @!attribute [rw] base_commit_id
1372
+ # The commit ID of the merge base.
1373
+ # @return [String]
1374
+ #
1375
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribeMergeConflictsOutput AWS API Documentation
1376
+ #
1377
+ class DescribeMergeConflictsOutput < Struct.new(
1378
+ :conflict_metadata,
1379
+ :merge_hunks,
1380
+ :next_token,
1381
+ :destination_commit_id,
1382
+ :source_commit_id,
1383
+ :base_commit_id)
1384
+ include Aws::Structure
1385
+ end
1386
+
1387
+ # @note When making an API call, you may pass DescribePullRequestEventsInput
1388
+ # data as a hash:
1389
+ #
1390
+ # {
1391
+ # pull_request_id: "PullRequestId", # required
1392
+ # pull_request_event_type: "PULL_REQUEST_CREATED", # accepts PULL_REQUEST_CREATED, PULL_REQUEST_STATUS_CHANGED, PULL_REQUEST_SOURCE_REFERENCE_UPDATED, PULL_REQUEST_MERGE_STATE_CHANGED
1393
+ # actor_arn: "Arn",
1394
+ # next_token: "NextToken",
1395
+ # max_results: 1,
1396
+ # }
1397
+ #
1398
+ # @!attribute [rw] pull_request_id
1399
+ # The system-generated ID of the pull request. To get this ID, use
1400
+ # ListPullRequests.
1401
+ # @return [String]
1402
+ #
1403
+ # @!attribute [rw] pull_request_event_type
1404
+ # Optional. The pull request event type about which you want to return
1405
+ # information.
1406
+ # @return [String]
1407
+ #
1408
+ # @!attribute [rw] actor_arn
1409
+ # The Amazon Resource Name (ARN) of the user whose actions resulted in
1410
+ # the event. Examples include updating the pull request with
1411
+ # additional commits or changing the status of a pull request.
881
1412
  # @return [String]
882
1413
  #
883
1414
  # @!attribute [rw] next_token
@@ -1000,6 +1531,53 @@ module Aws::CodeCommit
1000
1531
  include Aws::Structure
1001
1532
  end
1002
1533
 
1534
+ # Information about file modes in a merge or pull request.
1535
+ #
1536
+ # @!attribute [rw] source
1537
+ # The file mode of a file in the source of a merge or pull request.
1538
+ # @return [String]
1539
+ #
1540
+ # @!attribute [rw] destination
1541
+ # The file mode of a file in the destination of a merge or pull
1542
+ # request.
1543
+ # @return [String]
1544
+ #
1545
+ # @!attribute [rw] base
1546
+ # The file mode of a file in the base of a merge or pull request.
1547
+ # @return [String]
1548
+ #
1549
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/FileModes AWS API Documentation
1550
+ #
1551
+ class FileModes < Struct.new(
1552
+ :source,
1553
+ :destination,
1554
+ :base)
1555
+ include Aws::Structure
1556
+ end
1557
+
1558
+ # Information about the size of files in a merge or pull request.
1559
+ #
1560
+ # @!attribute [rw] source
1561
+ # The size of a file in the source of a merge or pull request.
1562
+ # @return [Integer]
1563
+ #
1564
+ # @!attribute [rw] destination
1565
+ # The size of a file in the destination of a merge or pull request.
1566
+ # @return [Integer]
1567
+ #
1568
+ # @!attribute [rw] base
1569
+ # The size of a file in the base of a merge or pull request.
1570
+ # @return [Integer]
1571
+ #
1572
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/FileSizes AWS API Documentation
1573
+ #
1574
+ class FileSizes < Struct.new(
1575
+ :source,
1576
+ :destination,
1577
+ :base)
1578
+ include Aws::Structure
1579
+ end
1580
+
1003
1581
  # Returns information about a folder in a repository.
1004
1582
  #
1005
1583
  # @!attribute [rw] tree_id
@@ -1556,6 +2134,88 @@ module Aws::CodeCommit
1556
2134
  include Aws::Structure
1557
2135
  end
1558
2136
 
2137
+ # @note When making an API call, you may pass GetMergeCommitInput
2138
+ # data as a hash:
2139
+ #
2140
+ # {
2141
+ # repository_name: "RepositoryName", # required
2142
+ # source_commit_specifier: "CommitName", # required
2143
+ # destination_commit_specifier: "CommitName", # required
2144
+ # conflict_detail_level: "FILE_LEVEL", # accepts FILE_LEVEL, LINE_LEVEL
2145
+ # conflict_resolution_strategy: "NONE", # accepts NONE, ACCEPT_SOURCE, ACCEPT_DESTINATION, AUTOMERGE
2146
+ # }
2147
+ #
2148
+ # @!attribute [rw] repository_name
2149
+ # The name of the repository that contains the merge commit about
2150
+ # which you want to get information.
2151
+ # @return [String]
2152
+ #
2153
+ # @!attribute [rw] source_commit_specifier
2154
+ # The branch, tag, HEAD, or other fully qualified reference used to
2155
+ # identify a commit. For example, a branch name or a full commit ID.
2156
+ # @return [String]
2157
+ #
2158
+ # @!attribute [rw] destination_commit_specifier
2159
+ # The branch, tag, HEAD, or other fully qualified reference used to
2160
+ # identify a commit. For example, a branch name or a full commit ID.
2161
+ # @return [String]
2162
+ #
2163
+ # @!attribute [rw] conflict_detail_level
2164
+ # The level of conflict detail to use. If unspecified, the default
2165
+ # FILE\_LEVEL is used, which will return a not mergeable result if the
2166
+ # same file has differences in both branches. If LINE\_LEVEL is
2167
+ # specified, a conflict will be considered not mergeable if the same
2168
+ # file in both branches has differences on the same line.
2169
+ # @return [String]
2170
+ #
2171
+ # @!attribute [rw] conflict_resolution_strategy
2172
+ # Specifies which branch to use when resolving conflicts, or whether
2173
+ # to attempt automatically merging two versions of a file. The default
2174
+ # is NONE, which requires any conflicts to be resolved manually before
2175
+ # the merge operation will be successful.
2176
+ # @return [String]
2177
+ #
2178
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeCommitInput AWS API Documentation
2179
+ #
2180
+ class GetMergeCommitInput < Struct.new(
2181
+ :repository_name,
2182
+ :source_commit_specifier,
2183
+ :destination_commit_specifier,
2184
+ :conflict_detail_level,
2185
+ :conflict_resolution_strategy)
2186
+ include Aws::Structure
2187
+ end
2188
+
2189
+ # @!attribute [rw] source_commit_id
2190
+ # The commit ID of the source commit specifier that was used in the
2191
+ # merge evaluation.
2192
+ # @return [String]
2193
+ #
2194
+ # @!attribute [rw] destination_commit_id
2195
+ # The commit ID of the destination commit specifier that was used in
2196
+ # the merge evaluation.
2197
+ # @return [String]
2198
+ #
2199
+ # @!attribute [rw] base_commit_id
2200
+ # The commit ID of the merge base.
2201
+ # @return [String]
2202
+ #
2203
+ # @!attribute [rw] merged_commit_id
2204
+ # The commit ID for the merge commit created when the source branch
2205
+ # was merged into the destination branch. If the fast-forward merge
2206
+ # strategy was used, no merge commit exists.
2207
+ # @return [String]
2208
+ #
2209
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeCommitOutput AWS API Documentation
2210
+ #
2211
+ class GetMergeCommitOutput < Struct.new(
2212
+ :source_commit_id,
2213
+ :destination_commit_id,
2214
+ :base_commit_id,
2215
+ :merged_commit_id)
2216
+ include Aws::Structure
2217
+ end
2218
+
1559
2219
  # @note When making an API call, you may pass GetMergeConflictsInput
1560
2220
  # data as a hash:
1561
2221
  #
@@ -1563,7 +2223,11 @@ module Aws::CodeCommit
1563
2223
  # repository_name: "RepositoryName", # required
1564
2224
  # destination_commit_specifier: "CommitName", # required
1565
2225
  # source_commit_specifier: "CommitName", # required
1566
- # merge_option: "FAST_FORWARD_MERGE", # required, accepts FAST_FORWARD_MERGE
2226
+ # merge_option: "FAST_FORWARD_MERGE", # required, accepts FAST_FORWARD_MERGE, SQUASH_MERGE, THREE_WAY_MERGE
2227
+ # conflict_detail_level: "FILE_LEVEL", # accepts FILE_LEVEL, LINE_LEVEL
2228
+ # max_conflict_files: 1,
2229
+ # conflict_resolution_strategy: "NONE", # accepts NONE, ACCEPT_SOURCE, ACCEPT_DESTINATION, AUTOMERGE
2230
+ # next_token: "NextToken",
1567
2231
  # }
1568
2232
  #
1569
2233
  # @!attribute [rw] repository_name
@@ -1581,8 +2245,31 @@ module Aws::CodeCommit
1581
2245
  # @return [String]
1582
2246
  #
1583
2247
  # @!attribute [rw] merge_option
1584
- # The merge option or strategy you want to use to merge the code. The
1585
- # only valid value is FAST\_FORWARD\_MERGE.
2248
+ # The merge option or strategy you want to use to merge the code.
2249
+ # @return [String]
2250
+ #
2251
+ # @!attribute [rw] conflict_detail_level
2252
+ # The level of conflict detail to use. If unspecified, the default
2253
+ # FILE\_LEVEL is used, which will return a not mergeable result if the
2254
+ # same file has differences in both branches. If LINE\_LEVEL is
2255
+ # specified, a conflict will be considered not mergeable if the same
2256
+ # file in both branches has differences on the same line.
2257
+ # @return [String]
2258
+ #
2259
+ # @!attribute [rw] max_conflict_files
2260
+ # The maximum number of files to include in the output.
2261
+ # @return [Integer]
2262
+ #
2263
+ # @!attribute [rw] conflict_resolution_strategy
2264
+ # Specifies which branch to use when resolving conflicts, or whether
2265
+ # to attempt automatically merging two versions of a file. The default
2266
+ # is NONE, which requires any conflicts to be resolved manually before
2267
+ # the merge operation will be successful.
2268
+ # @return [String]
2269
+ #
2270
+ # @!attribute [rw] next_token
2271
+ # An enumeration token that when provided in a request, returns the
2272
+ # next batch of the results.
1586
2273
  # @return [String]
1587
2274
  #
1588
2275
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflictsInput AWS API Documentation
@@ -1591,12 +2278,16 @@ module Aws::CodeCommit
1591
2278
  :repository_name,
1592
2279
  :destination_commit_specifier,
1593
2280
  :source_commit_specifier,
1594
- :merge_option)
2281
+ :merge_option,
2282
+ :conflict_detail_level,
2283
+ :max_conflict_files,
2284
+ :conflict_resolution_strategy,
2285
+ :next_token)
1595
2286
  include Aws::Structure
1596
2287
  end
1597
2288
 
1598
2289
  # @!attribute [rw] mergeable
1599
- # A Boolean value that indicates whether the code is mergable by the
2290
+ # A Boolean value that indicates whether the code is mergeable by the
1600
2291
  # specified merge option.
1601
2292
  # @return [Boolean]
1602
2293
  #
@@ -1610,12 +2301,108 @@ module Aws::CodeCommit
1610
2301
  # merge evaluation.
1611
2302
  # @return [String]
1612
2303
  #
2304
+ # @!attribute [rw] base_commit_id
2305
+ # The commit ID of the merge base.
2306
+ # @return [String]
2307
+ #
2308
+ # @!attribute [rw] conflict_metadata_list
2309
+ # A list of metadata for any conflicts found.
2310
+ # @return [Array<Types::ConflictMetadata>]
2311
+ #
2312
+ # @!attribute [rw] next_token
2313
+ # An enumeration token that can be used in a request to return the
2314
+ # next batch of the results.
2315
+ # @return [String]
2316
+ #
1613
2317
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflictsOutput AWS API Documentation
1614
2318
  #
1615
2319
  class GetMergeConflictsOutput < Struct.new(
1616
2320
  :mergeable,
1617
2321
  :destination_commit_id,
1618
- :source_commit_id)
2322
+ :source_commit_id,
2323
+ :base_commit_id,
2324
+ :conflict_metadata_list,
2325
+ :next_token)
2326
+ include Aws::Structure
2327
+ end
2328
+
2329
+ # @note When making an API call, you may pass GetMergeOptionsInput
2330
+ # data as a hash:
2331
+ #
2332
+ # {
2333
+ # repository_name: "RepositoryName", # required
2334
+ # source_commit_specifier: "CommitName", # required
2335
+ # destination_commit_specifier: "CommitName", # required
2336
+ # conflict_detail_level: "FILE_LEVEL", # accepts FILE_LEVEL, LINE_LEVEL
2337
+ # conflict_resolution_strategy: "NONE", # accepts NONE, ACCEPT_SOURCE, ACCEPT_DESTINATION, AUTOMERGE
2338
+ # }
2339
+ #
2340
+ # @!attribute [rw] repository_name
2341
+ # The name of the repository that contains the commits about which you
2342
+ # want to get merge options.
2343
+ # @return [String]
2344
+ #
2345
+ # @!attribute [rw] source_commit_specifier
2346
+ # The branch, tag, HEAD, or other fully qualified reference used to
2347
+ # identify a commit. For example, a branch name or a full commit ID.
2348
+ # @return [String]
2349
+ #
2350
+ # @!attribute [rw] destination_commit_specifier
2351
+ # The branch, tag, HEAD, or other fully qualified reference used to
2352
+ # identify a commit. For example, a branch name or a full commit ID.
2353
+ # @return [String]
2354
+ #
2355
+ # @!attribute [rw] conflict_detail_level
2356
+ # The level of conflict detail to use. If unspecified, the default
2357
+ # FILE\_LEVEL is used, which will return a not mergeable result if the
2358
+ # same file has differences in both branches. If LINE\_LEVEL is
2359
+ # specified, a conflict will be considered not mergeable if the same
2360
+ # file in both branches has differences on the same line.
2361
+ # @return [String]
2362
+ #
2363
+ # @!attribute [rw] conflict_resolution_strategy
2364
+ # Specifies which branch to use when resolving conflicts, or whether
2365
+ # to attempt automatically merging two versions of a file. The default
2366
+ # is NONE, which requires any conflicts to be resolved manually before
2367
+ # the merge operation will be successful.
2368
+ # @return [String]
2369
+ #
2370
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeOptionsInput AWS API Documentation
2371
+ #
2372
+ class GetMergeOptionsInput < Struct.new(
2373
+ :repository_name,
2374
+ :source_commit_specifier,
2375
+ :destination_commit_specifier,
2376
+ :conflict_detail_level,
2377
+ :conflict_resolution_strategy)
2378
+ include Aws::Structure
2379
+ end
2380
+
2381
+ # @!attribute [rw] merge_options
2382
+ # The merge option or strategy used to merge the code.
2383
+ # @return [Array<String>]
2384
+ #
2385
+ # @!attribute [rw] source_commit_id
2386
+ # The commit ID of the source commit specifier that was used in the
2387
+ # merge evaluation.
2388
+ # @return [String]
2389
+ #
2390
+ # @!attribute [rw] destination_commit_id
2391
+ # The commit ID of the destination commit specifier that was used in
2392
+ # the merge evaluation.
2393
+ # @return [String]
2394
+ #
2395
+ # @!attribute [rw] base_commit_id
2396
+ # The commit ID of the merge base.
2397
+ # @return [String]
2398
+ #
2399
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeOptionsOutput AWS API Documentation
2400
+ #
2401
+ class GetMergeOptionsOutput < Struct.new(
2402
+ :merge_options,
2403
+ :source_commit_id,
2404
+ :destination_commit_id,
2405
+ :base_commit_id)
1619
2406
  include Aws::Structure
1620
2407
  end
1621
2408
 
@@ -1720,6 +2507,33 @@ module Aws::CodeCommit
1720
2507
  include Aws::Structure
1721
2508
  end
1722
2509
 
2510
+ # Information about whether a file is binary or textual in a merge or
2511
+ # pull request operation.
2512
+ #
2513
+ # @!attribute [rw] source
2514
+ # The binary or non-binary status of file in the source of a merge or
2515
+ # pull request.
2516
+ # @return [Boolean]
2517
+ #
2518
+ # @!attribute [rw] destination
2519
+ # The binary or non-binary status of a file in the destination of a
2520
+ # merge or pull request.
2521
+ # @return [Boolean]
2522
+ #
2523
+ # @!attribute [rw] base
2524
+ # The binary or non-binary status of a file in the base of a merge or
2525
+ # pull request.
2526
+ # @return [Boolean]
2527
+ #
2528
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/IsBinaryFile AWS API Documentation
2529
+ #
2530
+ class IsBinaryFile < Struct.new(
2531
+ :source,
2532
+ :destination,
2533
+ :base)
2534
+ include Aws::Structure
2535
+ end
2536
+
1723
2537
  # Represents the input of a list branches operation.
1724
2538
  #
1725
2539
  # @note When making an API call, you may pass ListBranchesInput
@@ -1965,22 +2779,423 @@ module Aws::CodeCommit
1965
2779
  include Aws::Structure
1966
2780
  end
1967
2781
 
1968
- # Returns information about a merge or potential merge between a source
1969
- # reference and a destination reference in a pull request.
1970
- #
1971
- # @!attribute [rw] is_merged
1972
- # A Boolean value indicating whether the merge has been made.
1973
- # @return [Boolean]
2782
+ # @note When making an API call, you may pass MergeBranchesByFastForwardInput
2783
+ # data as a hash:
2784
+ #
2785
+ # {
2786
+ # repository_name: "RepositoryName", # required
2787
+ # source_commit_specifier: "CommitName", # required
2788
+ # destination_commit_specifier: "CommitName", # required
2789
+ # target_branch: "BranchName",
2790
+ # }
2791
+ #
2792
+ # @!attribute [rw] repository_name
2793
+ # The name of the repository where you want to merge two branches.
2794
+ # @return [String]
2795
+ #
2796
+ # @!attribute [rw] source_commit_specifier
2797
+ # The branch, tag, HEAD, or other fully qualified reference used to
2798
+ # identify a commit. For example, a branch name or a full commit ID.
2799
+ # @return [String]
2800
+ #
2801
+ # @!attribute [rw] destination_commit_specifier
2802
+ # The branch, tag, HEAD, or other fully qualified reference used to
2803
+ # identify a commit. For example, a branch name or a full commit ID.
2804
+ # @return [String]
2805
+ #
2806
+ # @!attribute [rw] target_branch
2807
+ # The branch where the merge will be applied.
2808
+ # @return [String]
2809
+ #
2810
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesByFastForwardInput AWS API Documentation
2811
+ #
2812
+ class MergeBranchesByFastForwardInput < Struct.new(
2813
+ :repository_name,
2814
+ :source_commit_specifier,
2815
+ :destination_commit_specifier,
2816
+ :target_branch)
2817
+ include Aws::Structure
2818
+ end
2819
+
2820
+ # @!attribute [rw] commit_id
2821
+ # The commit ID of the merge in the destination or target branch.
2822
+ # @return [String]
2823
+ #
2824
+ # @!attribute [rw] tree_id
2825
+ # The tree ID of the merge in the destination or target branch.
2826
+ # @return [String]
2827
+ #
2828
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesByFastForwardOutput AWS API Documentation
2829
+ #
2830
+ class MergeBranchesByFastForwardOutput < Struct.new(
2831
+ :commit_id,
2832
+ :tree_id)
2833
+ include Aws::Structure
2834
+ end
2835
+
2836
+ # @note When making an API call, you may pass MergeBranchesBySquashInput
2837
+ # data as a hash:
2838
+ #
2839
+ # {
2840
+ # repository_name: "RepositoryName", # required
2841
+ # source_commit_specifier: "CommitName", # required
2842
+ # destination_commit_specifier: "CommitName", # required
2843
+ # target_branch: "BranchName",
2844
+ # conflict_detail_level: "FILE_LEVEL", # accepts FILE_LEVEL, LINE_LEVEL
2845
+ # conflict_resolution_strategy: "NONE", # accepts NONE, ACCEPT_SOURCE, ACCEPT_DESTINATION, AUTOMERGE
2846
+ # author_name: "Name",
2847
+ # email: "Email",
2848
+ # commit_message: "Message",
2849
+ # keep_empty_folders: false,
2850
+ # conflict_resolution: {
2851
+ # replace_contents: [
2852
+ # {
2853
+ # file_path: "Path", # required
2854
+ # replacement_type: "KEEP_BASE", # required, accepts KEEP_BASE, KEEP_SOURCE, KEEP_DESTINATION, USE_NEW_CONTENT
2855
+ # content: "data",
2856
+ # file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
2857
+ # },
2858
+ # ],
2859
+ # delete_files: [
2860
+ # {
2861
+ # file_path: "Path", # required
2862
+ # },
2863
+ # ],
2864
+ # set_file_modes: [
2865
+ # {
2866
+ # file_path: "Path", # required
2867
+ # file_mode: "EXECUTABLE", # required, accepts EXECUTABLE, NORMAL, SYMLINK
2868
+ # },
2869
+ # ],
2870
+ # },
2871
+ # }
2872
+ #
2873
+ # @!attribute [rw] repository_name
2874
+ # The name of the repository where you want to merge two branches.
2875
+ # @return [String]
2876
+ #
2877
+ # @!attribute [rw] source_commit_specifier
2878
+ # The branch, tag, HEAD, or other fully qualified reference used to
2879
+ # identify a commit. For example, a branch name or a full commit ID.
2880
+ # @return [String]
2881
+ #
2882
+ # @!attribute [rw] destination_commit_specifier
2883
+ # The branch, tag, HEAD, or other fully qualified reference used to
2884
+ # identify a commit. For example, a branch name or a full commit ID.
2885
+ # @return [String]
2886
+ #
2887
+ # @!attribute [rw] target_branch
2888
+ # The branch where the merge will be applied.
2889
+ # @return [String]
2890
+ #
2891
+ # @!attribute [rw] conflict_detail_level
2892
+ # The level of conflict detail to use. If unspecified, the default
2893
+ # FILE\_LEVEL is used, which will return a not mergeable result if the
2894
+ # same file has differences in both branches. If LINE\_LEVEL is
2895
+ # specified, a conflict will be considered not mergeable if the same
2896
+ # file in both branches has differences on the same line.
2897
+ # @return [String]
2898
+ #
2899
+ # @!attribute [rw] conflict_resolution_strategy
2900
+ # Specifies which branch to use when resolving conflicts, or whether
2901
+ # to attempt automatically merging two versions of a file. The default
2902
+ # is NONE, which requires any conflicts to be resolved manually before
2903
+ # the merge operation will be successful.
2904
+ # @return [String]
2905
+ #
2906
+ # @!attribute [rw] author_name
2907
+ # The name of the author who created the commit. This information will
2908
+ # be used as both the author and committer for the commit.
2909
+ # @return [String]
2910
+ #
2911
+ # @!attribute [rw] email
2912
+ # The email address of the person merging the branches. This
2913
+ # information will be used in the commit information for the merge.
2914
+ # @return [String]
2915
+ #
2916
+ # @!attribute [rw] commit_message
2917
+ # The commit message for the merge.
2918
+ # @return [String]
2919
+ #
2920
+ # @!attribute [rw] keep_empty_folders
2921
+ # If the commit contains deletions, whether to keep a folder or folder
2922
+ # structure if the changes leave the folders empty. If this is
2923
+ # specified as true, a .gitkeep file will be created for empty
2924
+ # folders. The default is false.
2925
+ # @return [Boolean]
2926
+ #
2927
+ # @!attribute [rw] conflict_resolution
2928
+ # A list of inputs to use when resolving conflicts during a merge if
2929
+ # AUTOMERGE is chosen as the conflict resolution strategy.
2930
+ # @return [Types::ConflictResolution]
2931
+ #
2932
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesBySquashInput AWS API Documentation
2933
+ #
2934
+ class MergeBranchesBySquashInput < Struct.new(
2935
+ :repository_name,
2936
+ :source_commit_specifier,
2937
+ :destination_commit_specifier,
2938
+ :target_branch,
2939
+ :conflict_detail_level,
2940
+ :conflict_resolution_strategy,
2941
+ :author_name,
2942
+ :email,
2943
+ :commit_message,
2944
+ :keep_empty_folders,
2945
+ :conflict_resolution)
2946
+ include Aws::Structure
2947
+ end
2948
+
2949
+ # @!attribute [rw] commit_id
2950
+ # The commit ID of the merge in the destination or target branch.
2951
+ # @return [String]
2952
+ #
2953
+ # @!attribute [rw] tree_id
2954
+ # The tree ID of the merge in the destination or target branch.
2955
+ # @return [String]
2956
+ #
2957
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesBySquashOutput AWS API Documentation
2958
+ #
2959
+ class MergeBranchesBySquashOutput < Struct.new(
2960
+ :commit_id,
2961
+ :tree_id)
2962
+ include Aws::Structure
2963
+ end
2964
+
2965
+ # @note When making an API call, you may pass MergeBranchesByThreeWayInput
2966
+ # data as a hash:
2967
+ #
2968
+ # {
2969
+ # repository_name: "RepositoryName", # required
2970
+ # source_commit_specifier: "CommitName", # required
2971
+ # destination_commit_specifier: "CommitName", # required
2972
+ # target_branch: "BranchName",
2973
+ # conflict_detail_level: "FILE_LEVEL", # accepts FILE_LEVEL, LINE_LEVEL
2974
+ # conflict_resolution_strategy: "NONE", # accepts NONE, ACCEPT_SOURCE, ACCEPT_DESTINATION, AUTOMERGE
2975
+ # author_name: "Name",
2976
+ # email: "Email",
2977
+ # commit_message: "Message",
2978
+ # keep_empty_folders: false,
2979
+ # conflict_resolution: {
2980
+ # replace_contents: [
2981
+ # {
2982
+ # file_path: "Path", # required
2983
+ # replacement_type: "KEEP_BASE", # required, accepts KEEP_BASE, KEEP_SOURCE, KEEP_DESTINATION, USE_NEW_CONTENT
2984
+ # content: "data",
2985
+ # file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
2986
+ # },
2987
+ # ],
2988
+ # delete_files: [
2989
+ # {
2990
+ # file_path: "Path", # required
2991
+ # },
2992
+ # ],
2993
+ # set_file_modes: [
2994
+ # {
2995
+ # file_path: "Path", # required
2996
+ # file_mode: "EXECUTABLE", # required, accepts EXECUTABLE, NORMAL, SYMLINK
2997
+ # },
2998
+ # ],
2999
+ # },
3000
+ # }
3001
+ #
3002
+ # @!attribute [rw] repository_name
3003
+ # The name of the repository where you want to merge two branches.
3004
+ # @return [String]
3005
+ #
3006
+ # @!attribute [rw] source_commit_specifier
3007
+ # The branch, tag, HEAD, or other fully qualified reference used to
3008
+ # identify a commit. For example, a branch name or a full commit ID.
3009
+ # @return [String]
3010
+ #
3011
+ # @!attribute [rw] destination_commit_specifier
3012
+ # The branch, tag, HEAD, or other fully qualified reference used to
3013
+ # identify a commit. For example, a branch name or a full commit ID.
3014
+ # @return [String]
3015
+ #
3016
+ # @!attribute [rw] target_branch
3017
+ # The branch where the merge will be applied.
3018
+ # @return [String]
3019
+ #
3020
+ # @!attribute [rw] conflict_detail_level
3021
+ # The level of conflict detail to use. If unspecified, the default
3022
+ # FILE\_LEVEL is used, which will return a not mergeable result if the
3023
+ # same file has differences in both branches. If LINE\_LEVEL is
3024
+ # specified, a conflict will be considered not mergeable if the same
3025
+ # file in both branches has differences on the same line.
3026
+ # @return [String]
3027
+ #
3028
+ # @!attribute [rw] conflict_resolution_strategy
3029
+ # Specifies which branch to use when resolving conflicts, or whether
3030
+ # to attempt automatically merging two versions of a file. The default
3031
+ # is NONE, which requires any conflicts to be resolved manually before
3032
+ # the merge operation will be successful.
3033
+ # @return [String]
3034
+ #
3035
+ # @!attribute [rw] author_name
3036
+ # The name of the author who created the commit. This information will
3037
+ # be used as both the author and committer for the commit.
3038
+ # @return [String]
3039
+ #
3040
+ # @!attribute [rw] email
3041
+ # The email address of the person merging the branches. This
3042
+ # information will be used in the commit information for the merge.
3043
+ # @return [String]
3044
+ #
3045
+ # @!attribute [rw] commit_message
3046
+ # The commit message to include in the commit information for the
3047
+ # merge.
3048
+ # @return [String]
3049
+ #
3050
+ # @!attribute [rw] keep_empty_folders
3051
+ # If the commit contains deletions, whether to keep a folder or folder
3052
+ # structure if the changes leave the folders empty. If this is
3053
+ # specified as true, a .gitkeep file will be created for empty
3054
+ # folders. The default is false.
3055
+ # @return [Boolean]
3056
+ #
3057
+ # @!attribute [rw] conflict_resolution
3058
+ # A list of inputs to use when resolving conflicts during a merge if
3059
+ # AUTOMERGE is chosen as the conflict resolution strategy.
3060
+ # @return [Types::ConflictResolution]
3061
+ #
3062
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesByThreeWayInput AWS API Documentation
3063
+ #
3064
+ class MergeBranchesByThreeWayInput < Struct.new(
3065
+ :repository_name,
3066
+ :source_commit_specifier,
3067
+ :destination_commit_specifier,
3068
+ :target_branch,
3069
+ :conflict_detail_level,
3070
+ :conflict_resolution_strategy,
3071
+ :author_name,
3072
+ :email,
3073
+ :commit_message,
3074
+ :keep_empty_folders,
3075
+ :conflict_resolution)
3076
+ include Aws::Structure
3077
+ end
3078
+
3079
+ # @!attribute [rw] commit_id
3080
+ # The commit ID of the merge in the destination or target branch.
3081
+ # @return [String]
3082
+ #
3083
+ # @!attribute [rw] tree_id
3084
+ # The tree ID of the merge in the destination or target branch.
3085
+ # @return [String]
3086
+ #
3087
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesByThreeWayOutput AWS API Documentation
3088
+ #
3089
+ class MergeBranchesByThreeWayOutput < Struct.new(
3090
+ :commit_id,
3091
+ :tree_id)
3092
+ include Aws::Structure
3093
+ end
3094
+
3095
+ # Information about merge hunks in a merge or pull request operation.
3096
+ #
3097
+ # @!attribute [rw] is_conflict
3098
+ # A Boolean value indicating whether a combination of hunks contains a
3099
+ # conflict. Conflicts occur when the same file or the same lines in a
3100
+ # file were modified in both the source and destination of a merge or
3101
+ # pull request. Valid values include true, false, and null.
3102
+ # @return [Boolean]
3103
+ #
3104
+ # @!attribute [rw] source
3105
+ # Information about the merge hunk in the source of a merge or pull
3106
+ # request.
3107
+ # @return [Types::MergeHunkDetail]
3108
+ #
3109
+ # @!attribute [rw] destination
3110
+ # Information about the merge hunk in the destination of a merge or
3111
+ # pull request.
3112
+ # @return [Types::MergeHunkDetail]
3113
+ #
3114
+ # @!attribute [rw] base
3115
+ # Information about the merge hunk in the base of a merge or pull
3116
+ # request.
3117
+ # @return [Types::MergeHunkDetail]
3118
+ #
3119
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeHunk AWS API Documentation
3120
+ #
3121
+ class MergeHunk < Struct.new(
3122
+ :is_conflict,
3123
+ :source,
3124
+ :destination,
3125
+ :base)
3126
+ include Aws::Structure
3127
+ end
3128
+
3129
+ # Information about the details of a merge hunk that contains a conflict
3130
+ # in a merge or pull request operation.
3131
+ #
3132
+ # @!attribute [rw] start_line
3133
+ # The line number where a merge conflict begins.
3134
+ # @return [Integer]
3135
+ #
3136
+ # @!attribute [rw] end_line
3137
+ # The line number where a merge conflict ends.
3138
+ # @return [Integer]
3139
+ #
3140
+ # @!attribute [rw] hunk_content
3141
+ # The base-64 encoded content of the hunk that contains the conflict.
3142
+ # @return [String]
3143
+ #
3144
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeHunkDetail AWS API Documentation
3145
+ #
3146
+ class MergeHunkDetail < Struct.new(
3147
+ :start_line,
3148
+ :end_line,
3149
+ :hunk_content)
3150
+ include Aws::Structure
3151
+ end
3152
+
3153
+ # Returns information about a merge or potential merge between a source
3154
+ # reference and a destination reference in a pull request.
3155
+ #
3156
+ # @!attribute [rw] is_merged
3157
+ # A Boolean value indicating whether the merge has been made.
3158
+ # @return [Boolean]
1974
3159
  #
1975
3160
  # @!attribute [rw] merged_by
1976
3161
  # The Amazon Resource Name (ARN) of the user who merged the branches.
1977
3162
  # @return [String]
1978
3163
  #
3164
+ # @!attribute [rw] merge_commit_id
3165
+ # The commit ID for the merge commit, if any.
3166
+ # @return [String]
3167
+ #
3168
+ # @!attribute [rw] merge_option
3169
+ # The merge strategy used in the merge.
3170
+ # @return [String]
3171
+ #
1979
3172
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeMetadata AWS API Documentation
1980
3173
  #
1981
3174
  class MergeMetadata < Struct.new(
1982
3175
  :is_merged,
1983
- :merged_by)
3176
+ :merged_by,
3177
+ :merge_commit_id,
3178
+ :merge_option)
3179
+ include Aws::Structure
3180
+ end
3181
+
3182
+ # Information about the file operation conflicts in a merge operation.
3183
+ #
3184
+ # @!attribute [rw] source
3185
+ # The operation on a file (add, modify, or delete) of a file in the
3186
+ # source of a merge or pull request.
3187
+ # @return [String]
3188
+ #
3189
+ # @!attribute [rw] destination
3190
+ # The operation on a file in the destination of a merge or pull
3191
+ # request.
3192
+ # @return [String]
3193
+ #
3194
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeOperations AWS API Documentation
3195
+ #
3196
+ class MergeOperations < Struct.new(
3197
+ :source,
3198
+ :destination)
1984
3199
  include Aws::Structure
1985
3200
  end
1986
3201
 
@@ -1990,7 +3205,7 @@ module Aws::CodeCommit
1990
3205
  # {
1991
3206
  # pull_request_id: "PullRequestId", # required
1992
3207
  # repository_name: "RepositoryName", # required
1993
- # source_commit_id: "CommitId",
3208
+ # source_commit_id: "ObjectId",
1994
3209
  # }
1995
3210
  #
1996
3211
  # @!attribute [rw] pull_request_id
@@ -2030,6 +3245,271 @@ module Aws::CodeCommit
2030
3245
  include Aws::Structure
2031
3246
  end
2032
3247
 
3248
+ # @note When making an API call, you may pass MergePullRequestBySquashInput
3249
+ # data as a hash:
3250
+ #
3251
+ # {
3252
+ # pull_request_id: "PullRequestId", # required
3253
+ # repository_name: "RepositoryName", # required
3254
+ # source_commit_id: "ObjectId",
3255
+ # conflict_detail_level: "FILE_LEVEL", # accepts FILE_LEVEL, LINE_LEVEL
3256
+ # conflict_resolution_strategy: "NONE", # accepts NONE, ACCEPT_SOURCE, ACCEPT_DESTINATION, AUTOMERGE
3257
+ # commit_message: "Message",
3258
+ # author_name: "Name",
3259
+ # email: "Email",
3260
+ # keep_empty_folders: false,
3261
+ # conflict_resolution: {
3262
+ # replace_contents: [
3263
+ # {
3264
+ # file_path: "Path", # required
3265
+ # replacement_type: "KEEP_BASE", # required, accepts KEEP_BASE, KEEP_SOURCE, KEEP_DESTINATION, USE_NEW_CONTENT
3266
+ # content: "data",
3267
+ # file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
3268
+ # },
3269
+ # ],
3270
+ # delete_files: [
3271
+ # {
3272
+ # file_path: "Path", # required
3273
+ # },
3274
+ # ],
3275
+ # set_file_modes: [
3276
+ # {
3277
+ # file_path: "Path", # required
3278
+ # file_mode: "EXECUTABLE", # required, accepts EXECUTABLE, NORMAL, SYMLINK
3279
+ # },
3280
+ # ],
3281
+ # },
3282
+ # }
3283
+ #
3284
+ # @!attribute [rw] pull_request_id
3285
+ # The system-generated ID of the pull request. To get this ID, use
3286
+ # ListPullRequests.
3287
+ # @return [String]
3288
+ #
3289
+ # @!attribute [rw] repository_name
3290
+ # The name of the repository where the pull request was created.
3291
+ # @return [String]
3292
+ #
3293
+ # @!attribute [rw] source_commit_id
3294
+ # The full commit ID of the original or updated commit in the pull
3295
+ # request source branch. Pass this value if you want an exception
3296
+ # thrown if the current commit ID of the tip of the source branch does
3297
+ # not match this commit ID.
3298
+ # @return [String]
3299
+ #
3300
+ # @!attribute [rw] conflict_detail_level
3301
+ # The level of conflict detail to use. If unspecified, the default
3302
+ # FILE\_LEVEL is used, which will return a not mergeable result if the
3303
+ # same file has differences in both branches. If LINE\_LEVEL is
3304
+ # specified, a conflict will be considered not mergeable if the same
3305
+ # file in both branches has differences on the same line.
3306
+ # @return [String]
3307
+ #
3308
+ # @!attribute [rw] conflict_resolution_strategy
3309
+ # Specifies which branch to use when resolving conflicts, or whether
3310
+ # to attempt automatically merging two versions of a file. The default
3311
+ # is NONE, which requires any conflicts to be resolved manually before
3312
+ # the merge operation will be successful.
3313
+ # @return [String]
3314
+ #
3315
+ # @!attribute [rw] commit_message
3316
+ # The commit message to include in the commit information for the
3317
+ # merge.
3318
+ # @return [String]
3319
+ #
3320
+ # @!attribute [rw] author_name
3321
+ # The name of the author who created the commit. This information will
3322
+ # be used as both the author and committer for the commit.
3323
+ # @return [String]
3324
+ #
3325
+ # @!attribute [rw] email
3326
+ # The email address of the person merging the branches. This
3327
+ # information will be used in the commit information for the merge.
3328
+ # @return [String]
3329
+ #
3330
+ # @!attribute [rw] keep_empty_folders
3331
+ # If the commit contains deletions, whether to keep a folder or folder
3332
+ # structure if the changes leave the folders empty. If this is
3333
+ # specified as true, a .gitkeep file will be created for empty
3334
+ # folders. The default is false.
3335
+ # @return [Boolean]
3336
+ #
3337
+ # @!attribute [rw] conflict_resolution
3338
+ # A list of inputs to use when resolving conflicts during a merge if
3339
+ # AUTOMERGE is chosen as the conflict resolution strategy.
3340
+ # @return [Types::ConflictResolution]
3341
+ #
3342
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestBySquashInput AWS API Documentation
3343
+ #
3344
+ class MergePullRequestBySquashInput < Struct.new(
3345
+ :pull_request_id,
3346
+ :repository_name,
3347
+ :source_commit_id,
3348
+ :conflict_detail_level,
3349
+ :conflict_resolution_strategy,
3350
+ :commit_message,
3351
+ :author_name,
3352
+ :email,
3353
+ :keep_empty_folders,
3354
+ :conflict_resolution)
3355
+ include Aws::Structure
3356
+ end
3357
+
3358
+ # @!attribute [rw] pull_request
3359
+ # Returns information about a pull request.
3360
+ # @return [Types::PullRequest]
3361
+ #
3362
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestBySquashOutput AWS API Documentation
3363
+ #
3364
+ class MergePullRequestBySquashOutput < Struct.new(
3365
+ :pull_request)
3366
+ include Aws::Structure
3367
+ end
3368
+
3369
+ # @note When making an API call, you may pass MergePullRequestByThreeWayInput
3370
+ # data as a hash:
3371
+ #
3372
+ # {
3373
+ # pull_request_id: "PullRequestId", # required
3374
+ # repository_name: "RepositoryName", # required
3375
+ # source_commit_id: "ObjectId",
3376
+ # conflict_detail_level: "FILE_LEVEL", # accepts FILE_LEVEL, LINE_LEVEL
3377
+ # conflict_resolution_strategy: "NONE", # accepts NONE, ACCEPT_SOURCE, ACCEPT_DESTINATION, AUTOMERGE
3378
+ # commit_message: "Message",
3379
+ # author_name: "Name",
3380
+ # email: "Email",
3381
+ # keep_empty_folders: false,
3382
+ # conflict_resolution: {
3383
+ # replace_contents: [
3384
+ # {
3385
+ # file_path: "Path", # required
3386
+ # replacement_type: "KEEP_BASE", # required, accepts KEEP_BASE, KEEP_SOURCE, KEEP_DESTINATION, USE_NEW_CONTENT
3387
+ # content: "data",
3388
+ # file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
3389
+ # },
3390
+ # ],
3391
+ # delete_files: [
3392
+ # {
3393
+ # file_path: "Path", # required
3394
+ # },
3395
+ # ],
3396
+ # set_file_modes: [
3397
+ # {
3398
+ # file_path: "Path", # required
3399
+ # file_mode: "EXECUTABLE", # required, accepts EXECUTABLE, NORMAL, SYMLINK
3400
+ # },
3401
+ # ],
3402
+ # },
3403
+ # }
3404
+ #
3405
+ # @!attribute [rw] pull_request_id
3406
+ # The system-generated ID of the pull request. To get this ID, use
3407
+ # ListPullRequests.
3408
+ # @return [String]
3409
+ #
3410
+ # @!attribute [rw] repository_name
3411
+ # The name of the repository where the pull request was created.
3412
+ # @return [String]
3413
+ #
3414
+ # @!attribute [rw] source_commit_id
3415
+ # The full commit ID of the original or updated commit in the pull
3416
+ # request source branch. Pass this value if you want an exception
3417
+ # thrown if the current commit ID of the tip of the source branch does
3418
+ # not match this commit ID.
3419
+ # @return [String]
3420
+ #
3421
+ # @!attribute [rw] conflict_detail_level
3422
+ # The level of conflict detail to use. If unspecified, the default
3423
+ # FILE\_LEVEL is used, which will return a not mergeable result if the
3424
+ # same file has differences in both branches. If LINE\_LEVEL is
3425
+ # specified, a conflict will be considered not mergeable if the same
3426
+ # file in both branches has differences on the same line.
3427
+ # @return [String]
3428
+ #
3429
+ # @!attribute [rw] conflict_resolution_strategy
3430
+ # Specifies which branch to use when resolving conflicts, or whether
3431
+ # to attempt automatically merging two versions of a file. The default
3432
+ # is NONE, which requires any conflicts to be resolved manually before
3433
+ # the merge operation will be successful.
3434
+ # @return [String]
3435
+ #
3436
+ # @!attribute [rw] commit_message
3437
+ # The commit message to include in the commit information for the
3438
+ # merge.
3439
+ # @return [String]
3440
+ #
3441
+ # @!attribute [rw] author_name
3442
+ # The name of the author who created the commit. This information will
3443
+ # be used as both the author and committer for the commit.
3444
+ # @return [String]
3445
+ #
3446
+ # @!attribute [rw] email
3447
+ # The email address of the person merging the branches. This
3448
+ # information will be used in the commit information for the merge.
3449
+ # @return [String]
3450
+ #
3451
+ # @!attribute [rw] keep_empty_folders
3452
+ # If the commit contains deletions, whether to keep a folder or folder
3453
+ # structure if the changes leave the folders empty. If this is
3454
+ # specified as true, a .gitkeep file will be created for empty
3455
+ # folders. The default is false.
3456
+ # @return [Boolean]
3457
+ #
3458
+ # @!attribute [rw] conflict_resolution
3459
+ # A list of inputs to use when resolving conflicts during a merge if
3460
+ # AUTOMERGE is chosen as the conflict resolution strategy.
3461
+ # @return [Types::ConflictResolution]
3462
+ #
3463
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByThreeWayInput AWS API Documentation
3464
+ #
3465
+ class MergePullRequestByThreeWayInput < Struct.new(
3466
+ :pull_request_id,
3467
+ :repository_name,
3468
+ :source_commit_id,
3469
+ :conflict_detail_level,
3470
+ :conflict_resolution_strategy,
3471
+ :commit_message,
3472
+ :author_name,
3473
+ :email,
3474
+ :keep_empty_folders,
3475
+ :conflict_resolution)
3476
+ include Aws::Structure
3477
+ end
3478
+
3479
+ # @!attribute [rw] pull_request
3480
+ # Returns information about a pull request.
3481
+ # @return [Types::PullRequest]
3482
+ #
3483
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByThreeWayOutput AWS API Documentation
3484
+ #
3485
+ class MergePullRequestByThreeWayOutput < Struct.new(
3486
+ :pull_request)
3487
+ include Aws::Structure
3488
+ end
3489
+
3490
+ # Information about the type of an object in a merge operation.
3491
+ #
3492
+ # @!attribute [rw] source
3493
+ # The type of the object in the source branch.
3494
+ # @return [String]
3495
+ #
3496
+ # @!attribute [rw] destination
3497
+ # The type of the object in the destination branch.
3498
+ # @return [String]
3499
+ #
3500
+ # @!attribute [rw] base
3501
+ # The type of the object in the base commit of the merge.
3502
+ # @return [String]
3503
+ #
3504
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ObjectTypes AWS API Documentation
3505
+ #
3506
+ class ObjectTypes < Struct.new(
3507
+ :source,
3508
+ :destination,
3509
+ :base)
3510
+ include Aws::Structure
3511
+ end
3512
+
2033
3513
  # @note When making an API call, you may pass PostCommentForComparedCommitInput
2034
3514
  # data as a hash:
2035
3515
  #
@@ -2787,6 +4267,47 @@ module Aws::CodeCommit
2787
4267
  include Aws::Structure
2788
4268
  end
2789
4269
 
4270
+ # Information about a replacement content entry in the conflict of a
4271
+ # merge or pull request operation.
4272
+ #
4273
+ # @note When making an API call, you may pass ReplaceContentEntry
4274
+ # data as a hash:
4275
+ #
4276
+ # {
4277
+ # file_path: "Path", # required
4278
+ # replacement_type: "KEEP_BASE", # required, accepts KEEP_BASE, KEEP_SOURCE, KEEP_DESTINATION, USE_NEW_CONTENT
4279
+ # content: "data",
4280
+ # file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
4281
+ # }
4282
+ #
4283
+ # @!attribute [rw] file_path
4284
+ # The path of the conflicting file.
4285
+ # @return [String]
4286
+ #
4287
+ # @!attribute [rw] replacement_type
4288
+ # The replacement type to use when determining how to resolve the
4289
+ # conflict.
4290
+ # @return [String]
4291
+ #
4292
+ # @!attribute [rw] content
4293
+ # The base-64 encoded content to use when the replacement type is
4294
+ # USE\_NEW\_CONTENT.
4295
+ # @return [String]
4296
+ #
4297
+ # @!attribute [rw] file_mode
4298
+ # The file mode to apply during conflict resoltion.
4299
+ # @return [String]
4300
+ #
4301
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ReplaceContentEntry AWS API Documentation
4302
+ #
4303
+ class ReplaceContentEntry < Struct.new(
4304
+ :file_path,
4305
+ :replacement_type,
4306
+ :content,
4307
+ :file_mode)
4308
+ include Aws::Structure
4309
+ end
4310
+
2790
4311
  # Information about a repository.
2791
4312
  #
2792
4313
  # @!attribute [rw] account_id