aws-sdk-codecommit 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0bd5fc74c9c12ccb1ec7d70efa25c842dfbfba8
4
- data.tar.gz: 0775160775b7fa730cbd3e404985dfb02bd6f369
3
+ metadata.gz: 817d9d103813323e10a1e122051f6b0bf2079467
4
+ data.tar.gz: cdf500e9215a2cc9128859e8bb1e6966a4808636
5
5
  SHA512:
6
- metadata.gz: 0f9a62d366d3163a922350636d7021d063520a1aec4c7493d83346e01480250b80406066c391a9d04231c3bc7fad8fc15ec1cb5098234174950bfe8ad861f87d
7
- data.tar.gz: 42ee71d61d1da540f3acbf318120cd5501f1dac108d02c042a0a15d0bb769adcccd8a1fe18e5abfc0051f1b4a49d152f176eb6063e299c11e3486f4027f0445d
6
+ metadata.gz: 7b947a8ee8e4a8e2df1c0091a45fa45dfdba61cda21810daf7ce43dbc39ab15271d628a098c2dab9e26dbca9586d9148cbf4c0182b0e6502fba5640a6835a995
7
+ data.tar.gz: 65d8287823bc6135b32a3af63baea15c7eabf3b5cfc8f66baba43591c10b1a5e05a4397d2822a701774727cc22923b05915dd79078f7f670c8635f6ce8e91abb
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-codecommit/customizations'
42
42
  # @service
43
43
  module Aws::CodeCommit
44
44
 
45
- GEM_VERSION = '1.1.0'
45
+ GEM_VERSION = '1.2.0'
46
46
 
47
47
  end
@@ -241,6 +241,84 @@ module Aws::CodeCommit
241
241
  req.send_request(options)
242
242
  end
243
243
 
244
+ # Creates a pull request in the specified repository.
245
+ #
246
+ # @option params [required, String] :title
247
+ # The title of the pull request. This title will be used to identify the
248
+ # pull request to other users in the repository.
249
+ #
250
+ # @option params [String] :description
251
+ # A description of the pull request.
252
+ #
253
+ # @option params [required, Array<Types::Target>] :targets
254
+ # The targets for the pull request, including the source of the code to
255
+ # be reviewed (the source branch), and the destination where the creator
256
+ # of the pull request intends the code to be merged after the pull
257
+ # request is closed (the destination branch).
258
+ #
259
+ # @option params [String] :client_request_token
260
+ # A unique, client-generated idempotency token that when provided in a
261
+ # request, ensures the request cannot be repeated with a changed
262
+ # parameter. If a request is received with the same parameters and a
263
+ # token is included, the request will return information about the
264
+ # initial request that used that token.
265
+ #
266
+ # <note markdown="1"> The AWS SDKs prepopulate client request tokens. If using an AWS SDK,
267
+ # you do not have to generate an idempotency token, as this will be done
268
+ # for you.
269
+ #
270
+ # </note>
271
+ #
272
+ # **A suitable default value is auto-generated.** You should normally
273
+ # not need to pass this option.**
274
+ #
275
+ # @return [Types::CreatePullRequestOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
276
+ #
277
+ # * {Types::CreatePullRequestOutput#pull_request #pull_request} => Types::PullRequest
278
+ #
279
+ # @example Request syntax with placeholder values
280
+ #
281
+ # resp = client.create_pull_request({
282
+ # title: "Title", # required
283
+ # description: "Description",
284
+ # targets: [ # required
285
+ # {
286
+ # repository_name: "RepositoryName", # required
287
+ # source_reference: "ReferenceName", # required
288
+ # destination_reference: "ReferenceName",
289
+ # },
290
+ # ],
291
+ # client_request_token: "ClientRequestToken",
292
+ # })
293
+ #
294
+ # @example Response structure
295
+ #
296
+ # resp.pull_request.pull_request_id #=> String
297
+ # resp.pull_request.title #=> String
298
+ # resp.pull_request.description #=> String
299
+ # resp.pull_request.last_activity_date #=> Time
300
+ # resp.pull_request.creation_date #=> Time
301
+ # resp.pull_request.pull_request_status #=> String, one of "OPEN", "CLOSED"
302
+ # resp.pull_request.author_arn #=> String
303
+ # resp.pull_request.pull_request_targets #=> Array
304
+ # resp.pull_request.pull_request_targets[0].repository_name #=> String
305
+ # resp.pull_request.pull_request_targets[0].source_reference #=> String
306
+ # resp.pull_request.pull_request_targets[0].destination_reference #=> String
307
+ # resp.pull_request.pull_request_targets[0].destination_commit #=> String
308
+ # resp.pull_request.pull_request_targets[0].source_commit #=> String
309
+ # resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
310
+ # resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
311
+ # resp.pull_request.client_request_token #=> String
312
+ #
313
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequest AWS API Documentation
314
+ #
315
+ # @overload create_pull_request(params = {})
316
+ # @param [Hash] params ({})
317
+ def create_pull_request(params = {}, options = {})
318
+ req = build_request(:create_pull_request, params)
319
+ req.send_request(options)
320
+ end
321
+
244
322
  # Creates a new, empty repository.
245
323
  #
246
324
  # @option params [required, String] :repository_name
@@ -337,6 +415,43 @@ module Aws::CodeCommit
337
415
  req.send_request(options)
338
416
  end
339
417
 
418
+ # Deletes the content of a comment made on a change, file, or commit in
419
+ # a repository.
420
+ #
421
+ # @option params [required, String] :comment_id
422
+ # The unique, system-generated ID of the comment. To get this ID, use
423
+ # GetCommentsForComparedCommit or GetCommentsForPullRequest.
424
+ #
425
+ # @return [Types::DeleteCommentContentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
426
+ #
427
+ # * {Types::DeleteCommentContentOutput#comment #comment} => Types::Comment
428
+ #
429
+ # @example Request syntax with placeholder values
430
+ #
431
+ # resp = client.delete_comment_content({
432
+ # comment_id: "CommentId", # required
433
+ # })
434
+ #
435
+ # @example Response structure
436
+ #
437
+ # resp.comment.comment_id #=> String
438
+ # resp.comment.content #=> String
439
+ # resp.comment.in_reply_to #=> String
440
+ # resp.comment.creation_date #=> Time
441
+ # resp.comment.last_modified_date #=> Time
442
+ # resp.comment.author_arn #=> String
443
+ # resp.comment.deleted #=> Boolean
444
+ # resp.comment.client_request_token #=> String
445
+ #
446
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteCommentContent AWS API Documentation
447
+ #
448
+ # @overload delete_comment_content(params = {})
449
+ # @param [Hash] params ({})
450
+ def delete_comment_content(params = {}, options = {})
451
+ req = build_request(:delete_comment_content, params)
452
+ req.send_request(options)
453
+ end
454
+
340
455
  # Deletes a repository. If a specified repository was already deleted, a
341
456
  # null repository ID will be returned.
342
457
  #
@@ -370,6 +485,71 @@ module Aws::CodeCommit
370
485
  req.send_request(options)
371
486
  end
372
487
 
488
+ # Returns information about one or more pull request events.
489
+ #
490
+ # @option params [required, String] :pull_request_id
491
+ # The system-generated ID of the pull request. To get this ID, use
492
+ # ListPullRequests.
493
+ #
494
+ # @option params [String] :pull_request_event_type
495
+ # Optional. The pull request event type about which you want to return
496
+ # information.
497
+ #
498
+ # @option params [String] :actor_arn
499
+ # The Amazon Resource Name (ARN) of the user whose actions resulted in
500
+ # the event. Examples include updating the pull request with additional
501
+ # commits or changing the status of a pull request.
502
+ #
503
+ # @option params [String] :next_token
504
+ # An enumeration token that when provided in a request, returns the next
505
+ # batch of the results.
506
+ #
507
+ # @option params [Integer] :max_results
508
+ # A non-negative integer used to limit the number of returned results.
509
+ # The default is 100 events, which is also the maximum number of events
510
+ # that can be returned in a result.
511
+ #
512
+ # @return [Types::DescribePullRequestEventsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
513
+ #
514
+ # * {Types::DescribePullRequestEventsOutput#pull_request_events #pull_request_events} => Array&lt;Types::PullRequestEvent&gt;
515
+ # * {Types::DescribePullRequestEventsOutput#next_token #next_token} => String
516
+ #
517
+ # @example Request syntax with placeholder values
518
+ #
519
+ # resp = client.describe_pull_request_events({
520
+ # pull_request_id: "PullRequestId", # required
521
+ # 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
522
+ # actor_arn: "Arn",
523
+ # next_token: "NextToken",
524
+ # max_results: 1,
525
+ # })
526
+ #
527
+ # @example Response structure
528
+ #
529
+ # resp.pull_request_events #=> Array
530
+ # resp.pull_request_events[0].pull_request_id #=> String
531
+ # resp.pull_request_events[0].event_date #=> Time
532
+ # 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"
533
+ # resp.pull_request_events[0].actor_arn #=> String
534
+ # resp.pull_request_events[0].pull_request_status_changed_event_metadata.pull_request_status #=> String, one of "OPEN", "CLOSED"
535
+ # resp.pull_request_events[0].pull_request_source_reference_updated_event_metadata.repository_name #=> String
536
+ # resp.pull_request_events[0].pull_request_source_reference_updated_event_metadata.before_commit_id #=> String
537
+ # resp.pull_request_events[0].pull_request_source_reference_updated_event_metadata.after_commit_id #=> String
538
+ # resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.repository_name #=> String
539
+ # resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.destination_reference #=> String
540
+ # resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.merge_metadata.is_merged #=> Boolean
541
+ # resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.merge_metadata.merged_by #=> String
542
+ # resp.next_token #=> String
543
+ #
544
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribePullRequestEvents AWS API Documentation
545
+ #
546
+ # @overload describe_pull_request_events(params = {})
547
+ # @param [Hash] params ({})
548
+ def describe_pull_request_events(params = {}, options = {})
549
+ req = build_request(:describe_pull_request_events, params)
550
+ req.send_request(options)
551
+ end
552
+
373
553
  # Returns the base-64 encoded content of an individual blob within a
374
554
  # repository.
375
555
  #
@@ -438,6 +618,185 @@ module Aws::CodeCommit
438
618
  req.send_request(options)
439
619
  end
440
620
 
621
+ # Returns the content of a comment made on a change, file, or commit in
622
+ # a repository.
623
+ #
624
+ # @option params [required, String] :comment_id
625
+ # The unique, system-generated ID of the comment. To get this ID, use
626
+ # GetCommentsForComparedCommit or GetCommentsForPullRequest.
627
+ #
628
+ # @return [Types::GetCommentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
629
+ #
630
+ # * {Types::GetCommentOutput#comment #comment} => Types::Comment
631
+ #
632
+ # @example Request syntax with placeholder values
633
+ #
634
+ # resp = client.get_comment({
635
+ # comment_id: "CommentId", # required
636
+ # })
637
+ #
638
+ # @example Response structure
639
+ #
640
+ # resp.comment.comment_id #=> String
641
+ # resp.comment.content #=> String
642
+ # resp.comment.in_reply_to #=> String
643
+ # resp.comment.creation_date #=> Time
644
+ # resp.comment.last_modified_date #=> Time
645
+ # resp.comment.author_arn #=> String
646
+ # resp.comment.deleted #=> Boolean
647
+ # resp.comment.client_request_token #=> String
648
+ #
649
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetComment AWS API Documentation
650
+ #
651
+ # @overload get_comment(params = {})
652
+ # @param [Hash] params ({})
653
+ def get_comment(params = {}, options = {})
654
+ req = build_request(:get_comment, params)
655
+ req.send_request(options)
656
+ end
657
+
658
+ # Returns information about comments made on the comparison between two
659
+ # commits.
660
+ #
661
+ # @option params [required, String] :repository_name
662
+ # The name of the repository where you want to compare commits.
663
+ #
664
+ # @option params [String] :before_commit_id
665
+ # To establish the directionality of the comparison, the full commit ID
666
+ # of the 'before' commit.
667
+ #
668
+ # @option params [required, String] :after_commit_id
669
+ # To establish the directionality of the comparison, the full commit ID
670
+ # of the 'after' commit.
671
+ #
672
+ # @option params [String] :next_token
673
+ # An enumeration token that when provided in a request, returns the next
674
+ # batch of the results.
675
+ #
676
+ # @option params [Integer] :max_results
677
+ # A non-negative integer used to limit the number of returned results.
678
+ # The default is 100 comments, and is configurable up to 500.
679
+ #
680
+ # @return [Types::GetCommentsForComparedCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
681
+ #
682
+ # * {Types::GetCommentsForComparedCommitOutput#comments_for_compared_commit_data #comments_for_compared_commit_data} => Array&lt;Types::CommentsForComparedCommit&gt;
683
+ # * {Types::GetCommentsForComparedCommitOutput#next_token #next_token} => String
684
+ #
685
+ # @example Request syntax with placeholder values
686
+ #
687
+ # resp = client.get_comments_for_compared_commit({
688
+ # repository_name: "RepositoryName", # required
689
+ # before_commit_id: "CommitId",
690
+ # after_commit_id: "CommitId", # required
691
+ # next_token: "NextToken",
692
+ # max_results: 1,
693
+ # })
694
+ #
695
+ # @example Response structure
696
+ #
697
+ # resp.comments_for_compared_commit_data #=> Array
698
+ # resp.comments_for_compared_commit_data[0].repository_name #=> String
699
+ # resp.comments_for_compared_commit_data[0].before_commit_id #=> String
700
+ # resp.comments_for_compared_commit_data[0].after_commit_id #=> String
701
+ # resp.comments_for_compared_commit_data[0].before_blob_id #=> String
702
+ # resp.comments_for_compared_commit_data[0].after_blob_id #=> String
703
+ # resp.comments_for_compared_commit_data[0].location.file_path #=> String
704
+ # resp.comments_for_compared_commit_data[0].location.file_position #=> Integer
705
+ # resp.comments_for_compared_commit_data[0].location.relative_file_version #=> String, one of "BEFORE", "AFTER"
706
+ # resp.comments_for_compared_commit_data[0].comments #=> Array
707
+ # resp.comments_for_compared_commit_data[0].comments[0].comment_id #=> String
708
+ # resp.comments_for_compared_commit_data[0].comments[0].content #=> String
709
+ # resp.comments_for_compared_commit_data[0].comments[0].in_reply_to #=> String
710
+ # resp.comments_for_compared_commit_data[0].comments[0].creation_date #=> Time
711
+ # resp.comments_for_compared_commit_data[0].comments[0].last_modified_date #=> Time
712
+ # resp.comments_for_compared_commit_data[0].comments[0].author_arn #=> String
713
+ # resp.comments_for_compared_commit_data[0].comments[0].deleted #=> Boolean
714
+ # resp.comments_for_compared_commit_data[0].comments[0].client_request_token #=> String
715
+ # resp.next_token #=> String
716
+ #
717
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForComparedCommit AWS API Documentation
718
+ #
719
+ # @overload get_comments_for_compared_commit(params = {})
720
+ # @param [Hash] params ({})
721
+ def get_comments_for_compared_commit(params = {}, options = {})
722
+ req = build_request(:get_comments_for_compared_commit, params)
723
+ req.send_request(options)
724
+ end
725
+
726
+ # Returns comments made on a pull request.
727
+ #
728
+ # @option params [required, String] :pull_request_id
729
+ # The system-generated ID of the pull request. To get this ID, use
730
+ # ListPullRequests.
731
+ #
732
+ # @option params [String] :repository_name
733
+ # The name of the repository that contains the pull request.
734
+ #
735
+ # @option params [String] :before_commit_id
736
+ # The full commit ID of the commit in the destination branch that was
737
+ # the tip of the branch at the time the pull request was created.
738
+ #
739
+ # @option params [String] :after_commit_id
740
+ # The full commit ID of the commit in the source branch that was the tip
741
+ # of the branch at the time the comment was made.
742
+ #
743
+ # @option params [String] :next_token
744
+ # An enumeration token that when provided in a request, returns the next
745
+ # batch of the results.
746
+ #
747
+ # @option params [Integer] :max_results
748
+ # A non-negative integer used to limit the number of returned results.
749
+ # The default is 100 comments. You can return up to 500 comments with a
750
+ # single request.
751
+ #
752
+ # @return [Types::GetCommentsForPullRequestOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
753
+ #
754
+ # * {Types::GetCommentsForPullRequestOutput#comments_for_pull_request_data #comments_for_pull_request_data} => Array&lt;Types::CommentsForPullRequest&gt;
755
+ # * {Types::GetCommentsForPullRequestOutput#next_token #next_token} => String
756
+ #
757
+ # @example Request syntax with placeholder values
758
+ #
759
+ # resp = client.get_comments_for_pull_request({
760
+ # pull_request_id: "PullRequestId", # required
761
+ # repository_name: "RepositoryName",
762
+ # before_commit_id: "CommitId",
763
+ # after_commit_id: "CommitId",
764
+ # next_token: "NextToken",
765
+ # max_results: 1,
766
+ # })
767
+ #
768
+ # @example Response structure
769
+ #
770
+ # resp.comments_for_pull_request_data #=> Array
771
+ # resp.comments_for_pull_request_data[0].pull_request_id #=> String
772
+ # resp.comments_for_pull_request_data[0].repository_name #=> String
773
+ # resp.comments_for_pull_request_data[0].before_commit_id #=> String
774
+ # resp.comments_for_pull_request_data[0].after_commit_id #=> String
775
+ # resp.comments_for_pull_request_data[0].before_blob_id #=> String
776
+ # resp.comments_for_pull_request_data[0].after_blob_id #=> String
777
+ # resp.comments_for_pull_request_data[0].location.file_path #=> String
778
+ # resp.comments_for_pull_request_data[0].location.file_position #=> Integer
779
+ # resp.comments_for_pull_request_data[0].location.relative_file_version #=> String, one of "BEFORE", "AFTER"
780
+ # resp.comments_for_pull_request_data[0].comments #=> Array
781
+ # resp.comments_for_pull_request_data[0].comments[0].comment_id #=> String
782
+ # resp.comments_for_pull_request_data[0].comments[0].content #=> String
783
+ # resp.comments_for_pull_request_data[0].comments[0].in_reply_to #=> String
784
+ # resp.comments_for_pull_request_data[0].comments[0].creation_date #=> Time
785
+ # resp.comments_for_pull_request_data[0].comments[0].last_modified_date #=> Time
786
+ # resp.comments_for_pull_request_data[0].comments[0].author_arn #=> String
787
+ # resp.comments_for_pull_request_data[0].comments[0].deleted #=> Boolean
788
+ # resp.comments_for_pull_request_data[0].comments[0].client_request_token #=> String
789
+ # resp.next_token #=> String
790
+ #
791
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForPullRequest AWS API Documentation
792
+ #
793
+ # @overload get_comments_for_pull_request(params = {})
794
+ # @param [Hash] params ({})
795
+ def get_comments_for_pull_request(params = {}, options = {})
796
+ req = build_request(:get_comments_for_pull_request, params)
797
+ req.send_request(options)
798
+ end
799
+
441
800
  # Returns information about a commit, including commit message and
442
801
  # committer information.
443
802
  #
@@ -557,6 +916,98 @@ module Aws::CodeCommit
557
916
  req.send_request(options)
558
917
  end
559
918
 
919
+ # Returns information about merge conflicts between the before and after
920
+ # commit IDs for a pull request in a repository.
921
+ #
922
+ # @option params [required, String] :repository_name
923
+ # The name of the repository where the pull request was created.
924
+ #
925
+ # @option params [required, String] :destination_commit_specifier
926
+ # The branch, tag, HEAD, or other fully qualified reference used to
927
+ # identify a commit. For example, a branch name or a full commit ID.
928
+ #
929
+ # @option params [required, String] :source_commit_specifier
930
+ # The branch, tag, HEAD, or other fully qualified reference used to
931
+ # identify a commit. For example, a branch name or a full commit ID.
932
+ #
933
+ # @option params [required, String] :merge_option
934
+ # The merge option or strategy you want to use to merge the code. The
935
+ # only valid value is FAST\_FORWARD\_MERGE.
936
+ #
937
+ # @return [Types::GetMergeConflictsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
938
+ #
939
+ # * {Types::GetMergeConflictsOutput#mergeable #mergeable} => Boolean
940
+ # * {Types::GetMergeConflictsOutput#destination_commit_id #destination_commit_id} => String
941
+ # * {Types::GetMergeConflictsOutput#source_commit_id #source_commit_id} => String
942
+ #
943
+ # @example Request syntax with placeholder values
944
+ #
945
+ # resp = client.get_merge_conflicts({
946
+ # repository_name: "RepositoryName", # required
947
+ # destination_commit_specifier: "CommitName", # required
948
+ # source_commit_specifier: "CommitName", # required
949
+ # merge_option: "FAST_FORWARD_MERGE", # required, accepts FAST_FORWARD_MERGE
950
+ # })
951
+ #
952
+ # @example Response structure
953
+ #
954
+ # resp.mergeable #=> Boolean
955
+ # resp.destination_commit_id #=> String
956
+ # resp.source_commit_id #=> String
957
+ #
958
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflicts AWS API Documentation
959
+ #
960
+ # @overload get_merge_conflicts(params = {})
961
+ # @param [Hash] params ({})
962
+ def get_merge_conflicts(params = {}, options = {})
963
+ req = build_request(:get_merge_conflicts, params)
964
+ req.send_request(options)
965
+ end
966
+
967
+ # Gets information about a pull request in a specified repository.
968
+ #
969
+ # @option params [required, String] :pull_request_id
970
+ # The system-generated ID of the pull request. To get this ID, use
971
+ # ListPullRequests.
972
+ #
973
+ # @return [Types::GetPullRequestOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
974
+ #
975
+ # * {Types::GetPullRequestOutput#pull_request #pull_request} => Types::PullRequest
976
+ #
977
+ # @example Request syntax with placeholder values
978
+ #
979
+ # resp = client.get_pull_request({
980
+ # pull_request_id: "PullRequestId", # required
981
+ # })
982
+ #
983
+ # @example Response structure
984
+ #
985
+ # resp.pull_request.pull_request_id #=> String
986
+ # resp.pull_request.title #=> String
987
+ # resp.pull_request.description #=> String
988
+ # resp.pull_request.last_activity_date #=> Time
989
+ # resp.pull_request.creation_date #=> Time
990
+ # resp.pull_request.pull_request_status #=> String, one of "OPEN", "CLOSED"
991
+ # resp.pull_request.author_arn #=> String
992
+ # resp.pull_request.pull_request_targets #=> Array
993
+ # resp.pull_request.pull_request_targets[0].repository_name #=> String
994
+ # resp.pull_request.pull_request_targets[0].source_reference #=> String
995
+ # resp.pull_request.pull_request_targets[0].destination_reference #=> String
996
+ # resp.pull_request.pull_request_targets[0].destination_commit #=> String
997
+ # resp.pull_request.pull_request_targets[0].source_commit #=> String
998
+ # resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
999
+ # resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
1000
+ # resp.pull_request.client_request_token #=> String
1001
+ #
1002
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest AWS API Documentation
1003
+ #
1004
+ # @overload get_pull_request(params = {})
1005
+ # @param [Hash] params ({})
1006
+ def get_pull_request(params = {}, options = {})
1007
+ req = build_request(:get_pull_request, params)
1008
+ req.send_request(options)
1009
+ end
1010
+
560
1011
  # Returns information about a repository.
561
1012
  #
562
1013
  # <note markdown="1"> The description field for a repository accepts all HTML characters and
@@ -675,6 +1126,58 @@ module Aws::CodeCommit
675
1126
  req.send_request(options)
676
1127
  end
677
1128
 
1129
+ # Returns a list of pull requests for a specified repository. The return
1130
+ # list can be refined by pull request status or pull request author ARN.
1131
+ #
1132
+ # @option params [required, String] :repository_name
1133
+ # The name of the repository for which you want to list pull requests.
1134
+ #
1135
+ # @option params [String] :author_arn
1136
+ # Optional. The Amazon Resource Name (ARN) of the user who created the
1137
+ # pull request. If used, this filters the results to pull requests
1138
+ # created by that user.
1139
+ #
1140
+ # @option params [String] :pull_request_status
1141
+ # Optional. The status of the pull request. If used, this refines the
1142
+ # results to the pull requests that match the specified status.
1143
+ #
1144
+ # @option params [String] :next_token
1145
+ # An enumeration token that when provided in a request, returns the next
1146
+ # batch of the results.
1147
+ #
1148
+ # @option params [Integer] :max_results
1149
+ # A non-negative integer used to limit the number of returned results.
1150
+ #
1151
+ # @return [Types::ListPullRequestsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1152
+ #
1153
+ # * {Types::ListPullRequestsOutput#pull_request_ids #pull_request_ids} => Array&lt;String&gt;
1154
+ # * {Types::ListPullRequestsOutput#next_token #next_token} => String
1155
+ #
1156
+ # @example Request syntax with placeholder values
1157
+ #
1158
+ # resp = client.list_pull_requests({
1159
+ # repository_name: "RepositoryName", # required
1160
+ # author_arn: "Arn",
1161
+ # pull_request_status: "OPEN", # accepts OPEN, CLOSED
1162
+ # next_token: "NextToken",
1163
+ # max_results: 1,
1164
+ # })
1165
+ #
1166
+ # @example Response structure
1167
+ #
1168
+ # resp.pull_request_ids #=> Array
1169
+ # resp.pull_request_ids[0] #=> String
1170
+ # resp.next_token #=> String
1171
+ #
1172
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListPullRequests AWS API Documentation
1173
+ #
1174
+ # @overload list_pull_requests(params = {})
1175
+ # @param [Hash] params ({})
1176
+ def list_pull_requests(params = {}, options = {})
1177
+ req = build_request(:list_pull_requests, params)
1178
+ req.send_request(options)
1179
+ end
1180
+
678
1181
  # Gets information about one or more repositories.
679
1182
  #
680
1183
  # @option params [String] :next_token
@@ -720,6 +1223,293 @@ module Aws::CodeCommit
720
1223
  req.send_request(options)
721
1224
  end
722
1225
 
1226
+ # Closes a pull request and attempts to merge the source commit of a
1227
+ # pull request into the specified destination branch for that pull
1228
+ # request at the specified commit using the fast-forward merge option.
1229
+ #
1230
+ # @option params [required, String] :pull_request_id
1231
+ # The system-generated ID of the pull request. To get this ID, use
1232
+ # ListPullRequests.
1233
+ #
1234
+ # @option params [required, String] :repository_name
1235
+ # The name of the repository where the pull request was created.
1236
+ #
1237
+ # @option params [String] :source_commit_id
1238
+ # The full commit ID of the original or updated commit in the pull
1239
+ # request source branch. Pass this value if you want an exception thrown
1240
+ # if the current commit ID of the tip of the source branch does not
1241
+ # match this commit ID.
1242
+ #
1243
+ # @return [Types::MergePullRequestByFastForwardOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1244
+ #
1245
+ # * {Types::MergePullRequestByFastForwardOutput#pull_request #pull_request} => Types::PullRequest
1246
+ #
1247
+ # @example Request syntax with placeholder values
1248
+ #
1249
+ # resp = client.merge_pull_request_by_fast_forward({
1250
+ # pull_request_id: "PullRequestId", # required
1251
+ # repository_name: "RepositoryName", # required
1252
+ # source_commit_id: "CommitId",
1253
+ # })
1254
+ #
1255
+ # @example Response structure
1256
+ #
1257
+ # resp.pull_request.pull_request_id #=> String
1258
+ # resp.pull_request.title #=> String
1259
+ # resp.pull_request.description #=> String
1260
+ # resp.pull_request.last_activity_date #=> Time
1261
+ # resp.pull_request.creation_date #=> Time
1262
+ # resp.pull_request.pull_request_status #=> String, one of "OPEN", "CLOSED"
1263
+ # resp.pull_request.author_arn #=> String
1264
+ # resp.pull_request.pull_request_targets #=> Array
1265
+ # resp.pull_request.pull_request_targets[0].repository_name #=> String
1266
+ # resp.pull_request.pull_request_targets[0].source_reference #=> String
1267
+ # resp.pull_request.pull_request_targets[0].destination_reference #=> String
1268
+ # resp.pull_request.pull_request_targets[0].destination_commit #=> String
1269
+ # resp.pull_request.pull_request_targets[0].source_commit #=> String
1270
+ # resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
1271
+ # resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
1272
+ # resp.pull_request.client_request_token #=> String
1273
+ #
1274
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByFastForward AWS API Documentation
1275
+ #
1276
+ # @overload merge_pull_request_by_fast_forward(params = {})
1277
+ # @param [Hash] params ({})
1278
+ def merge_pull_request_by_fast_forward(params = {}, options = {})
1279
+ req = build_request(:merge_pull_request_by_fast_forward, params)
1280
+ req.send_request(options)
1281
+ end
1282
+
1283
+ # Posts a comment on the comparison between two commits.
1284
+ #
1285
+ # @option params [required, String] :repository_name
1286
+ # The name of the repository where you want to post a comment on the
1287
+ # comparison between commits.
1288
+ #
1289
+ # @option params [String] :before_commit_id
1290
+ # To establish the directionality of the comparison, the full commit ID
1291
+ # of the 'before' commit.
1292
+ #
1293
+ # @option params [required, String] :after_commit_id
1294
+ # To establish the directionality of the comparison, the full commit ID
1295
+ # of the 'after' commit.
1296
+ #
1297
+ # @option params [Types::Location] :location
1298
+ # The location of the comparison where you want to comment.
1299
+ #
1300
+ # @option params [required, String] :content
1301
+ # The content of the comment you want to make.
1302
+ #
1303
+ # @option params [String] :client_request_token
1304
+ # A unique, client-generated idempotency token that when provided in a
1305
+ # request, ensures the request cannot be repeated with a changed
1306
+ # parameter. If a request is received with the same parameters and a
1307
+ # token is included, the request will return information about the
1308
+ # initial request that used that token.
1309
+ #
1310
+ # **A suitable default value is auto-generated.** You should normally
1311
+ # not need to pass this option.**
1312
+ #
1313
+ # @return [Types::PostCommentForComparedCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1314
+ #
1315
+ # * {Types::PostCommentForComparedCommitOutput#repository_name #repository_name} => String
1316
+ # * {Types::PostCommentForComparedCommitOutput#before_commit_id #before_commit_id} => String
1317
+ # * {Types::PostCommentForComparedCommitOutput#after_commit_id #after_commit_id} => String
1318
+ # * {Types::PostCommentForComparedCommitOutput#before_blob_id #before_blob_id} => String
1319
+ # * {Types::PostCommentForComparedCommitOutput#after_blob_id #after_blob_id} => String
1320
+ # * {Types::PostCommentForComparedCommitOutput#location #location} => Types::Location
1321
+ # * {Types::PostCommentForComparedCommitOutput#comment #comment} => Types::Comment
1322
+ #
1323
+ # @example Request syntax with placeholder values
1324
+ #
1325
+ # resp = client.post_comment_for_compared_commit({
1326
+ # repository_name: "RepositoryName", # required
1327
+ # before_commit_id: "CommitId",
1328
+ # after_commit_id: "CommitId", # required
1329
+ # location: {
1330
+ # file_path: "Path",
1331
+ # file_position: 1,
1332
+ # relative_file_version: "BEFORE", # accepts BEFORE, AFTER
1333
+ # },
1334
+ # content: "Content", # required
1335
+ # client_request_token: "ClientRequestToken",
1336
+ # })
1337
+ #
1338
+ # @example Response structure
1339
+ #
1340
+ # resp.repository_name #=> String
1341
+ # resp.before_commit_id #=> String
1342
+ # resp.after_commit_id #=> String
1343
+ # resp.before_blob_id #=> String
1344
+ # resp.after_blob_id #=> String
1345
+ # resp.location.file_path #=> String
1346
+ # resp.location.file_position #=> Integer
1347
+ # resp.location.relative_file_version #=> String, one of "BEFORE", "AFTER"
1348
+ # resp.comment.comment_id #=> String
1349
+ # resp.comment.content #=> String
1350
+ # resp.comment.in_reply_to #=> String
1351
+ # resp.comment.creation_date #=> Time
1352
+ # resp.comment.last_modified_date #=> Time
1353
+ # resp.comment.author_arn #=> String
1354
+ # resp.comment.deleted #=> Boolean
1355
+ # resp.comment.client_request_token #=> String
1356
+ #
1357
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForComparedCommit AWS API Documentation
1358
+ #
1359
+ # @overload post_comment_for_compared_commit(params = {})
1360
+ # @param [Hash] params ({})
1361
+ def post_comment_for_compared_commit(params = {}, options = {})
1362
+ req = build_request(:post_comment_for_compared_commit, params)
1363
+ req.send_request(options)
1364
+ end
1365
+
1366
+ # Posts a comment on a pull request.
1367
+ #
1368
+ # @option params [required, String] :pull_request_id
1369
+ # The system-generated ID of the pull request. To get this ID, use
1370
+ # ListPullRequests.
1371
+ #
1372
+ # @option params [required, String] :repository_name
1373
+ # The name of the repository where you want to post a comment on a pull
1374
+ # request.
1375
+ #
1376
+ # @option params [required, String] :before_commit_id
1377
+ # The full commit ID of the commit in the destination branch that was
1378
+ # the tip of the branch at the time the pull request was created.
1379
+ #
1380
+ # @option params [required, String] :after_commit_id
1381
+ # The full commit ID of the commit in the source branch that is the
1382
+ # current tip of the branch for the pull request when you post the
1383
+ # comment.
1384
+ #
1385
+ # @option params [Types::Location] :location
1386
+ # The location of the change where you want to post your comment. If no
1387
+ # location is provided, the comment will be posted as a general comment
1388
+ # on the pull request difference between the before commit ID and the
1389
+ # after commit ID.
1390
+ #
1391
+ # @option params [required, String] :content
1392
+ # The content of your comment on the change.
1393
+ #
1394
+ # @option params [String] :client_request_token
1395
+ # A unique, client-generated idempotency token that when provided in a
1396
+ # request, ensures the request cannot be repeated with a changed
1397
+ # parameter. If a request is received with the same parameters and a
1398
+ # token is included, the request will return information about the
1399
+ # initial request that used that token.
1400
+ #
1401
+ # **A suitable default value is auto-generated.** You should normally
1402
+ # not need to pass this option.**
1403
+ #
1404
+ # @return [Types::PostCommentForPullRequestOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1405
+ #
1406
+ # * {Types::PostCommentForPullRequestOutput#repository_name #repository_name} => String
1407
+ # * {Types::PostCommentForPullRequestOutput#pull_request_id #pull_request_id} => String
1408
+ # * {Types::PostCommentForPullRequestOutput#before_commit_id #before_commit_id} => String
1409
+ # * {Types::PostCommentForPullRequestOutput#after_commit_id #after_commit_id} => String
1410
+ # * {Types::PostCommentForPullRequestOutput#before_blob_id #before_blob_id} => String
1411
+ # * {Types::PostCommentForPullRequestOutput#after_blob_id #after_blob_id} => String
1412
+ # * {Types::PostCommentForPullRequestOutput#location #location} => Types::Location
1413
+ # * {Types::PostCommentForPullRequestOutput#comment #comment} => Types::Comment
1414
+ #
1415
+ # @example Request syntax with placeholder values
1416
+ #
1417
+ # resp = client.post_comment_for_pull_request({
1418
+ # pull_request_id: "PullRequestId", # required
1419
+ # repository_name: "RepositoryName", # required
1420
+ # before_commit_id: "CommitId", # required
1421
+ # after_commit_id: "CommitId", # required
1422
+ # location: {
1423
+ # file_path: "Path",
1424
+ # file_position: 1,
1425
+ # relative_file_version: "BEFORE", # accepts BEFORE, AFTER
1426
+ # },
1427
+ # content: "Content", # required
1428
+ # client_request_token: "ClientRequestToken",
1429
+ # })
1430
+ #
1431
+ # @example Response structure
1432
+ #
1433
+ # resp.repository_name #=> String
1434
+ # resp.pull_request_id #=> String
1435
+ # resp.before_commit_id #=> String
1436
+ # resp.after_commit_id #=> String
1437
+ # resp.before_blob_id #=> String
1438
+ # resp.after_blob_id #=> String
1439
+ # resp.location.file_path #=> String
1440
+ # resp.location.file_position #=> Integer
1441
+ # resp.location.relative_file_version #=> String, one of "BEFORE", "AFTER"
1442
+ # resp.comment.comment_id #=> String
1443
+ # resp.comment.content #=> String
1444
+ # resp.comment.in_reply_to #=> String
1445
+ # resp.comment.creation_date #=> Time
1446
+ # resp.comment.last_modified_date #=> Time
1447
+ # resp.comment.author_arn #=> String
1448
+ # resp.comment.deleted #=> Boolean
1449
+ # resp.comment.client_request_token #=> String
1450
+ #
1451
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForPullRequest AWS API Documentation
1452
+ #
1453
+ # @overload post_comment_for_pull_request(params = {})
1454
+ # @param [Hash] params ({})
1455
+ def post_comment_for_pull_request(params = {}, options = {})
1456
+ req = build_request(:post_comment_for_pull_request, params)
1457
+ req.send_request(options)
1458
+ end
1459
+
1460
+ # Posts a comment in reply to an existing comment on a comparison
1461
+ # between commits or a pull request.
1462
+ #
1463
+ # @option params [required, String] :in_reply_to
1464
+ # The system-generated ID of the comment to which you want to reply. To
1465
+ # get this ID, use GetCommentsForComparedCommit or
1466
+ # GetCommentsForPullRequest.
1467
+ #
1468
+ # @option params [String] :client_request_token
1469
+ # A unique, client-generated idempotency token that when provided in a
1470
+ # request, ensures the request cannot be repeated with a changed
1471
+ # parameter. If a request is received with the same parameters and a
1472
+ # token is included, the request will return information about the
1473
+ # initial request that used that token.
1474
+ #
1475
+ # **A suitable default value is auto-generated.** You should normally
1476
+ # not need to pass this option.**
1477
+ #
1478
+ # @option params [required, String] :content
1479
+ # The contents of your reply to a comment.
1480
+ #
1481
+ # @return [Types::PostCommentReplyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1482
+ #
1483
+ # * {Types::PostCommentReplyOutput#comment #comment} => Types::Comment
1484
+ #
1485
+ # @example Request syntax with placeholder values
1486
+ #
1487
+ # resp = client.post_comment_reply({
1488
+ # in_reply_to: "CommentId", # required
1489
+ # client_request_token: "ClientRequestToken",
1490
+ # content: "Content", # required
1491
+ # })
1492
+ #
1493
+ # @example Response structure
1494
+ #
1495
+ # resp.comment.comment_id #=> String
1496
+ # resp.comment.content #=> String
1497
+ # resp.comment.in_reply_to #=> String
1498
+ # resp.comment.creation_date #=> Time
1499
+ # resp.comment.last_modified_date #=> Time
1500
+ # resp.comment.author_arn #=> String
1501
+ # resp.comment.deleted #=> Boolean
1502
+ # resp.comment.client_request_token #=> String
1503
+ #
1504
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentReply AWS API Documentation
1505
+ #
1506
+ # @overload post_comment_reply(params = {})
1507
+ # @param [Hash] params ({})
1508
+ def post_comment_reply(params = {}, options = {})
1509
+ req = build_request(:post_comment_reply, params)
1510
+ req.send_request(options)
1511
+ end
1512
+
723
1513
  # Replaces all triggers for a repository. This can be used to create or
724
1514
  # delete triggers.
725
1515
  #
@@ -810,6 +1600,47 @@ module Aws::CodeCommit
810
1600
  req.send_request(options)
811
1601
  end
812
1602
 
1603
+ # Replaces the contents of a comment.
1604
+ #
1605
+ # @option params [required, String] :comment_id
1606
+ # The system-generated ID of the comment you want to update. To get this
1607
+ # ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
1608
+ #
1609
+ # @option params [required, String] :content
1610
+ # The updated content with which you want to replace the existing
1611
+ # content of the comment.
1612
+ #
1613
+ # @return [Types::UpdateCommentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1614
+ #
1615
+ # * {Types::UpdateCommentOutput#comment #comment} => Types::Comment
1616
+ #
1617
+ # @example Request syntax with placeholder values
1618
+ #
1619
+ # resp = client.update_comment({
1620
+ # comment_id: "CommentId", # required
1621
+ # content: "Content", # required
1622
+ # })
1623
+ #
1624
+ # @example Response structure
1625
+ #
1626
+ # resp.comment.comment_id #=> String
1627
+ # resp.comment.content #=> String
1628
+ # resp.comment.in_reply_to #=> String
1629
+ # resp.comment.creation_date #=> Time
1630
+ # resp.comment.last_modified_date #=> Time
1631
+ # resp.comment.author_arn #=> String
1632
+ # resp.comment.deleted #=> Boolean
1633
+ # resp.comment.client_request_token #=> String
1634
+ #
1635
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateComment AWS API Documentation
1636
+ #
1637
+ # @overload update_comment(params = {})
1638
+ # @param [Hash] params ({})
1639
+ def update_comment(params = {}, options = {})
1640
+ req = build_request(:update_comment, params)
1641
+ req.send_request(options)
1642
+ end
1643
+
813
1644
  # Sets or changes the default branch name for the specified repository.
814
1645
  #
815
1646
  # <note markdown="1"> If you use this operation to change the default branch name to the
@@ -842,6 +1673,154 @@ module Aws::CodeCommit
842
1673
  req.send_request(options)
843
1674
  end
844
1675
 
1676
+ # Replaces the contents of the description of a pull request.
1677
+ #
1678
+ # @option params [required, String] :pull_request_id
1679
+ # The system-generated ID of the pull request. To get this ID, use
1680
+ # ListPullRequests.
1681
+ #
1682
+ # @option params [required, String] :description
1683
+ # The updated content of the description for the pull request. This
1684
+ # content will replace the existing description.
1685
+ #
1686
+ # @return [Types::UpdatePullRequestDescriptionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1687
+ #
1688
+ # * {Types::UpdatePullRequestDescriptionOutput#pull_request #pull_request} => Types::PullRequest
1689
+ #
1690
+ # @example Request syntax with placeholder values
1691
+ #
1692
+ # resp = client.update_pull_request_description({
1693
+ # pull_request_id: "PullRequestId", # required
1694
+ # description: "Description", # required
1695
+ # })
1696
+ #
1697
+ # @example Response structure
1698
+ #
1699
+ # resp.pull_request.pull_request_id #=> String
1700
+ # resp.pull_request.title #=> String
1701
+ # resp.pull_request.description #=> String
1702
+ # resp.pull_request.last_activity_date #=> Time
1703
+ # resp.pull_request.creation_date #=> Time
1704
+ # resp.pull_request.pull_request_status #=> String, one of "OPEN", "CLOSED"
1705
+ # resp.pull_request.author_arn #=> String
1706
+ # resp.pull_request.pull_request_targets #=> Array
1707
+ # resp.pull_request.pull_request_targets[0].repository_name #=> String
1708
+ # resp.pull_request.pull_request_targets[0].source_reference #=> String
1709
+ # resp.pull_request.pull_request_targets[0].destination_reference #=> String
1710
+ # resp.pull_request.pull_request_targets[0].destination_commit #=> String
1711
+ # resp.pull_request.pull_request_targets[0].source_commit #=> String
1712
+ # resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
1713
+ # resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
1714
+ # resp.pull_request.client_request_token #=> String
1715
+ #
1716
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestDescription AWS API Documentation
1717
+ #
1718
+ # @overload update_pull_request_description(params = {})
1719
+ # @param [Hash] params ({})
1720
+ def update_pull_request_description(params = {}, options = {})
1721
+ req = build_request(:update_pull_request_description, params)
1722
+ req.send_request(options)
1723
+ end
1724
+
1725
+ # Updates the status of a pull request.
1726
+ #
1727
+ # @option params [required, String] :pull_request_id
1728
+ # The system-generated ID of the pull request. To get this ID, use
1729
+ # ListPullRequests.
1730
+ #
1731
+ # @option params [required, String] :pull_request_status
1732
+ # The status of the pull request. The only valid operations are to
1733
+ # update the status from `OPEN` to `OPEN`, `OPEN` to `CLOSED` or from
1734
+ # from `CLOSED` to `CLOSED`.
1735
+ #
1736
+ # @return [Types::UpdatePullRequestStatusOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1737
+ #
1738
+ # * {Types::UpdatePullRequestStatusOutput#pull_request #pull_request} => Types::PullRequest
1739
+ #
1740
+ # @example Request syntax with placeholder values
1741
+ #
1742
+ # resp = client.update_pull_request_status({
1743
+ # pull_request_id: "PullRequestId", # required
1744
+ # pull_request_status: "OPEN", # required, accepts OPEN, CLOSED
1745
+ # })
1746
+ #
1747
+ # @example Response structure
1748
+ #
1749
+ # resp.pull_request.pull_request_id #=> String
1750
+ # resp.pull_request.title #=> String
1751
+ # resp.pull_request.description #=> String
1752
+ # resp.pull_request.last_activity_date #=> Time
1753
+ # resp.pull_request.creation_date #=> Time
1754
+ # resp.pull_request.pull_request_status #=> String, one of "OPEN", "CLOSED"
1755
+ # resp.pull_request.author_arn #=> String
1756
+ # resp.pull_request.pull_request_targets #=> Array
1757
+ # resp.pull_request.pull_request_targets[0].repository_name #=> String
1758
+ # resp.pull_request.pull_request_targets[0].source_reference #=> String
1759
+ # resp.pull_request.pull_request_targets[0].destination_reference #=> String
1760
+ # resp.pull_request.pull_request_targets[0].destination_commit #=> String
1761
+ # resp.pull_request.pull_request_targets[0].source_commit #=> String
1762
+ # resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
1763
+ # resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
1764
+ # resp.pull_request.client_request_token #=> String
1765
+ #
1766
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestStatus AWS API Documentation
1767
+ #
1768
+ # @overload update_pull_request_status(params = {})
1769
+ # @param [Hash] params ({})
1770
+ def update_pull_request_status(params = {}, options = {})
1771
+ req = build_request(:update_pull_request_status, params)
1772
+ req.send_request(options)
1773
+ end
1774
+
1775
+ # Replaces the title of a pull request.
1776
+ #
1777
+ # @option params [required, String] :pull_request_id
1778
+ # The system-generated ID of the pull request. To get this ID, use
1779
+ # ListPullRequests.
1780
+ #
1781
+ # @option params [required, String] :title
1782
+ # The updated title of the pull request. This will replace the existing
1783
+ # title.
1784
+ #
1785
+ # @return [Types::UpdatePullRequestTitleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1786
+ #
1787
+ # * {Types::UpdatePullRequestTitleOutput#pull_request #pull_request} => Types::PullRequest
1788
+ #
1789
+ # @example Request syntax with placeholder values
1790
+ #
1791
+ # resp = client.update_pull_request_title({
1792
+ # pull_request_id: "PullRequestId", # required
1793
+ # title: "Title", # required
1794
+ # })
1795
+ #
1796
+ # @example Response structure
1797
+ #
1798
+ # resp.pull_request.pull_request_id #=> String
1799
+ # resp.pull_request.title #=> String
1800
+ # resp.pull_request.description #=> String
1801
+ # resp.pull_request.last_activity_date #=> Time
1802
+ # resp.pull_request.creation_date #=> Time
1803
+ # resp.pull_request.pull_request_status #=> String, one of "OPEN", "CLOSED"
1804
+ # resp.pull_request.author_arn #=> String
1805
+ # resp.pull_request.pull_request_targets #=> Array
1806
+ # resp.pull_request.pull_request_targets[0].repository_name #=> String
1807
+ # resp.pull_request.pull_request_targets[0].source_reference #=> String
1808
+ # resp.pull_request.pull_request_targets[0].destination_reference #=> String
1809
+ # resp.pull_request.pull_request_targets[0].destination_commit #=> String
1810
+ # resp.pull_request.pull_request_targets[0].source_commit #=> String
1811
+ # resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
1812
+ # resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
1813
+ # resp.pull_request.client_request_token #=> String
1814
+ #
1815
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestTitle AWS API Documentation
1816
+ #
1817
+ # @overload update_pull_request_title(params = {})
1818
+ # @param [Hash] params ({})
1819
+ def update_pull_request_title(params = {}, options = {})
1820
+ req = build_request(:update_pull_request_title, params)
1821
+ req.send_request(options)
1822
+ end
1823
+
845
1824
  # Sets or changes the comment or description for a repository.
846
1825
  #
847
1826
  # <note markdown="1"> The description field for a repository accepts all HTML characters and
@@ -927,7 +1906,7 @@ module Aws::CodeCommit
927
1906
  params: params,
928
1907
  config: config)
929
1908
  context[:gem_name] = 'aws-sdk-codecommit'
930
- context[:gem_version] = '1.1.0'
1909
+ context[:gem_version] = '1.2.0'
931
1910
  Seahorse::Client::Request.new(handlers, context)
932
1911
  end
933
1912