aws-sdk-codecommit 1.29.0 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-codecommit.rb +1 -1
- data/lib/aws-sdk-codecommit/client.rb +1323 -282
- data/lib/aws-sdk-codecommit/client_api.rb +709 -0
- data/lib/aws-sdk-codecommit/types.rb +1652 -400
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c1ec48cb0022ebc59c373e18180b10b662ca80a
|
4
|
+
data.tar.gz: b4ece74ae2a8d2eddb1761767af9f7b351d4359c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2c5b37b53357c5ed87e46988e7857973585fc3ca8d33bdfcc9a6b245575eac9726516c10779136c67c739e63f539118834ae213d128beadaf5fadbbefbbb3c0
|
7
|
+
data.tar.gz: f5a006e68d5b8b31ae05bb88b8dad21c0bca11c8e8b979c35a23e5d63e9227a9064a2e0b90f9ac7a8cfda7e66d6ca911717b688d5d3a858264ae841b060cfc0b
|
data/lib/aws-sdk-codecommit.rb
CHANGED
@@ -264,6 +264,85 @@ module Aws::CodeCommit
|
|
264
264
|
|
265
265
|
# @!group API Operations
|
266
266
|
|
267
|
+
# Creates an association between an approval rule template and a
|
268
|
+
# specified repository. Then, the next time a pull request is created in
|
269
|
+
# the repository where the destination reference (if specified) matches
|
270
|
+
# the destination reference (branch) for the pull request, an approval
|
271
|
+
# rule that matches the template conditions is automatically created for
|
272
|
+
# that pull request. If no destination references are specified in the
|
273
|
+
# template, an approval rule that matches the template contents is
|
274
|
+
# created for all pull requests in that repository.
|
275
|
+
#
|
276
|
+
# @option params [required, String] :approval_rule_template_name
|
277
|
+
# The name for the approval rule template.
|
278
|
+
#
|
279
|
+
# @option params [required, String] :repository_name
|
280
|
+
# The name of the repository that you want to associate with the
|
281
|
+
# template.
|
282
|
+
#
|
283
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
284
|
+
#
|
285
|
+
# @example Request syntax with placeholder values
|
286
|
+
#
|
287
|
+
# resp = client.associate_approval_rule_template_with_repository({
|
288
|
+
# approval_rule_template_name: "ApprovalRuleTemplateName", # required
|
289
|
+
# repository_name: "RepositoryName", # required
|
290
|
+
# })
|
291
|
+
#
|
292
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/AssociateApprovalRuleTemplateWithRepository AWS API Documentation
|
293
|
+
#
|
294
|
+
# @overload associate_approval_rule_template_with_repository(params = {})
|
295
|
+
# @param [Hash] params ({})
|
296
|
+
def associate_approval_rule_template_with_repository(params = {}, options = {})
|
297
|
+
req = build_request(:associate_approval_rule_template_with_repository, params)
|
298
|
+
req.send_request(options)
|
299
|
+
end
|
300
|
+
|
301
|
+
# Creates an association between an approval rule template and one or
|
302
|
+
# more specified repositories.
|
303
|
+
#
|
304
|
+
# @option params [required, String] :approval_rule_template_name
|
305
|
+
# The name of the template you want to associate with one or more
|
306
|
+
# repositories.
|
307
|
+
#
|
308
|
+
# @option params [required, Array<String>] :repository_names
|
309
|
+
# The names of the repositories you want to associate with the template.
|
310
|
+
#
|
311
|
+
# <note markdown="1"> The length constraint limit is for each string in the array. The array
|
312
|
+
# itself can be empty.
|
313
|
+
#
|
314
|
+
# </note>
|
315
|
+
#
|
316
|
+
# @return [Types::BatchAssociateApprovalRuleTemplateWithRepositoriesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
317
|
+
#
|
318
|
+
# * {Types::BatchAssociateApprovalRuleTemplateWithRepositoriesOutput#associated_repository_names #associated_repository_names} => Array<String>
|
319
|
+
# * {Types::BatchAssociateApprovalRuleTemplateWithRepositoriesOutput#errors #errors} => Array<Types::BatchAssociateApprovalRuleTemplateWithRepositoriesError>
|
320
|
+
#
|
321
|
+
# @example Request syntax with placeholder values
|
322
|
+
#
|
323
|
+
# resp = client.batch_associate_approval_rule_template_with_repositories({
|
324
|
+
# approval_rule_template_name: "ApprovalRuleTemplateName", # required
|
325
|
+
# repository_names: ["RepositoryName"], # required
|
326
|
+
# })
|
327
|
+
#
|
328
|
+
# @example Response structure
|
329
|
+
#
|
330
|
+
# resp.associated_repository_names #=> Array
|
331
|
+
# resp.associated_repository_names[0] #=> String
|
332
|
+
# resp.errors #=> Array
|
333
|
+
# resp.errors[0].repository_name #=> String
|
334
|
+
# resp.errors[0].error_code #=> String
|
335
|
+
# resp.errors[0].error_message #=> String
|
336
|
+
#
|
337
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchAssociateApprovalRuleTemplateWithRepositories AWS API Documentation
|
338
|
+
#
|
339
|
+
# @overload batch_associate_approval_rule_template_with_repositories(params = {})
|
340
|
+
# @param [Hash] params ({})
|
341
|
+
def batch_associate_approval_rule_template_with_repositories(params = {}, options = {})
|
342
|
+
req = build_request(:batch_associate_approval_rule_template_with_repositories, params)
|
343
|
+
req.send_request(options)
|
344
|
+
end
|
345
|
+
|
267
346
|
# Returns information about one or more merge conflicts in the attempted
|
268
347
|
# merge of two commit specifiers using the squash or three-way merge
|
269
348
|
# strategy.
|
@@ -274,11 +353,11 @@ module Aws::CodeCommit
|
|
274
353
|
#
|
275
354
|
# @option params [required, String] :destination_commit_specifier
|
276
355
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
277
|
-
# identify a commit
|
356
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
278
357
|
#
|
279
358
|
# @option params [required, String] :source_commit_specifier
|
280
359
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
281
|
-
# identify a commit
|
360
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
282
361
|
#
|
283
362
|
# @option params [required, String] :merge_option
|
284
363
|
# The merge option or strategy you want to use to merge the code.
|
@@ -295,20 +374,20 @@ module Aws::CodeCommit
|
|
295
374
|
#
|
296
375
|
# @option params [String] :conflict_detail_level
|
297
376
|
# The level of conflict detail to use. If unspecified, the default
|
298
|
-
# FILE\_LEVEL is used, which
|
299
|
-
#
|
300
|
-
#
|
301
|
-
#
|
377
|
+
# FILE\_LEVEL is used, which returns a not-mergeable result if the same
|
378
|
+
# file has differences in both branches. If LINE\_LEVEL is specified, a
|
379
|
+
# conflict is considered not mergeable if the same file in both branches
|
380
|
+
# has differences on the same line.
|
302
381
|
#
|
303
382
|
# @option params [String] :conflict_resolution_strategy
|
304
383
|
# Specifies which branch to use when resolving conflicts, or whether to
|
305
384
|
# attempt automatically merging two versions of a file. The default is
|
306
385
|
# NONE, which requires any conflicts to be resolved manually before the
|
307
|
-
# merge operation
|
386
|
+
# merge operation is successful.
|
308
387
|
#
|
309
388
|
# @option params [String] :next_token
|
310
|
-
# An enumeration token that when provided in a request, returns the
|
311
|
-
# batch of the results.
|
389
|
+
# An enumeration token that, when provided in a request, returns the
|
390
|
+
# next batch of the results.
|
312
391
|
#
|
313
392
|
# @return [Types::BatchDescribeMergeConflictsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
314
393
|
#
|
@@ -385,14 +464,60 @@ module Aws::CodeCommit
|
|
385
464
|
req.send_request(options)
|
386
465
|
end
|
387
466
|
|
467
|
+
# Removes the association between an approval rule template and one or
|
468
|
+
# more specified repositories.
|
469
|
+
#
|
470
|
+
# @option params [required, String] :approval_rule_template_name
|
471
|
+
# The name of the template that you want to disassociate from one or
|
472
|
+
# more repositories.
|
473
|
+
#
|
474
|
+
# @option params [required, Array<String>] :repository_names
|
475
|
+
# The repository names that you want to disassociate from the approval
|
476
|
+
# rule template.
|
477
|
+
#
|
478
|
+
# <note markdown="1"> The length constraint limit is for each string in the array. The array
|
479
|
+
# itself can be empty.
|
480
|
+
#
|
481
|
+
# </note>
|
482
|
+
#
|
483
|
+
# @return [Types::BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
484
|
+
#
|
485
|
+
# * {Types::BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput#disassociated_repository_names #disassociated_repository_names} => Array<String>
|
486
|
+
# * {Types::BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput#errors #errors} => Array<Types::BatchDisassociateApprovalRuleTemplateFromRepositoriesError>
|
487
|
+
#
|
488
|
+
# @example Request syntax with placeholder values
|
489
|
+
#
|
490
|
+
# resp = client.batch_disassociate_approval_rule_template_from_repositories({
|
491
|
+
# approval_rule_template_name: "ApprovalRuleTemplateName", # required
|
492
|
+
# repository_names: ["RepositoryName"], # required
|
493
|
+
# })
|
494
|
+
#
|
495
|
+
# @example Response structure
|
496
|
+
#
|
497
|
+
# resp.disassociated_repository_names #=> Array
|
498
|
+
# resp.disassociated_repository_names[0] #=> String
|
499
|
+
# resp.errors #=> Array
|
500
|
+
# resp.errors[0].repository_name #=> String
|
501
|
+
# resp.errors[0].error_code #=> String
|
502
|
+
# resp.errors[0].error_message #=> String
|
503
|
+
#
|
504
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchDisassociateApprovalRuleTemplateFromRepositories AWS API Documentation
|
505
|
+
#
|
506
|
+
# @overload batch_disassociate_approval_rule_template_from_repositories(params = {})
|
507
|
+
# @param [Hash] params ({})
|
508
|
+
def batch_disassociate_approval_rule_template_from_repositories(params = {}, options = {})
|
509
|
+
req = build_request(:batch_disassociate_approval_rule_template_from_repositories, params)
|
510
|
+
req.send_request(options)
|
511
|
+
end
|
512
|
+
|
388
513
|
# Returns information about the contents of one or more commits in a
|
389
514
|
# repository.
|
390
515
|
#
|
391
516
|
# @option params [required, Array<String>] :commit_ids
|
392
517
|
# The full commit IDs of the commits to get information about.
|
393
518
|
#
|
394
|
-
# <note markdown="1"> You must supply the full
|
395
|
-
#
|
519
|
+
# <note markdown="1"> You must supply the full SHA IDs of each commit. You cannot use
|
520
|
+
# shortened SHA IDs.
|
396
521
|
#
|
397
522
|
# </note>
|
398
523
|
#
|
@@ -444,16 +569,21 @@ module Aws::CodeCommit
|
|
444
569
|
#
|
445
570
|
# <note markdown="1"> The description field for a repository accepts all HTML characters and
|
446
571
|
# all valid Unicode characters. Applications that do not HTML-encode the
|
447
|
-
# description and display it in a
|
572
|
+
# description and display it in a webpage can expose users to
|
448
573
|
# potentially malicious code. Make sure that you HTML-encode the
|
449
574
|
# description field in any application that uses this API to display the
|
450
|
-
# repository description on a
|
575
|
+
# repository description on a webpage.
|
451
576
|
#
|
452
577
|
# </note>
|
453
578
|
#
|
454
579
|
# @option params [required, Array<String>] :repository_names
|
455
580
|
# The names of the repositories to get information about.
|
456
581
|
#
|
582
|
+
# <note markdown="1"> The length constraint limit is for each string in the array. The array
|
583
|
+
# itself can be empty.
|
584
|
+
#
|
585
|
+
# </note>
|
586
|
+
#
|
457
587
|
# @return [Types::BatchGetRepositoriesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
458
588
|
#
|
459
589
|
# * {Types::BatchGetRepositoriesOutput#repositories #repositories} => Array<Types::RepositoryMetadata>
|
@@ -490,8 +620,98 @@ module Aws::CodeCommit
|
|
490
620
|
req.send_request(options)
|
491
621
|
end
|
492
622
|
|
493
|
-
# Creates a
|
494
|
-
#
|
623
|
+
# Creates a template for approval rules that can then be associated with
|
624
|
+
# one or more repositories in your AWS account. When you associate a
|
625
|
+
# template with a repository, AWS CodeCommit creates an approval rule
|
626
|
+
# that matches the conditions of the template for all pull requests that
|
627
|
+
# meet the conditions of the template. For more information, see
|
628
|
+
# AssociateApprovalRuleTemplateWithRepository.
|
629
|
+
#
|
630
|
+
# @option params [required, String] :approval_rule_template_name
|
631
|
+
# The name of the approval rule template. Provide descriptive names,
|
632
|
+
# because this name is applied to the approval rules created
|
633
|
+
# automatically in associated repositories.
|
634
|
+
#
|
635
|
+
# @option params [required, String] :approval_rule_template_content
|
636
|
+
# The content of the approval rule that is created on pull requests in
|
637
|
+
# associated repositories. If you specify one or more destination
|
638
|
+
# references (branches), approval rules are created in an associated
|
639
|
+
# repository only if their destination references (branches) match those
|
640
|
+
# specified in the template.
|
641
|
+
#
|
642
|
+
# <note markdown="1"> When you create the content of the approval rule template, you can
|
643
|
+
# specify approvers in an approval pool in one of two ways:
|
644
|
+
#
|
645
|
+
# * **CodeCommitApprovers**\: This option only requires an AWS account
|
646
|
+
# and a resource. It can be used for both IAM users and federated
|
647
|
+
# access users whose name matches the provided resource name. This is
|
648
|
+
# a very powerful option that offers a great deal of flexibility. For
|
649
|
+
# example, if you specify the AWS account *123456789012* and
|
650
|
+
# *Mary\_Major*, all of the following are counted as approvals coming
|
651
|
+
# from that user:
|
652
|
+
#
|
653
|
+
# * An IAM user in the account
|
654
|
+
# (arn:aws:iam::*123456789012*\:user/*Mary\_Major*)
|
655
|
+
#
|
656
|
+
# * A federated user identified in IAM as Mary\_Major
|
657
|
+
# (arn:aws:sts::*123456789012*\:federated-user/*Mary\_Major*)
|
658
|
+
#
|
659
|
+
# This option does not recognize an active session of someone assuming
|
660
|
+
# the role of CodeCommitReview with a role session name of
|
661
|
+
# *Mary\_Major*
|
662
|
+
# (arn:aws:sts::*123456789012*\:assumed-role/CodeCommitReview/*Mary\_Major*)
|
663
|
+
# unless you include a wildcard (*Mary\_Major).
|
664
|
+
#
|
665
|
+
# * **Fully qualified ARN**\: This option allows you to specify the
|
666
|
+
# fully qualified Amazon Resource Name (ARN) of the IAM user or role.
|
667
|
+
#
|
668
|
+
# For more information about IAM ARNs, wildcards, and formats, see [IAM
|
669
|
+
# Identifiers][1] in the *IAM User Guide*.
|
670
|
+
#
|
671
|
+
# </note>
|
672
|
+
#
|
673
|
+
#
|
674
|
+
#
|
675
|
+
# [1]: https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html
|
676
|
+
#
|
677
|
+
# @option params [String] :approval_rule_template_description
|
678
|
+
# The description of the approval rule template. Consider providing a
|
679
|
+
# description that explains what this template does and when it might be
|
680
|
+
# appropriate to associate it with repositories.
|
681
|
+
#
|
682
|
+
# @return [Types::CreateApprovalRuleTemplateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
683
|
+
#
|
684
|
+
# * {Types::CreateApprovalRuleTemplateOutput#approval_rule_template #approval_rule_template} => Types::ApprovalRuleTemplate
|
685
|
+
#
|
686
|
+
# @example Request syntax with placeholder values
|
687
|
+
#
|
688
|
+
# resp = client.create_approval_rule_template({
|
689
|
+
# approval_rule_template_name: "ApprovalRuleTemplateName", # required
|
690
|
+
# approval_rule_template_content: "ApprovalRuleTemplateContent", # required
|
691
|
+
# approval_rule_template_description: "ApprovalRuleTemplateDescription",
|
692
|
+
# })
|
693
|
+
#
|
694
|
+
# @example Response structure
|
695
|
+
#
|
696
|
+
# resp.approval_rule_template.approval_rule_template_id #=> String
|
697
|
+
# resp.approval_rule_template.approval_rule_template_name #=> String
|
698
|
+
# resp.approval_rule_template.approval_rule_template_description #=> String
|
699
|
+
# resp.approval_rule_template.approval_rule_template_content #=> String
|
700
|
+
# resp.approval_rule_template.rule_content_sha_256 #=> String
|
701
|
+
# resp.approval_rule_template.last_modified_date #=> Time
|
702
|
+
# resp.approval_rule_template.creation_date #=> Time
|
703
|
+
# resp.approval_rule_template.last_modified_user #=> String
|
704
|
+
#
|
705
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateApprovalRuleTemplate AWS API Documentation
|
706
|
+
#
|
707
|
+
# @overload create_approval_rule_template(params = {})
|
708
|
+
# @param [Hash] params ({})
|
709
|
+
def create_approval_rule_template(params = {}, options = {})
|
710
|
+
req = build_request(:create_approval_rule_template, params)
|
711
|
+
req.send_request(options)
|
712
|
+
end
|
713
|
+
|
714
|
+
# Creates a branch in a repository and points the branch to a commit.
|
495
715
|
#
|
496
716
|
# <note markdown="1"> Calling the create branch operation does not set a repository's
|
497
717
|
# default branch. To do this, call the update default branch operation.
|
@@ -529,39 +749,38 @@ module Aws::CodeCommit
|
|
529
749
|
# Creates a commit for a repository on the tip of a specified branch.
|
530
750
|
#
|
531
751
|
# @option params [required, String] :repository_name
|
532
|
-
# The name of the repository where you
|
752
|
+
# The name of the repository where you create the commit.
|
533
753
|
#
|
534
754
|
# @option params [required, String] :branch_name
|
535
|
-
# The name of the branch where you
|
755
|
+
# The name of the branch where you create the commit.
|
536
756
|
#
|
537
757
|
# @option params [String] :parent_commit_id
|
538
|
-
# The ID of the commit that is the parent of the commit you
|
539
|
-
#
|
758
|
+
# The ID of the commit that is the parent of the commit you create. Not
|
759
|
+
# required if this is an empty repository.
|
540
760
|
#
|
541
761
|
# @option params [String] :author_name
|
542
|
-
# The name of the author who created the commit. This information
|
543
|
-
#
|
762
|
+
# The name of the author who created the commit. This information is
|
763
|
+
# used as both the author and committer for the commit.
|
544
764
|
#
|
545
765
|
# @option params [String] :email
|
546
766
|
# The email address of the person who created the commit.
|
547
767
|
#
|
548
768
|
# @option params [String] :commit_message
|
549
|
-
# The commit message you want to include
|
550
|
-
#
|
551
|
-
#
|
769
|
+
# The commit message you want to include in the commit. Commit messages
|
770
|
+
# are limited to 256 KB. If no message is specified, a default message
|
771
|
+
# is used.
|
552
772
|
#
|
553
773
|
# @option params [Boolean] :keep_empty_folders
|
554
774
|
# If the commit contains deletions, whether to keep a folder or folder
|
555
|
-
# structure if the changes leave the folders empty. If
|
556
|
-
#
|
557
|
-
# default is false.
|
775
|
+
# structure if the changes leave the folders empty. If true, a ..gitkeep
|
776
|
+
# file is created for empty folders. The default is false.
|
558
777
|
#
|
559
778
|
# @option params [Array<Types::PutFileEntry>] :put_files
|
560
779
|
# The files to add or update in this commit.
|
561
780
|
#
|
562
781
|
# @option params [Array<Types::DeleteFileEntry>] :delete_files
|
563
|
-
# The files to delete in this commit. These files
|
564
|
-
#
|
782
|
+
# The files to delete in this commit. These files still exist in earlier
|
783
|
+
# commits.
|
565
784
|
#
|
566
785
|
# @option params [Array<Types::SetFileModeEntry>] :set_file_modes
|
567
786
|
# The file modes to update for files in this commit.
|
@@ -637,28 +856,27 @@ module Aws::CodeCommit
|
|
637
856
|
# Creates a pull request in the specified repository.
|
638
857
|
#
|
639
858
|
# @option params [required, String] :title
|
640
|
-
# The title of the pull request. This title
|
641
|
-
#
|
859
|
+
# The title of the pull request. This title is used to identify the pull
|
860
|
+
# request to other users in the repository.
|
642
861
|
#
|
643
862
|
# @option params [String] :description
|
644
863
|
# A description of the pull request.
|
645
864
|
#
|
646
865
|
# @option params [required, Array<Types::Target>] :targets
|
647
866
|
# The targets for the pull request, including the source of the code to
|
648
|
-
# be reviewed (the source branch)
|
867
|
+
# be reviewed (the source branch) and the destination where the creator
|
649
868
|
# of the pull request intends the code to be merged after the pull
|
650
869
|
# request is closed (the destination branch).
|
651
870
|
#
|
652
871
|
# @option params [String] :client_request_token
|
653
|
-
# A unique, client-generated idempotency token that when provided in a
|
872
|
+
# A unique, client-generated idempotency token that, when provided in a
|
654
873
|
# request, ensures the request cannot be repeated with a changed
|
655
874
|
# parameter. If a request is received with the same parameters and a
|
656
|
-
# token is included, the request
|
657
|
-
#
|
875
|
+
# token is included, the request returns information about the initial
|
876
|
+
# request that used that token.
|
658
877
|
#
|
659
|
-
# <note markdown="1"> The AWS SDKs prepopulate client request tokens. If using an
|
660
|
-
#
|
661
|
-
# for you.
|
878
|
+
# <note markdown="1"> The AWS SDKs prepopulate client request tokens. If you are using an
|
879
|
+
# AWS SDK, an idempotency token is created for you.
|
662
880
|
#
|
663
881
|
# </note>
|
664
882
|
#
|
@@ -705,6 +923,17 @@ module Aws::CodeCommit
|
|
705
923
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
|
706
924
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
|
707
925
|
# resp.pull_request.client_request_token #=> String
|
926
|
+
# resp.pull_request.revision_id #=> String
|
927
|
+
# resp.pull_request.approval_rules #=> Array
|
928
|
+
# resp.pull_request.approval_rules[0].approval_rule_id #=> String
|
929
|
+
# resp.pull_request.approval_rules[0].approval_rule_name #=> String
|
930
|
+
# resp.pull_request.approval_rules[0].approval_rule_content #=> String
|
931
|
+
# resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
|
932
|
+
# resp.pull_request.approval_rules[0].last_modified_date #=> Time
|
933
|
+
# resp.pull_request.approval_rules[0].creation_date #=> Time
|
934
|
+
# resp.pull_request.approval_rules[0].last_modified_user #=> String
|
935
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
|
936
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
|
708
937
|
#
|
709
938
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequest AWS API Documentation
|
710
939
|
#
|
@@ -715,16 +944,99 @@ module Aws::CodeCommit
|
|
715
944
|
req.send_request(options)
|
716
945
|
end
|
717
946
|
|
947
|
+
# Creates an approval rule for a pull request.
|
948
|
+
#
|
949
|
+
# @option params [required, String] :pull_request_id
|
950
|
+
# The system-generated ID of the pull request for which you want to
|
951
|
+
# create the approval rule.
|
952
|
+
#
|
953
|
+
# @option params [required, String] :approval_rule_name
|
954
|
+
# The name for the approval rule.
|
955
|
+
#
|
956
|
+
# @option params [required, String] :approval_rule_content
|
957
|
+
# The content of the approval rule, including the number of approvals
|
958
|
+
# needed and the structure of an approval pool defined for approvals, if
|
959
|
+
# any. For more information about approval pools, see the AWS CodeCommit
|
960
|
+
# User Guide.
|
961
|
+
#
|
962
|
+
# <note markdown="1"> When you create the content of the approval rule, you can specify
|
963
|
+
# approvers in an approval pool in one of two ways:
|
964
|
+
#
|
965
|
+
# * **CodeCommitApprovers**\: This option only requires an AWS account
|
966
|
+
# and a resource. It can be used for both IAM users and federated
|
967
|
+
# access users whose name matches the provided resource name. This is
|
968
|
+
# a very powerful option that offers a great deal of flexibility. For
|
969
|
+
# example, if you specify the AWS account *123456789012* and
|
970
|
+
# *Mary\_Major*, all of the following would be counted as approvals
|
971
|
+
# coming from that user:
|
972
|
+
#
|
973
|
+
# * An IAM user in the account
|
974
|
+
# (arn:aws:iam::*123456789012*\:user/*Mary\_Major*)
|
975
|
+
#
|
976
|
+
# * A federated user identified in IAM as Mary\_Major
|
977
|
+
# (arn:aws:sts::*123456789012*\:federated-user/*Mary\_Major*)
|
978
|
+
#
|
979
|
+
# This option does not recognize an active session of someone assuming
|
980
|
+
# the role of CodeCommitReview with a role session name of
|
981
|
+
# *Mary\_Major*
|
982
|
+
# (arn:aws:sts::*123456789012*\:assumed-role/CodeCommitReview/*Mary\_Major*)
|
983
|
+
# unless you include a wildcard (*Mary\_Major).
|
984
|
+
#
|
985
|
+
# * **Fully qualified ARN**\: This option allows you to specify the
|
986
|
+
# fully qualified Amazon Resource Name (ARN) of the IAM user or role.
|
987
|
+
#
|
988
|
+
# For more information about IAM ARNs, wildcards, and formats, see [IAM
|
989
|
+
# Identifiers][1] in the *IAM User Guide*.
|
990
|
+
#
|
991
|
+
# </note>
|
992
|
+
#
|
993
|
+
#
|
994
|
+
#
|
995
|
+
# [1]: https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html
|
996
|
+
#
|
997
|
+
# @return [Types::CreatePullRequestApprovalRuleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
998
|
+
#
|
999
|
+
# * {Types::CreatePullRequestApprovalRuleOutput#approval_rule #approval_rule} => Types::ApprovalRule
|
1000
|
+
#
|
1001
|
+
# @example Request syntax with placeholder values
|
1002
|
+
#
|
1003
|
+
# resp = client.create_pull_request_approval_rule({
|
1004
|
+
# pull_request_id: "PullRequestId", # required
|
1005
|
+
# approval_rule_name: "ApprovalRuleName", # required
|
1006
|
+
# approval_rule_content: "ApprovalRuleContent", # required
|
1007
|
+
# })
|
1008
|
+
#
|
1009
|
+
# @example Response structure
|
1010
|
+
#
|
1011
|
+
# resp.approval_rule.approval_rule_id #=> String
|
1012
|
+
# resp.approval_rule.approval_rule_name #=> String
|
1013
|
+
# resp.approval_rule.approval_rule_content #=> String
|
1014
|
+
# resp.approval_rule.rule_content_sha_256 #=> String
|
1015
|
+
# resp.approval_rule.last_modified_date #=> Time
|
1016
|
+
# resp.approval_rule.creation_date #=> Time
|
1017
|
+
# resp.approval_rule.last_modified_user #=> String
|
1018
|
+
# resp.approval_rule.origin_approval_rule_template.approval_rule_template_id #=> String
|
1019
|
+
# resp.approval_rule.origin_approval_rule_template.approval_rule_template_name #=> String
|
1020
|
+
#
|
1021
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequestApprovalRule AWS API Documentation
|
1022
|
+
#
|
1023
|
+
# @overload create_pull_request_approval_rule(params = {})
|
1024
|
+
# @param [Hash] params ({})
|
1025
|
+
def create_pull_request_approval_rule(params = {}, options = {})
|
1026
|
+
req = build_request(:create_pull_request_approval_rule, params)
|
1027
|
+
req.send_request(options)
|
1028
|
+
end
|
1029
|
+
|
718
1030
|
# Creates a new, empty repository.
|
719
1031
|
#
|
720
1032
|
# @option params [required, String] :repository_name
|
721
1033
|
# The name of the new repository to be created.
|
722
1034
|
#
|
723
|
-
# <note markdown="1"> The repository name must be unique across the calling AWS account.
|
724
|
-
#
|
725
|
-
#
|
726
|
-
#
|
727
|
-
# the AWS CodeCommit User Guide
|
1035
|
+
# <note markdown="1"> The repository name must be unique across the calling AWS account.
|
1036
|
+
# Repository names are limited to 100 alphanumeric, dash, and underscore
|
1037
|
+
# characters, and cannot include certain characters. For more
|
1038
|
+
# information about the limits on repository names, see [Limits][1] in
|
1039
|
+
# the *AWS CodeCommit User Guide*. The suffix .git is prohibited.
|
728
1040
|
#
|
729
1041
|
# </note>
|
730
1042
|
#
|
@@ -737,10 +1049,10 @@ module Aws::CodeCommit
|
|
737
1049
|
#
|
738
1050
|
# <note markdown="1"> The description field for a repository accepts all HTML characters and
|
739
1051
|
# all valid Unicode characters. Applications that do not HTML-encode the
|
740
|
-
# description and display it in a
|
1052
|
+
# description and display it in a webpage can expose users to
|
741
1053
|
# potentially malicious code. Make sure that you HTML-encode the
|
742
1054
|
# description field in any application that uses this API to display the
|
743
|
-
# repository description on a
|
1055
|
+
# repository description on a webpage.
|
744
1056
|
#
|
745
1057
|
# </note>
|
746
1058
|
#
|
@@ -786,8 +1098,8 @@ module Aws::CodeCommit
|
|
786
1098
|
# Creates an unreferenced commit that represents the result of merging
|
787
1099
|
# two branches using a specified merge strategy. This can help you
|
788
1100
|
# determine the outcome of a potential merge. This API cannot be used
|
789
|
-
# with the fast-forward merge strategy
|
790
|
-
# a merge commit.
|
1101
|
+
# with the fast-forward merge strategy because that strategy does not
|
1102
|
+
# create a merge commit.
|
791
1103
|
#
|
792
1104
|
# <note markdown="1"> This unreferenced merge commit can only be accessed using the
|
793
1105
|
# GetCommit API or through git commands such as git fetch. To retrieve
|
@@ -801,32 +1113,31 @@ module Aws::CodeCommit
|
|
801
1113
|
#
|
802
1114
|
# @option params [required, String] :source_commit_specifier
|
803
1115
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
804
|
-
# identify a commit
|
1116
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
805
1117
|
#
|
806
1118
|
# @option params [required, String] :destination_commit_specifier
|
807
1119
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
808
|
-
# identify a commit
|
1120
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
809
1121
|
#
|
810
1122
|
# @option params [required, String] :merge_option
|
811
1123
|
# The merge option or strategy you want to use to merge the code.
|
812
1124
|
#
|
813
1125
|
# @option params [String] :conflict_detail_level
|
814
1126
|
# The level of conflict detail to use. If unspecified, the default
|
815
|
-
# FILE\_LEVEL is used, which
|
816
|
-
#
|
817
|
-
#
|
818
|
-
#
|
1127
|
+
# FILE\_LEVEL is used, which returns a not-mergeable result if the same
|
1128
|
+
# file has differences in both branches. If LINE\_LEVEL is specified, a
|
1129
|
+
# conflict is considered not mergeable if the same file in both branches
|
1130
|
+
# has differences on the same line.
|
819
1131
|
#
|
820
1132
|
# @option params [String] :conflict_resolution_strategy
|
821
1133
|
# Specifies which branch to use when resolving conflicts, or whether to
|
822
1134
|
# attempt automatically merging two versions of a file. The default is
|
823
1135
|
# NONE, which requires any conflicts to be resolved manually before the
|
824
|
-
# merge operation
|
1136
|
+
# merge operation is successful.
|
825
1137
|
#
|
826
1138
|
# @option params [String] :author_name
|
827
1139
|
# The name of the author who created the unreferenced commit. This
|
828
|
-
# information
|
829
|
-
# commit.
|
1140
|
+
# information is used as both the author and committer for the commit.
|
830
1141
|
#
|
831
1142
|
# @option params [String] :email
|
832
1143
|
# The email address for the person who created the unreferenced commit.
|
@@ -837,12 +1148,12 @@ module Aws::CodeCommit
|
|
837
1148
|
# @option params [Boolean] :keep_empty_folders
|
838
1149
|
# If the commit contains deletions, whether to keep a folder or folder
|
839
1150
|
# structure if the changes leave the folders empty. If this is specified
|
840
|
-
# as true, a .gitkeep file
|
841
|
-
#
|
1151
|
+
# as true, a .gitkeep file is created for empty folders. The default is
|
1152
|
+
# false.
|
842
1153
|
#
|
843
1154
|
# @option params [Types::ConflictResolution] :conflict_resolution
|
844
|
-
#
|
845
|
-
#
|
1155
|
+
# If AUTOMERGE is the conflict resolution strategy, a list of inputs to
|
1156
|
+
# use when resolving conflicts during a merge.
|
846
1157
|
#
|
847
1158
|
# @return [Types::CreateUnreferencedMergeCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
848
1159
|
#
|
@@ -899,6 +1210,36 @@ module Aws::CodeCommit
|
|
899
1210
|
req.send_request(options)
|
900
1211
|
end
|
901
1212
|
|
1213
|
+
# Deletes a specified approval rule template. Deleting a template does
|
1214
|
+
# not remove approval rules on pull requests already created with the
|
1215
|
+
# template.
|
1216
|
+
#
|
1217
|
+
# @option params [required, String] :approval_rule_template_name
|
1218
|
+
# The name of the approval rule template to delete.
|
1219
|
+
#
|
1220
|
+
# @return [Types::DeleteApprovalRuleTemplateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1221
|
+
#
|
1222
|
+
# * {Types::DeleteApprovalRuleTemplateOutput#approval_rule_template_id #approval_rule_template_id} => String
|
1223
|
+
#
|
1224
|
+
# @example Request syntax with placeholder values
|
1225
|
+
#
|
1226
|
+
# resp = client.delete_approval_rule_template({
|
1227
|
+
# approval_rule_template_name: "ApprovalRuleTemplateName", # required
|
1228
|
+
# })
|
1229
|
+
#
|
1230
|
+
# @example Response structure
|
1231
|
+
#
|
1232
|
+
# resp.approval_rule_template_id #=> String
|
1233
|
+
#
|
1234
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteApprovalRuleTemplate AWS API Documentation
|
1235
|
+
#
|
1236
|
+
# @overload delete_approval_rule_template(params = {})
|
1237
|
+
# @param [Hash] params ({})
|
1238
|
+
def delete_approval_rule_template(params = {}, options = {})
|
1239
|
+
req = build_request(:delete_approval_rule_template, params)
|
1240
|
+
req.send_request(options)
|
1241
|
+
end
|
1242
|
+
|
902
1243
|
# Deletes a branch from a repository, unless that branch is the default
|
903
1244
|
# branch for the repository.
|
904
1245
|
#
|
@@ -971,50 +1312,48 @@ module Aws::CodeCommit
|
|
971
1312
|
end
|
972
1313
|
|
973
1314
|
# Deletes a specified file from a specified branch. A commit is created
|
974
|
-
# on the branch that contains the revision. The file
|
975
|
-
#
|
1315
|
+
# on the branch that contains the revision. The file still exists in the
|
1316
|
+
# commits earlier to the commit that contains the deletion.
|
976
1317
|
#
|
977
1318
|
# @option params [required, String] :repository_name
|
978
1319
|
# The name of the repository that contains the file to delete.
|
979
1320
|
#
|
980
1321
|
# @option params [required, String] :branch_name
|
981
|
-
# The name of the branch where the commit
|
982
|
-
# file.
|
1322
|
+
# The name of the branch where the commit that deletes the file is made.
|
983
1323
|
#
|
984
1324
|
# @option params [required, String] :file_path
|
985
|
-
# The fully
|
986
|
-
#
|
987
|
-
#
|
988
|
-
#
|
1325
|
+
# The fully qualified path to the file that to be deleted, including the
|
1326
|
+
# full name and extension of that file. For example, /examples/file.md
|
1327
|
+
# is a fully qualified path to a file named file.md in a folder named
|
1328
|
+
# examples.
|
989
1329
|
#
|
990
1330
|
# @option params [required, String] :parent_commit_id
|
991
1331
|
# The ID of the commit that is the tip of the branch where you want to
|
992
|
-
# create the commit that
|
993
|
-
#
|
994
|
-
#
|
1332
|
+
# create the commit that deletes the file. This must be the HEAD commit
|
1333
|
+
# for the branch. The commit that deletes the file is created from this
|
1334
|
+
# commit ID.
|
995
1335
|
#
|
996
1336
|
# @option params [Boolean] :keep_empty_folders
|
997
|
-
#
|
998
|
-
#
|
999
|
-
#
|
1000
|
-
#
|
1001
|
-
#
|
1002
|
-
#
|
1003
|
-
# folders dir4, dir3, and dir2.
|
1337
|
+
# If a file is the only object in the folder or directory, specifies
|
1338
|
+
# whether to delete the folder or directory that contains the file. By
|
1339
|
+
# default, empty folders are deleted. This includes empty folders that
|
1340
|
+
# are part of the directory structure. For example, if the path to a
|
1341
|
+
# file is dir1/dir2/dir3/dir4, and dir2 and dir3 are empty, deleting the
|
1342
|
+
# last file in dir4 also deletes the empty folders dir4, dir3, and dir2.
|
1004
1343
|
#
|
1005
1344
|
# @option params [String] :commit_message
|
1006
1345
|
# The commit message you want to include as part of deleting the file.
|
1007
1346
|
# Commit messages are limited to 256 KB. If no message is specified, a
|
1008
|
-
# default message
|
1347
|
+
# default message is used.
|
1009
1348
|
#
|
1010
1349
|
# @option params [String] :name
|
1011
1350
|
# The name of the author of the commit that deletes the file. If no name
|
1012
|
-
# is specified, the user's ARN
|
1013
|
-
#
|
1351
|
+
# is specified, the user's ARN is used as the author name and committer
|
1352
|
+
# name.
|
1014
1353
|
#
|
1015
1354
|
# @option params [String] :email
|
1016
1355
|
# The email address for the commit that deletes the file. If no email
|
1017
|
-
# address is specified, the email address
|
1356
|
+
# address is specified, the email address is left blank.
|
1018
1357
|
#
|
1019
1358
|
# @return [Types::DeleteFileOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1020
1359
|
#
|
@@ -1052,12 +1391,50 @@ module Aws::CodeCommit
|
|
1052
1391
|
req.send_request(options)
|
1053
1392
|
end
|
1054
1393
|
|
1394
|
+
# Deletes an approval rule from a specified pull request. Approval rules
|
1395
|
+
# can be deleted from a pull request only if the pull request is open,
|
1396
|
+
# and if the approval rule was created specifically for a pull request
|
1397
|
+
# and not generated from an approval rule template associated with the
|
1398
|
+
# repository where the pull request was created. You cannot delete an
|
1399
|
+
# approval rule from a merged or closed pull request.
|
1400
|
+
#
|
1401
|
+
# @option params [required, String] :pull_request_id
|
1402
|
+
# The system-generated ID of the pull request that contains the approval
|
1403
|
+
# rule you want to delete.
|
1404
|
+
#
|
1405
|
+
# @option params [required, String] :approval_rule_name
|
1406
|
+
# The name of the approval rule you want to delete.
|
1407
|
+
#
|
1408
|
+
# @return [Types::DeletePullRequestApprovalRuleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1409
|
+
#
|
1410
|
+
# * {Types::DeletePullRequestApprovalRuleOutput#approval_rule_id #approval_rule_id} => String
|
1411
|
+
#
|
1412
|
+
# @example Request syntax with placeholder values
|
1413
|
+
#
|
1414
|
+
# resp = client.delete_pull_request_approval_rule({
|
1415
|
+
# pull_request_id: "PullRequestId", # required
|
1416
|
+
# approval_rule_name: "ApprovalRuleName", # required
|
1417
|
+
# })
|
1418
|
+
#
|
1419
|
+
# @example Response structure
|
1420
|
+
#
|
1421
|
+
# resp.approval_rule_id #=> String
|
1422
|
+
#
|
1423
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeletePullRequestApprovalRule AWS API Documentation
|
1424
|
+
#
|
1425
|
+
# @overload delete_pull_request_approval_rule(params = {})
|
1426
|
+
# @param [Hash] params ({})
|
1427
|
+
def delete_pull_request_approval_rule(params = {}, options = {})
|
1428
|
+
req = build_request(:delete_pull_request_approval_rule, params)
|
1429
|
+
req.send_request(options)
|
1430
|
+
end
|
1431
|
+
|
1055
1432
|
# Deletes a repository. If a specified repository was already deleted, a
|
1056
|
-
# null repository ID
|
1433
|
+
# null repository ID is returned.
|
1057
1434
|
#
|
1058
1435
|
# Deleting a repository also deletes all associated objects and
|
1059
1436
|
# metadata. After a repository is deleted, all future push calls to the
|
1060
|
-
# deleted repository
|
1437
|
+
# deleted repository fail.
|
1061
1438
|
#
|
1062
1439
|
# @option params [required, String] :repository_name
|
1063
1440
|
# The name of the repository to delete.
|
@@ -1088,7 +1465,7 @@ module Aws::CodeCommit
|
|
1088
1465
|
# Returns information about one or more merge conflicts in the attempted
|
1089
1466
|
# merge of two commit specifiers using the squash or three-way merge
|
1090
1467
|
# strategy. If the merge option for the attempted merge is specified as
|
1091
|
-
# FAST\_FORWARD\_MERGE, an exception
|
1468
|
+
# FAST\_FORWARD\_MERGE, an exception is thrown.
|
1092
1469
|
#
|
1093
1470
|
# @option params [required, String] :repository_name
|
1094
1471
|
# The name of the repository where you want to get information about a
|
@@ -1096,11 +1473,11 @@ module Aws::CodeCommit
|
|
1096
1473
|
#
|
1097
1474
|
# @option params [required, String] :destination_commit_specifier
|
1098
1475
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
1099
|
-
# identify a commit
|
1476
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
1100
1477
|
#
|
1101
1478
|
# @option params [required, String] :source_commit_specifier
|
1102
1479
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
1103
|
-
# identify a commit
|
1480
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
1104
1481
|
#
|
1105
1482
|
# @option params [required, String] :merge_option
|
1106
1483
|
# The merge option or strategy you want to use to merge the code.
|
@@ -1113,20 +1490,20 @@ module Aws::CodeCommit
|
|
1113
1490
|
#
|
1114
1491
|
# @option params [String] :conflict_detail_level
|
1115
1492
|
# The level of conflict detail to use. If unspecified, the default
|
1116
|
-
# FILE\_LEVEL is used, which
|
1117
|
-
#
|
1118
|
-
#
|
1119
|
-
#
|
1493
|
+
# FILE\_LEVEL is used, which returns a not-mergeable result if the same
|
1494
|
+
# file has differences in both branches. If LINE\_LEVEL is specified, a
|
1495
|
+
# conflict is considered not mergeable if the same file in both branches
|
1496
|
+
# has differences on the same line.
|
1120
1497
|
#
|
1121
1498
|
# @option params [String] :conflict_resolution_strategy
|
1122
1499
|
# Specifies which branch to use when resolving conflicts, or whether to
|
1123
1500
|
# attempt automatically merging two versions of a file. The default is
|
1124
1501
|
# NONE, which requires any conflicts to be resolved manually before the
|
1125
|
-
# merge operation
|
1502
|
+
# merge operation is successful.
|
1126
1503
|
#
|
1127
1504
|
# @option params [String] :next_token
|
1128
|
-
# An enumeration token that when provided in a request, returns the
|
1129
|
-
# batch of the results.
|
1505
|
+
# An enumeration token that, when provided in a request, returns the
|
1506
|
+
# next batch of the results.
|
1130
1507
|
#
|
1131
1508
|
# @return [Types::DescribeMergeConflictsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1132
1509
|
#
|
@@ -1209,17 +1586,17 @@ module Aws::CodeCommit
|
|
1209
1586
|
#
|
1210
1587
|
# @option params [String] :actor_arn
|
1211
1588
|
# The Amazon Resource Name (ARN) of the user whose actions resulted in
|
1212
|
-
# the event. Examples include updating the pull request with
|
1589
|
+
# the event. Examples include updating the pull request with more
|
1213
1590
|
# commits or changing the status of a pull request.
|
1214
1591
|
#
|
1215
1592
|
# @option params [String] :next_token
|
1216
|
-
# An enumeration token that when provided in a request, returns the
|
1217
|
-
# batch of the results.
|
1593
|
+
# An enumeration token that, when provided in a request, returns the
|
1594
|
+
# next batch of the results.
|
1218
1595
|
#
|
1219
1596
|
# @option params [Integer] :max_results
|
1220
|
-
# A non-negative integer used to limit the number of returned
|
1221
|
-
# The default is 100 events, which is also the maximum number
|
1222
|
-
# that can be returned in a result.
|
1597
|
+
# A non-zero, non-negative integer used to limit the number of returned
|
1598
|
+
# results. The default is 100 events, which is also the maximum number
|
1599
|
+
# of events that can be returned in a result.
|
1223
1600
|
#
|
1224
1601
|
# @return [Types::DescribePullRequestEventsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1225
1602
|
#
|
@@ -1230,7 +1607,7 @@ module Aws::CodeCommit
|
|
1230
1607
|
#
|
1231
1608
|
# resp = client.describe_pull_request_events({
|
1232
1609
|
# pull_request_id: "PullRequestId", # required
|
1233
|
-
# 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
|
1610
|
+
# 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, PULL_REQUEST_APPROVAL_RULE_CREATED, PULL_REQUEST_APPROVAL_RULE_UPDATED, PULL_REQUEST_APPROVAL_RULE_DELETED, PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN, PULL_REQUEST_APPROVAL_STATE_CHANGED
|
1234
1611
|
# actor_arn: "Arn",
|
1235
1612
|
# next_token: "NextToken",
|
1236
1613
|
# max_results: 1,
|
@@ -1241,7 +1618,7 @@ module Aws::CodeCommit
|
|
1241
1618
|
# resp.pull_request_events #=> Array
|
1242
1619
|
# resp.pull_request_events[0].pull_request_id #=> String
|
1243
1620
|
# resp.pull_request_events[0].event_date #=> Time
|
1244
|
-
# 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"
|
1621
|
+
# 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", "PULL_REQUEST_APPROVAL_RULE_CREATED", "PULL_REQUEST_APPROVAL_RULE_UPDATED", "PULL_REQUEST_APPROVAL_RULE_DELETED", "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN", "PULL_REQUEST_APPROVAL_STATE_CHANGED"
|
1245
1622
|
# resp.pull_request_events[0].actor_arn #=> String
|
1246
1623
|
# resp.pull_request_events[0].pull_request_created_event_metadata.repository_name #=> String
|
1247
1624
|
# resp.pull_request_events[0].pull_request_created_event_metadata.source_commit_id #=> String
|
@@ -1258,6 +1635,13 @@ module Aws::CodeCommit
|
|
1258
1635
|
# resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.merge_metadata.merged_by #=> String
|
1259
1636
|
# resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.merge_metadata.merge_commit_id #=> String
|
1260
1637
|
# resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
|
1638
|
+
# resp.pull_request_events[0].approval_rule_event_metadata.approval_rule_name #=> String
|
1639
|
+
# resp.pull_request_events[0].approval_rule_event_metadata.approval_rule_id #=> String
|
1640
|
+
# resp.pull_request_events[0].approval_rule_event_metadata.approval_rule_content #=> String
|
1641
|
+
# resp.pull_request_events[0].approval_state_changed_event_metadata.revision_id #=> String
|
1642
|
+
# resp.pull_request_events[0].approval_state_changed_event_metadata.approval_status #=> String, one of "APPROVE", "REVOKE"
|
1643
|
+
# resp.pull_request_events[0].approval_rule_overridden_event_metadata.revision_id #=> String
|
1644
|
+
# resp.pull_request_events[0].approval_rule_overridden_event_metadata.override_status #=> String, one of "OVERRIDE", "REVOKE"
|
1261
1645
|
# resp.next_token #=> String
|
1262
1646
|
#
|
1263
1647
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribePullRequestEvents AWS API Documentation
|
@@ -1269,7 +1653,113 @@ module Aws::CodeCommit
|
|
1269
1653
|
req.send_request(options)
|
1270
1654
|
end
|
1271
1655
|
|
1272
|
-
#
|
1656
|
+
# Removes the association between a template and a repository so that
|
1657
|
+
# approval rules based on the template are not automatically created
|
1658
|
+
# when pull requests are created in the specified repository. This does
|
1659
|
+
# not delete any approval rules previously created for pull requests
|
1660
|
+
# through the template association.
|
1661
|
+
#
|
1662
|
+
# @option params [required, String] :approval_rule_template_name
|
1663
|
+
# The name of the approval rule template to disassociate from a
|
1664
|
+
# specified repository.
|
1665
|
+
#
|
1666
|
+
# @option params [required, String] :repository_name
|
1667
|
+
# The name of the repository you want to disassociate from the template.
|
1668
|
+
#
|
1669
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1670
|
+
#
|
1671
|
+
# @example Request syntax with placeholder values
|
1672
|
+
#
|
1673
|
+
# resp = client.disassociate_approval_rule_template_from_repository({
|
1674
|
+
# approval_rule_template_name: "ApprovalRuleTemplateName", # required
|
1675
|
+
# repository_name: "RepositoryName", # required
|
1676
|
+
# })
|
1677
|
+
#
|
1678
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DisassociateApprovalRuleTemplateFromRepository AWS API Documentation
|
1679
|
+
#
|
1680
|
+
# @overload disassociate_approval_rule_template_from_repository(params = {})
|
1681
|
+
# @param [Hash] params ({})
|
1682
|
+
def disassociate_approval_rule_template_from_repository(params = {}, options = {})
|
1683
|
+
req = build_request(:disassociate_approval_rule_template_from_repository, params)
|
1684
|
+
req.send_request(options)
|
1685
|
+
end
|
1686
|
+
|
1687
|
+
# Evaluates whether a pull request has met all the conditions specified
|
1688
|
+
# in its associated approval rules.
|
1689
|
+
#
|
1690
|
+
# @option params [required, String] :pull_request_id
|
1691
|
+
# The system-generated ID of the pull request you want to evaluate.
|
1692
|
+
#
|
1693
|
+
# @option params [required, String] :revision_id
|
1694
|
+
# The system-generated ID for the pull request revision. To retrieve the
|
1695
|
+
# most recent revision ID for a pull request, use GetPullRequest.
|
1696
|
+
#
|
1697
|
+
# @return [Types::EvaluatePullRequestApprovalRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1698
|
+
#
|
1699
|
+
# * {Types::EvaluatePullRequestApprovalRulesOutput#evaluation #evaluation} => Types::Evaluation
|
1700
|
+
#
|
1701
|
+
# @example Request syntax with placeholder values
|
1702
|
+
#
|
1703
|
+
# resp = client.evaluate_pull_request_approval_rules({
|
1704
|
+
# pull_request_id: "PullRequestId", # required
|
1705
|
+
# revision_id: "RevisionId", # required
|
1706
|
+
# })
|
1707
|
+
#
|
1708
|
+
# @example Response structure
|
1709
|
+
#
|
1710
|
+
# resp.evaluation.approved #=> Boolean
|
1711
|
+
# resp.evaluation.overridden #=> Boolean
|
1712
|
+
# resp.evaluation.approval_rules_satisfied #=> Array
|
1713
|
+
# resp.evaluation.approval_rules_satisfied[0] #=> String
|
1714
|
+
# resp.evaluation.approval_rules_not_satisfied #=> Array
|
1715
|
+
# resp.evaluation.approval_rules_not_satisfied[0] #=> String
|
1716
|
+
#
|
1717
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/EvaluatePullRequestApprovalRules AWS API Documentation
|
1718
|
+
#
|
1719
|
+
# @overload evaluate_pull_request_approval_rules(params = {})
|
1720
|
+
# @param [Hash] params ({})
|
1721
|
+
def evaluate_pull_request_approval_rules(params = {}, options = {})
|
1722
|
+
req = build_request(:evaluate_pull_request_approval_rules, params)
|
1723
|
+
req.send_request(options)
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
# Returns information about a specified approval rule template.
|
1727
|
+
#
|
1728
|
+
# @option params [required, String] :approval_rule_template_name
|
1729
|
+
# The name of the approval rule template for which you want to get
|
1730
|
+
# information.
|
1731
|
+
#
|
1732
|
+
# @return [Types::GetApprovalRuleTemplateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1733
|
+
#
|
1734
|
+
# * {Types::GetApprovalRuleTemplateOutput#approval_rule_template #approval_rule_template} => Types::ApprovalRuleTemplate
|
1735
|
+
#
|
1736
|
+
# @example Request syntax with placeholder values
|
1737
|
+
#
|
1738
|
+
# resp = client.get_approval_rule_template({
|
1739
|
+
# approval_rule_template_name: "ApprovalRuleTemplateName", # required
|
1740
|
+
# })
|
1741
|
+
#
|
1742
|
+
# @example Response structure
|
1743
|
+
#
|
1744
|
+
# resp.approval_rule_template.approval_rule_template_id #=> String
|
1745
|
+
# resp.approval_rule_template.approval_rule_template_name #=> String
|
1746
|
+
# resp.approval_rule_template.approval_rule_template_description #=> String
|
1747
|
+
# resp.approval_rule_template.approval_rule_template_content #=> String
|
1748
|
+
# resp.approval_rule_template.rule_content_sha_256 #=> String
|
1749
|
+
# resp.approval_rule_template.last_modified_date #=> Time
|
1750
|
+
# resp.approval_rule_template.creation_date #=> Time
|
1751
|
+
# resp.approval_rule_template.last_modified_user #=> String
|
1752
|
+
#
|
1753
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetApprovalRuleTemplate AWS API Documentation
|
1754
|
+
#
|
1755
|
+
# @overload get_approval_rule_template(params = {})
|
1756
|
+
# @param [Hash] params ({})
|
1757
|
+
def get_approval_rule_template(params = {}, options = {})
|
1758
|
+
req = build_request(:get_approval_rule_template, params)
|
1759
|
+
req.send_request(options)
|
1760
|
+
end
|
1761
|
+
|
1762
|
+
# Returns the base-64 encoded content of an individual blob in a
|
1273
1763
|
# repository.
|
1274
1764
|
#
|
1275
1765
|
# @option params [required, String] :repository_name
|
@@ -1382,19 +1872,19 @@ module Aws::CodeCommit
|
|
1382
1872
|
#
|
1383
1873
|
# @option params [String] :before_commit_id
|
1384
1874
|
# To establish the directionality of the comparison, the full commit ID
|
1385
|
-
# of the
|
1875
|
+
# of the before commit.
|
1386
1876
|
#
|
1387
1877
|
# @option params [required, String] :after_commit_id
|
1388
1878
|
# To establish the directionality of the comparison, the full commit ID
|
1389
|
-
# of the
|
1879
|
+
# of the after commit.
|
1390
1880
|
#
|
1391
1881
|
# @option params [String] :next_token
|
1392
1882
|
# An enumeration token that when provided in a request, returns the next
|
1393
1883
|
# batch of the results.
|
1394
1884
|
#
|
1395
1885
|
# @option params [Integer] :max_results
|
1396
|
-
# A non-negative integer used to limit the number of returned
|
1397
|
-
# The default is 100 comments,
|
1886
|
+
# A non-zero, non-negative integer used to limit the number of returned
|
1887
|
+
# results. The default is 100 comments, but you can configure up to 500.
|
1398
1888
|
#
|
1399
1889
|
# @return [Types::GetCommentsForComparedCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1400
1890
|
#
|
@@ -1460,13 +1950,13 @@ module Aws::CodeCommit
|
|
1460
1950
|
# of the branch at the time the comment was made.
|
1461
1951
|
#
|
1462
1952
|
# @option params [String] :next_token
|
1463
|
-
# An enumeration token that when provided in a request, returns the
|
1464
|
-
# batch of the results.
|
1953
|
+
# An enumeration token that, when provided in a request, returns the
|
1954
|
+
# next batch of the results.
|
1465
1955
|
#
|
1466
1956
|
# @option params [Integer] :max_results
|
1467
|
-
# A non-negative integer used to limit the number of returned
|
1468
|
-
# The default is 100 comments. You can return up to 500
|
1469
|
-
# single request.
|
1957
|
+
# A non-zero, non-negative integer used to limit the number of returned
|
1958
|
+
# results. The default is 100 comments. You can return up to 500
|
1959
|
+
# comments with a single request.
|
1470
1960
|
#
|
1471
1961
|
# @return [Types::GetCommentsForPullRequestOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1472
1962
|
#
|
@@ -1523,7 +2013,7 @@ module Aws::CodeCommit
|
|
1523
2013
|
# The name of the repository to which the commit was made.
|
1524
2014
|
#
|
1525
2015
|
# @option params [required, String] :commit_id
|
1526
|
-
# The commit ID. Commit IDs are the full SHA of the commit.
|
2016
|
+
# The commit ID. Commit IDs are the full SHA ID of the commit.
|
1527
2017
|
#
|
1528
2018
|
# @return [Types::GetCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1529
2019
|
#
|
@@ -1561,7 +2051,7 @@ module Aws::CodeCommit
|
|
1561
2051
|
end
|
1562
2052
|
|
1563
2053
|
# Returns information about the differences in a valid commit specifier
|
1564
|
-
# (such as a branch, tag, HEAD, commit ID or other fully qualified
|
2054
|
+
# (such as a branch, tag, HEAD, commit ID, or other fully qualified
|
1565
2055
|
# reference). Results can be limited to a specified path.
|
1566
2056
|
#
|
1567
2057
|
# @option params [required, String] :repository_name
|
@@ -1569,9 +2059,9 @@ module Aws::CodeCommit
|
|
1569
2059
|
#
|
1570
2060
|
# @option params [String] :before_commit_specifier
|
1571
2061
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
1572
|
-
# identify a commit
|
1573
|
-
# specified, all changes
|
1574
|
-
#
|
2062
|
+
# identify a commit (for example, the full commit ID). Optional. If not
|
2063
|
+
# specified, all changes before the `afterCommitSpecifier` value are
|
2064
|
+
# shown. If you do not use `beforeCommitSpecifier` in your request,
|
1575
2065
|
# consider limiting the results with `maxResults`.
|
1576
2066
|
#
|
1577
2067
|
# @option params [required, String] :after_commit_specifier
|
@@ -1582,20 +2072,21 @@ module Aws::CodeCommit
|
|
1582
2072
|
# The file path in which to check for differences. Limits the results to
|
1583
2073
|
# this path. Can also be used to specify the previous name of a
|
1584
2074
|
# directory or folder. If `beforePath` and `afterPath` are not
|
1585
|
-
# specified, differences
|
2075
|
+
# specified, differences are shown for all paths.
|
1586
2076
|
#
|
1587
2077
|
# @option params [String] :after_path
|
1588
2078
|
# The file path in which to check differences. Limits the results to
|
1589
2079
|
# this path. Can also be used to specify the changed name of a directory
|
1590
|
-
# or folder, if it has changed. If not specified, differences
|
1591
|
-
#
|
2080
|
+
# or folder, if it has changed. If not specified, differences are shown
|
2081
|
+
# for all paths.
|
1592
2082
|
#
|
1593
2083
|
# @option params [Integer] :max_results
|
1594
|
-
# A non-negative integer used to limit the number of returned
|
2084
|
+
# A non-zero, non-negative integer used to limit the number of returned
|
2085
|
+
# results.
|
1595
2086
|
#
|
1596
2087
|
# @option params [String] :next_token
|
1597
|
-
# An enumeration token that when provided in a request, returns the
|
1598
|
-
# batch of the results.
|
2088
|
+
# An enumeration token that, when provided in a request, returns the
|
2089
|
+
# next batch of the results.
|
1599
2090
|
#
|
1600
2091
|
# @return [Types::GetDifferencesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1601
2092
|
#
|
@@ -1642,16 +2133,15 @@ module Aws::CodeCommit
|
|
1642
2133
|
# The name of the repository that contains the file.
|
1643
2134
|
#
|
1644
2135
|
# @option params [String] :commit_specifier
|
1645
|
-
# The fully
|
1646
|
-
# the file. For example, you
|
2136
|
+
# The fully quaified reference that identifies the commit that contains
|
2137
|
+
# the file. For example, you can specify a full commit ID, a tag, a
|
1647
2138
|
# branch name, or a reference such as refs/heads/master. If none is
|
1648
|
-
# provided,
|
2139
|
+
# provided, the head commit is used.
|
1649
2140
|
#
|
1650
2141
|
# @option params [required, String] :file_path
|
1651
|
-
# The fully
|
1652
|
-
# extension of the file. For example, /examples/file.md is the
|
1653
|
-
#
|
1654
|
-
# examples.
|
2142
|
+
# The fully qualified path to the file, including the full name and
|
2143
|
+
# extension of the file. For example, /examples/file.md is the fully
|
2144
|
+
# qualified path to a file named file.md in a folder named examples.
|
1655
2145
|
#
|
1656
2146
|
# @return [Types::GetFileOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1657
2147
|
#
|
@@ -1694,17 +2184,17 @@ module Aws::CodeCommit
|
|
1694
2184
|
# The name of the repository.
|
1695
2185
|
#
|
1696
2186
|
# @option params [String] :commit_specifier
|
1697
|
-
# A fully
|
1698
|
-
# the version of the folder's content to return. A fully
|
2187
|
+
# A fully qualified reference used to identify a commit that contains
|
2188
|
+
# the version of the folder's content to return. A fully qualified
|
1699
2189
|
# reference can be a commit ID, branch name, tag, or reference such as
|
1700
|
-
# HEAD. If no specifier is provided, the folder content
|
1701
|
-
#
|
2190
|
+
# HEAD. If no specifier is provided, the folder content is returned as
|
2191
|
+
# it exists in the HEAD commit.
|
1702
2192
|
#
|
1703
2193
|
# @option params [required, String] :folder_path
|
1704
|
-
# The fully
|
1705
|
-
#
|
1706
|
-
#
|
1707
|
-
#
|
2194
|
+
# The fully qualified path to the folder whose contents are returned,
|
2195
|
+
# including the folder name. For example, /examples is a fully-qualified
|
2196
|
+
# path to a folder named examples that was created off of the root
|
2197
|
+
# directory (/) of a repository.
|
1708
2198
|
#
|
1709
2199
|
# @return [Types::GetFolderOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1710
2200
|
#
|
@@ -1765,24 +2255,24 @@ module Aws::CodeCommit
|
|
1765
2255
|
#
|
1766
2256
|
# @option params [required, String] :source_commit_specifier
|
1767
2257
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
1768
|
-
# identify a commit
|
2258
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
1769
2259
|
#
|
1770
2260
|
# @option params [required, String] :destination_commit_specifier
|
1771
2261
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
1772
|
-
# identify a commit
|
2262
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
1773
2263
|
#
|
1774
2264
|
# @option params [String] :conflict_detail_level
|
1775
2265
|
# The level of conflict detail to use. If unspecified, the default
|
1776
|
-
# FILE\_LEVEL is used, which
|
1777
|
-
#
|
1778
|
-
#
|
1779
|
-
#
|
2266
|
+
# FILE\_LEVEL is used, which returns a not-mergeable result if the same
|
2267
|
+
# file has differences in both branches. If LINE\_LEVEL is specified, a
|
2268
|
+
# conflict is considered not mergeable if the same file in both branches
|
2269
|
+
# has differences on the same line.
|
1780
2270
|
#
|
1781
2271
|
# @option params [String] :conflict_resolution_strategy
|
1782
2272
|
# Specifies which branch to use when resolving conflicts, or whether to
|
1783
2273
|
# attempt automatically merging two versions of a file. The default is
|
1784
2274
|
# NONE, which requires any conflicts to be resolved manually before the
|
1785
|
-
# merge operation
|
2275
|
+
# merge operation is successful.
|
1786
2276
|
#
|
1787
2277
|
# @return [Types::GetMergeCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1788
2278
|
#
|
@@ -1825,21 +2315,21 @@ module Aws::CodeCommit
|
|
1825
2315
|
#
|
1826
2316
|
# @option params [required, String] :destination_commit_specifier
|
1827
2317
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
1828
|
-
# identify a commit
|
2318
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
1829
2319
|
#
|
1830
2320
|
# @option params [required, String] :source_commit_specifier
|
1831
2321
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
1832
|
-
# identify a commit
|
2322
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
1833
2323
|
#
|
1834
2324
|
# @option params [required, String] :merge_option
|
1835
2325
|
# The merge option or strategy you want to use to merge the code.
|
1836
2326
|
#
|
1837
2327
|
# @option params [String] :conflict_detail_level
|
1838
2328
|
# The level of conflict detail to use. If unspecified, the default
|
1839
|
-
# FILE\_LEVEL is used, which
|
1840
|
-
#
|
1841
|
-
#
|
1842
|
-
#
|
2329
|
+
# FILE\_LEVEL is used, which returns a not-mergeable result if the same
|
2330
|
+
# file has differences in both branches. If LINE\_LEVEL is specified, a
|
2331
|
+
# conflict is considered not mergeable if the same file in both branches
|
2332
|
+
# has differences on the same line.
|
1843
2333
|
#
|
1844
2334
|
# @option params [Integer] :max_conflict_files
|
1845
2335
|
# The maximum number of files to include in the output.
|
@@ -1848,11 +2338,11 @@ module Aws::CodeCommit
|
|
1848
2338
|
# Specifies which branch to use when resolving conflicts, or whether to
|
1849
2339
|
# attempt automatically merging two versions of a file. The default is
|
1850
2340
|
# NONE, which requires any conflicts to be resolved manually before the
|
1851
|
-
# merge operation
|
2341
|
+
# merge operation is successful.
|
1852
2342
|
#
|
1853
2343
|
# @option params [String] :next_token
|
1854
|
-
# An enumeration token that when provided in a request, returns the
|
1855
|
-
# batch of the results.
|
2344
|
+
# An enumeration token that, when provided in a request, returns the
|
2345
|
+
# next batch of the results.
|
1856
2346
|
#
|
1857
2347
|
# @return [Types::GetMergeConflictsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1858
2348
|
#
|
@@ -1914,8 +2404,8 @@ module Aws::CodeCommit
|
|
1914
2404
|
end
|
1915
2405
|
|
1916
2406
|
# Returns information about the merge options available for merging two
|
1917
|
-
# specified branches. For details about why a
|
1918
|
-
#
|
2407
|
+
# specified branches. For details about why a merge option is not
|
2408
|
+
# available, use GetMergeConflicts or DescribeMergeConflicts.
|
1919
2409
|
#
|
1920
2410
|
# @option params [required, String] :repository_name
|
1921
2411
|
# The name of the repository that contains the commits about which you
|
@@ -1923,24 +2413,24 @@ module Aws::CodeCommit
|
|
1923
2413
|
#
|
1924
2414
|
# @option params [required, String] :source_commit_specifier
|
1925
2415
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
1926
|
-
# identify a commit
|
2416
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
1927
2417
|
#
|
1928
2418
|
# @option params [required, String] :destination_commit_specifier
|
1929
2419
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
1930
|
-
# identify a commit
|
2420
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
1931
2421
|
#
|
1932
2422
|
# @option params [String] :conflict_detail_level
|
1933
2423
|
# The level of conflict detail to use. If unspecified, the default
|
1934
|
-
# FILE\_LEVEL is used, which
|
1935
|
-
#
|
1936
|
-
#
|
1937
|
-
#
|
2424
|
+
# FILE\_LEVEL is used, which returns a not-mergeable result if the same
|
2425
|
+
# file has differences in both branches. If LINE\_LEVEL is specified, a
|
2426
|
+
# conflict is considered not mergeable if the same file in both branches
|
2427
|
+
# has differences on the same line.
|
1938
2428
|
#
|
1939
2429
|
# @option params [String] :conflict_resolution_strategy
|
1940
2430
|
# Specifies which branch to use when resolving conflicts, or whether to
|
1941
2431
|
# attempt automatically merging two versions of a file. The default is
|
1942
2432
|
# NONE, which requires any conflicts to be resolved manually before the
|
1943
|
-
# merge operation
|
2433
|
+
# merge operation is successful.
|
1944
2434
|
#
|
1945
2435
|
# @return [Types::GetMergeOptionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1946
2436
|
#
|
@@ -2013,6 +2503,17 @@ module Aws::CodeCommit
|
|
2013
2503
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
|
2014
2504
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
|
2015
2505
|
# resp.pull_request.client_request_token #=> String
|
2506
|
+
# resp.pull_request.revision_id #=> String
|
2507
|
+
# resp.pull_request.approval_rules #=> Array
|
2508
|
+
# resp.pull_request.approval_rules[0].approval_rule_id #=> String
|
2509
|
+
# resp.pull_request.approval_rules[0].approval_rule_name #=> String
|
2510
|
+
# resp.pull_request.approval_rules[0].approval_rule_content #=> String
|
2511
|
+
# resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
|
2512
|
+
# resp.pull_request.approval_rules[0].last_modified_date #=> Time
|
2513
|
+
# resp.pull_request.approval_rules[0].creation_date #=> Time
|
2514
|
+
# resp.pull_request.approval_rules[0].last_modified_user #=> String
|
2515
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
|
2516
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
|
2016
2517
|
#
|
2017
2518
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest AWS API Documentation
|
2018
2519
|
#
|
@@ -2023,14 +2524,89 @@ module Aws::CodeCommit
|
|
2023
2524
|
req.send_request(options)
|
2024
2525
|
end
|
2025
2526
|
|
2527
|
+
# Gets information about the approval states for a specified pull
|
2528
|
+
# request. Approval states only apply to pull requests that have one or
|
2529
|
+
# more approval rules applied to them.
|
2530
|
+
#
|
2531
|
+
# @option params [required, String] :pull_request_id
|
2532
|
+
# The system-generated ID for the pull request.
|
2533
|
+
#
|
2534
|
+
# @option params [required, String] :revision_id
|
2535
|
+
# The system-generated ID for the pull request revision.
|
2536
|
+
#
|
2537
|
+
# @return [Types::GetPullRequestApprovalStatesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2538
|
+
#
|
2539
|
+
# * {Types::GetPullRequestApprovalStatesOutput#approvals #approvals} => Array<Types::Approval>
|
2540
|
+
#
|
2541
|
+
# @example Request syntax with placeholder values
|
2542
|
+
#
|
2543
|
+
# resp = client.get_pull_request_approval_states({
|
2544
|
+
# pull_request_id: "PullRequestId", # required
|
2545
|
+
# revision_id: "RevisionId", # required
|
2546
|
+
# })
|
2547
|
+
#
|
2548
|
+
# @example Response structure
|
2549
|
+
#
|
2550
|
+
# resp.approvals #=> Array
|
2551
|
+
# resp.approvals[0].user_arn #=> String
|
2552
|
+
# resp.approvals[0].approval_state #=> String, one of "APPROVE", "REVOKE"
|
2553
|
+
#
|
2554
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequestApprovalStates AWS API Documentation
|
2555
|
+
#
|
2556
|
+
# @overload get_pull_request_approval_states(params = {})
|
2557
|
+
# @param [Hash] params ({})
|
2558
|
+
def get_pull_request_approval_states(params = {}, options = {})
|
2559
|
+
req = build_request(:get_pull_request_approval_states, params)
|
2560
|
+
req.send_request(options)
|
2561
|
+
end
|
2562
|
+
|
2563
|
+
# Returns information about whether approval rules have been set aside
|
2564
|
+
# (overridden) for a pull request, and if so, the Amazon Resource Name
|
2565
|
+
# (ARN) of the user or identity that overrode the rules and their
|
2566
|
+
# requirements for the pull request.
|
2567
|
+
#
|
2568
|
+
# @option params [required, String] :pull_request_id
|
2569
|
+
# The ID of the pull request for which you want to get information about
|
2570
|
+
# whether approval rules have been set aside (overridden).
|
2571
|
+
#
|
2572
|
+
# @option params [required, String] :revision_id
|
2573
|
+
# The system-generated ID of the revision for the pull request. To
|
2574
|
+
# retrieve the most recent revision ID, use GetPullRequest.
|
2575
|
+
#
|
2576
|
+
# @return [Types::GetPullRequestOverrideStateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2577
|
+
#
|
2578
|
+
# * {Types::GetPullRequestOverrideStateOutput#overridden #overridden} => Boolean
|
2579
|
+
# * {Types::GetPullRequestOverrideStateOutput#overrider #overrider} => String
|
2580
|
+
#
|
2581
|
+
# @example Request syntax with placeholder values
|
2582
|
+
#
|
2583
|
+
# resp = client.get_pull_request_override_state({
|
2584
|
+
# pull_request_id: "PullRequestId", # required
|
2585
|
+
# revision_id: "RevisionId", # required
|
2586
|
+
# })
|
2587
|
+
#
|
2588
|
+
# @example Response structure
|
2589
|
+
#
|
2590
|
+
# resp.overridden #=> Boolean
|
2591
|
+
# resp.overrider #=> String
|
2592
|
+
#
|
2593
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequestOverrideState AWS API Documentation
|
2594
|
+
#
|
2595
|
+
# @overload get_pull_request_override_state(params = {})
|
2596
|
+
# @param [Hash] params ({})
|
2597
|
+
def get_pull_request_override_state(params = {}, options = {})
|
2598
|
+
req = build_request(:get_pull_request_override_state, params)
|
2599
|
+
req.send_request(options)
|
2600
|
+
end
|
2601
|
+
|
2026
2602
|
# Returns information about a repository.
|
2027
2603
|
#
|
2028
2604
|
# <note markdown="1"> The description field for a repository accepts all HTML characters and
|
2029
2605
|
# all valid Unicode characters. Applications that do not HTML-encode the
|
2030
|
-
# description and display it in a
|
2606
|
+
# description and display it in a webpage can expose users to
|
2031
2607
|
# potentially malicious code. Make sure that you HTML-encode the
|
2032
2608
|
# description field in any application that uses this API to display the
|
2033
|
-
# repository description on a
|
2609
|
+
# repository description on a webpage.
|
2034
2610
|
#
|
2035
2611
|
# </note>
|
2036
2612
|
#
|
@@ -2106,6 +2682,88 @@ module Aws::CodeCommit
|
|
2106
2682
|
req.send_request(options)
|
2107
2683
|
end
|
2108
2684
|
|
2685
|
+
# Lists all approval rule templates in the specified AWS Region in your
|
2686
|
+
# AWS account. If an AWS Region is not specified, the AWS Region where
|
2687
|
+
# you are signed in is used.
|
2688
|
+
#
|
2689
|
+
# @option params [String] :next_token
|
2690
|
+
# An enumeration token that, when provided in a request, returns the
|
2691
|
+
# next batch of the results.
|
2692
|
+
#
|
2693
|
+
# @option params [Integer] :max_results
|
2694
|
+
# A non-zero, non-negative integer used to limit the number of returned
|
2695
|
+
# results.
|
2696
|
+
#
|
2697
|
+
# @return [Types::ListApprovalRuleTemplatesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2698
|
+
#
|
2699
|
+
# * {Types::ListApprovalRuleTemplatesOutput#approval_rule_template_names #approval_rule_template_names} => Array<String>
|
2700
|
+
# * {Types::ListApprovalRuleTemplatesOutput#next_token #next_token} => String
|
2701
|
+
#
|
2702
|
+
# @example Request syntax with placeholder values
|
2703
|
+
#
|
2704
|
+
# resp = client.list_approval_rule_templates({
|
2705
|
+
# next_token: "NextToken",
|
2706
|
+
# max_results: 1,
|
2707
|
+
# })
|
2708
|
+
#
|
2709
|
+
# @example Response structure
|
2710
|
+
#
|
2711
|
+
# resp.approval_rule_template_names #=> Array
|
2712
|
+
# resp.approval_rule_template_names[0] #=> String
|
2713
|
+
# resp.next_token #=> String
|
2714
|
+
#
|
2715
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListApprovalRuleTemplates AWS API Documentation
|
2716
|
+
#
|
2717
|
+
# @overload list_approval_rule_templates(params = {})
|
2718
|
+
# @param [Hash] params ({})
|
2719
|
+
def list_approval_rule_templates(params = {}, options = {})
|
2720
|
+
req = build_request(:list_approval_rule_templates, params)
|
2721
|
+
req.send_request(options)
|
2722
|
+
end
|
2723
|
+
|
2724
|
+
# Lists all approval rule templates that are associated with a specified
|
2725
|
+
# repository.
|
2726
|
+
#
|
2727
|
+
# @option params [required, String] :repository_name
|
2728
|
+
# The name of the repository for which you want to list all associated
|
2729
|
+
# approval rule templates.
|
2730
|
+
#
|
2731
|
+
# @option params [String] :next_token
|
2732
|
+
# An enumeration token that, when provided in a request, returns the
|
2733
|
+
# next batch of the results.
|
2734
|
+
#
|
2735
|
+
# @option params [Integer] :max_results
|
2736
|
+
# A non-zero, non-negative integer used to limit the number of returned
|
2737
|
+
# results.
|
2738
|
+
#
|
2739
|
+
# @return [Types::ListAssociatedApprovalRuleTemplatesForRepositoryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2740
|
+
#
|
2741
|
+
# * {Types::ListAssociatedApprovalRuleTemplatesForRepositoryOutput#approval_rule_template_names #approval_rule_template_names} => Array<String>
|
2742
|
+
# * {Types::ListAssociatedApprovalRuleTemplatesForRepositoryOutput#next_token #next_token} => String
|
2743
|
+
#
|
2744
|
+
# @example Request syntax with placeholder values
|
2745
|
+
#
|
2746
|
+
# resp = client.list_associated_approval_rule_templates_for_repository({
|
2747
|
+
# repository_name: "RepositoryName", # required
|
2748
|
+
# next_token: "NextToken",
|
2749
|
+
# max_results: 1,
|
2750
|
+
# })
|
2751
|
+
#
|
2752
|
+
# @example Response structure
|
2753
|
+
#
|
2754
|
+
# resp.approval_rule_template_names #=> Array
|
2755
|
+
# resp.approval_rule_template_names[0] #=> String
|
2756
|
+
# resp.next_token #=> String
|
2757
|
+
#
|
2758
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListAssociatedApprovalRuleTemplatesForRepository AWS API Documentation
|
2759
|
+
#
|
2760
|
+
# @overload list_associated_approval_rule_templates_for_repository(params = {})
|
2761
|
+
# @param [Hash] params ({})
|
2762
|
+
def list_associated_approval_rule_templates_for_repository(params = {}, options = {})
|
2763
|
+
req = build_request(:list_associated_approval_rule_templates_for_repository, params)
|
2764
|
+
req.send_request(options)
|
2765
|
+
end
|
2766
|
+
|
2109
2767
|
# Gets information about one or more branches in a repository.
|
2110
2768
|
#
|
2111
2769
|
# @option params [required, String] :repository_name
|
@@ -2157,11 +2815,12 @@ module Aws::CodeCommit
|
|
2157
2815
|
# results to the pull requests that match the specified status.
|
2158
2816
|
#
|
2159
2817
|
# @option params [String] :next_token
|
2160
|
-
# An enumeration token that when provided in a request, returns the
|
2161
|
-
# batch of the results.
|
2818
|
+
# An enumeration token that, when provided in a request, returns the
|
2819
|
+
# next batch of the results.
|
2162
2820
|
#
|
2163
2821
|
# @option params [Integer] :max_results
|
2164
|
-
# A non-negative integer used to limit the number of returned
|
2822
|
+
# A non-zero, non-negative integer used to limit the number of returned
|
2823
|
+
# results.
|
2165
2824
|
#
|
2166
2825
|
# @return [Types::ListPullRequestsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2167
2826
|
#
|
@@ -2238,10 +2897,53 @@ module Aws::CodeCommit
|
|
2238
2897
|
req.send_request(options)
|
2239
2898
|
end
|
2240
2899
|
|
2900
|
+
# Lists all repositories associated with the specified approval rule
|
2901
|
+
# template.
|
2902
|
+
#
|
2903
|
+
# @option params [required, String] :approval_rule_template_name
|
2904
|
+
# The name of the approval rule template for which you want to list
|
2905
|
+
# repositories that are associated with that template.
|
2906
|
+
#
|
2907
|
+
# @option params [String] :next_token
|
2908
|
+
# An enumeration token that, when provided in a request, returns the
|
2909
|
+
# next batch of the results.
|
2910
|
+
#
|
2911
|
+
# @option params [Integer] :max_results
|
2912
|
+
# A non-zero, non-negative integer used to limit the number of returned
|
2913
|
+
# results.
|
2914
|
+
#
|
2915
|
+
# @return [Types::ListRepositoriesForApprovalRuleTemplateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2916
|
+
#
|
2917
|
+
# * {Types::ListRepositoriesForApprovalRuleTemplateOutput#repository_names #repository_names} => Array<String>
|
2918
|
+
# * {Types::ListRepositoriesForApprovalRuleTemplateOutput#next_token #next_token} => String
|
2919
|
+
#
|
2920
|
+
# @example Request syntax with placeholder values
|
2921
|
+
#
|
2922
|
+
# resp = client.list_repositories_for_approval_rule_template({
|
2923
|
+
# approval_rule_template_name: "ApprovalRuleTemplateName", # required
|
2924
|
+
# next_token: "NextToken",
|
2925
|
+
# max_results: 1,
|
2926
|
+
# })
|
2927
|
+
#
|
2928
|
+
# @example Response structure
|
2929
|
+
#
|
2930
|
+
# resp.repository_names #=> Array
|
2931
|
+
# resp.repository_names[0] #=> String
|
2932
|
+
# resp.next_token #=> String
|
2933
|
+
#
|
2934
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositoriesForApprovalRuleTemplate AWS API Documentation
|
2935
|
+
#
|
2936
|
+
# @overload list_repositories_for_approval_rule_template(params = {})
|
2937
|
+
# @param [Hash] params ({})
|
2938
|
+
def list_repositories_for_approval_rule_template(params = {}, options = {})
|
2939
|
+
req = build_request(:list_repositories_for_approval_rule_template, params)
|
2940
|
+
req.send_request(options)
|
2941
|
+
end
|
2942
|
+
|
2241
2943
|
# Gets information about AWS tags for a specified Amazon Resource Name
|
2242
2944
|
# (ARN) in AWS CodeCommit. For a list of valid resources in AWS
|
2243
|
-
# CodeCommit, see [CodeCommit Resources and Operations][1] in the AWS
|
2244
|
-
# CodeCommit User Guide
|
2945
|
+
# CodeCommit, see [CodeCommit Resources and Operations][1] in the<i> AWS
|
2946
|
+
# CodeCommit User Guide</i>.
|
2245
2947
|
#
|
2246
2948
|
#
|
2247
2949
|
#
|
@@ -2252,8 +2954,8 @@ module Aws::CodeCommit
|
|
2252
2954
|
# get information about tags, if any.
|
2253
2955
|
#
|
2254
2956
|
# @option params [String] :next_token
|
2255
|
-
# An enumeration token that when provided in a request, returns the
|
2256
|
-
# batch of the results.
|
2957
|
+
# An enumeration token that, when provided in a request, returns the
|
2958
|
+
# next batch of the results.
|
2257
2959
|
#
|
2258
2960
|
# @return [Types::ListTagsForResourceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2259
2961
|
#
|
@@ -2289,14 +2991,14 @@ module Aws::CodeCommit
|
|
2289
2991
|
#
|
2290
2992
|
# @option params [required, String] :source_commit_specifier
|
2291
2993
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
2292
|
-
# identify a commit
|
2994
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
2293
2995
|
#
|
2294
2996
|
# @option params [required, String] :destination_commit_specifier
|
2295
2997
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
2296
|
-
# identify a commit
|
2998
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
2297
2999
|
#
|
2298
3000
|
# @option params [String] :target_branch
|
2299
|
-
# The branch where the merge
|
3001
|
+
# The branch where the merge is applied.
|
2300
3002
|
#
|
2301
3003
|
# @return [Types::MergeBranchesByFastForwardOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2302
3004
|
#
|
@@ -2333,35 +3035,35 @@ module Aws::CodeCommit
|
|
2333
3035
|
#
|
2334
3036
|
# @option params [required, String] :source_commit_specifier
|
2335
3037
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
2336
|
-
# identify a commit
|
3038
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
2337
3039
|
#
|
2338
3040
|
# @option params [required, String] :destination_commit_specifier
|
2339
3041
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
2340
|
-
# identify a commit
|
3042
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
2341
3043
|
#
|
2342
3044
|
# @option params [String] :target_branch
|
2343
|
-
# The branch where the merge
|
3045
|
+
# The branch where the merge is applied.
|
2344
3046
|
#
|
2345
3047
|
# @option params [String] :conflict_detail_level
|
2346
3048
|
# The level of conflict detail to use. If unspecified, the default
|
2347
|
-
# FILE\_LEVEL is used, which
|
2348
|
-
#
|
2349
|
-
#
|
2350
|
-
#
|
3049
|
+
# FILE\_LEVEL is used, which returns a not-mergeable result if the same
|
3050
|
+
# file has differences in both branches. If LINE\_LEVEL is specified, a
|
3051
|
+
# conflict is considered not mergeable if the same file in both branches
|
3052
|
+
# has differences on the same line.
|
2351
3053
|
#
|
2352
3054
|
# @option params [String] :conflict_resolution_strategy
|
2353
3055
|
# Specifies which branch to use when resolving conflicts, or whether to
|
2354
3056
|
# attempt automatically merging two versions of a file. The default is
|
2355
3057
|
# NONE, which requires any conflicts to be resolved manually before the
|
2356
|
-
# merge operation
|
3058
|
+
# merge operation is successful.
|
2357
3059
|
#
|
2358
3060
|
# @option params [String] :author_name
|
2359
|
-
# The name of the author who created the commit. This information
|
2360
|
-
#
|
3061
|
+
# The name of the author who created the commit. This information is
|
3062
|
+
# used as both the author and committer for the commit.
|
2361
3063
|
#
|
2362
3064
|
# @option params [String] :email
|
2363
3065
|
# The email address of the person merging the branches. This information
|
2364
|
-
#
|
3066
|
+
# is used in the commit information for the merge.
|
2365
3067
|
#
|
2366
3068
|
# @option params [String] :commit_message
|
2367
3069
|
# The commit message for the merge.
|
@@ -2369,12 +3071,12 @@ module Aws::CodeCommit
|
|
2369
3071
|
# @option params [Boolean] :keep_empty_folders
|
2370
3072
|
# If the commit contains deletions, whether to keep a folder or folder
|
2371
3073
|
# structure if the changes leave the folders empty. If this is specified
|
2372
|
-
# as true, a .gitkeep file
|
2373
|
-
#
|
3074
|
+
# as true, a .gitkeep file is created for empty folders. The default is
|
3075
|
+
# false.
|
2374
3076
|
#
|
2375
3077
|
# @option params [Types::ConflictResolution] :conflict_resolution
|
2376
|
-
#
|
2377
|
-
#
|
3078
|
+
# If AUTOMERGE is the conflict resolution strategy, a list of inputs to
|
3079
|
+
# use when resolving conflicts during a merge.
|
2378
3080
|
#
|
2379
3081
|
# @return [Types::MergeBranchesBySquashOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2380
3082
|
#
|
@@ -2438,48 +3140,47 @@ module Aws::CodeCommit
|
|
2438
3140
|
#
|
2439
3141
|
# @option params [required, String] :source_commit_specifier
|
2440
3142
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
2441
|
-
# identify a commit
|
3143
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
2442
3144
|
#
|
2443
3145
|
# @option params [required, String] :destination_commit_specifier
|
2444
3146
|
# The branch, tag, HEAD, or other fully qualified reference used to
|
2445
|
-
# identify a commit
|
3147
|
+
# identify a commit (for example, a branch name or a full commit ID).
|
2446
3148
|
#
|
2447
3149
|
# @option params [String] :target_branch
|
2448
|
-
# The branch where the merge
|
3150
|
+
# The branch where the merge is applied.
|
2449
3151
|
#
|
2450
3152
|
# @option params [String] :conflict_detail_level
|
2451
3153
|
# The level of conflict detail to use. If unspecified, the default
|
2452
|
-
# FILE\_LEVEL is used, which
|
2453
|
-
#
|
2454
|
-
#
|
2455
|
-
#
|
3154
|
+
# FILE\_LEVEL is used, which returns a not-mergeable result if the same
|
3155
|
+
# file has differences in both branches. If LINE\_LEVEL is specified, a
|
3156
|
+
# conflict is considered not mergeable if the same file in both branches
|
3157
|
+
# has differences on the same line.
|
2456
3158
|
#
|
2457
3159
|
# @option params [String] :conflict_resolution_strategy
|
2458
3160
|
# Specifies which branch to use when resolving conflicts, or whether to
|
2459
3161
|
# attempt automatically merging two versions of a file. The default is
|
2460
3162
|
# NONE, which requires any conflicts to be resolved manually before the
|
2461
|
-
# merge operation
|
3163
|
+
# merge operation is successful.
|
2462
3164
|
#
|
2463
3165
|
# @option params [String] :author_name
|
2464
|
-
# The name of the author who created the commit. This information
|
2465
|
-
#
|
3166
|
+
# The name of the author who created the commit. This information is
|
3167
|
+
# used as both the author and committer for the commit.
|
2466
3168
|
#
|
2467
3169
|
# @option params [String] :email
|
2468
3170
|
# The email address of the person merging the branches. This information
|
2469
|
-
#
|
3171
|
+
# is used in the commit information for the merge.
|
2470
3172
|
#
|
2471
3173
|
# @option params [String] :commit_message
|
2472
3174
|
# The commit message to include in the commit information for the merge.
|
2473
3175
|
#
|
2474
3176
|
# @option params [Boolean] :keep_empty_folders
|
2475
3177
|
# If the commit contains deletions, whether to keep a folder or folder
|
2476
|
-
# structure if the changes leave the folders empty. If
|
2477
|
-
#
|
2478
|
-
# default is false.
|
3178
|
+
# structure if the changes leave the folders empty. If true, a .gitkeep
|
3179
|
+
# file is created for empty folders. The default is false.
|
2479
3180
|
#
|
2480
3181
|
# @option params [Types::ConflictResolution] :conflict_resolution
|
2481
|
-
#
|
2482
|
-
#
|
3182
|
+
# If AUTOMERGE is the conflict resolution strategy, a list of inputs to
|
3183
|
+
# use when resolving conflicts during a merge.
|
2483
3184
|
#
|
2484
3185
|
# @return [Types::MergeBranchesByThreeWayOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2485
3186
|
#
|
@@ -2587,6 +3288,17 @@ module Aws::CodeCommit
|
|
2587
3288
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
|
2588
3289
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
|
2589
3290
|
# resp.pull_request.client_request_token #=> String
|
3291
|
+
# resp.pull_request.revision_id #=> String
|
3292
|
+
# resp.pull_request.approval_rules #=> Array
|
3293
|
+
# resp.pull_request.approval_rules[0].approval_rule_id #=> String
|
3294
|
+
# resp.pull_request.approval_rules[0].approval_rule_name #=> String
|
3295
|
+
# resp.pull_request.approval_rules[0].approval_rule_content #=> String
|
3296
|
+
# resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
|
3297
|
+
# resp.pull_request.approval_rules[0].last_modified_date #=> Time
|
3298
|
+
# resp.pull_request.approval_rules[0].creation_date #=> Time
|
3299
|
+
# resp.pull_request.approval_rules[0].last_modified_user #=> String
|
3300
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
|
3301
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
|
2590
3302
|
#
|
2591
3303
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByFastForward AWS API Documentation
|
2592
3304
|
#
|
@@ -2617,37 +3329,36 @@ module Aws::CodeCommit
|
|
2617
3329
|
#
|
2618
3330
|
# @option params [String] :conflict_detail_level
|
2619
3331
|
# The level of conflict detail to use. If unspecified, the default
|
2620
|
-
# FILE\_LEVEL is used, which
|
2621
|
-
#
|
2622
|
-
#
|
2623
|
-
#
|
3332
|
+
# FILE\_LEVEL is used, which returns a not-mergeable result if the same
|
3333
|
+
# file has differences in both branches. If LINE\_LEVEL is specified, a
|
3334
|
+
# conflict is considered not mergeable if the same file in both branches
|
3335
|
+
# has differences on the same line.
|
2624
3336
|
#
|
2625
3337
|
# @option params [String] :conflict_resolution_strategy
|
2626
3338
|
# Specifies which branch to use when resolving conflicts, or whether to
|
2627
3339
|
# attempt automatically merging two versions of a file. The default is
|
2628
3340
|
# NONE, which requires any conflicts to be resolved manually before the
|
2629
|
-
# merge operation
|
3341
|
+
# merge operation is successful.
|
2630
3342
|
#
|
2631
3343
|
# @option params [String] :commit_message
|
2632
3344
|
# The commit message to include in the commit information for the merge.
|
2633
3345
|
#
|
2634
3346
|
# @option params [String] :author_name
|
2635
|
-
# The name of the author who created the commit. This information
|
2636
|
-
#
|
3347
|
+
# The name of the author who created the commit. This information is
|
3348
|
+
# used as both the author and committer for the commit.
|
2637
3349
|
#
|
2638
3350
|
# @option params [String] :email
|
2639
3351
|
# The email address of the person merging the branches. This information
|
2640
|
-
#
|
3352
|
+
# is used in the commit information for the merge.
|
2641
3353
|
#
|
2642
3354
|
# @option params [Boolean] :keep_empty_folders
|
2643
3355
|
# If the commit contains deletions, whether to keep a folder or folder
|
2644
|
-
# structure if the changes leave the folders empty. If
|
2645
|
-
#
|
2646
|
-
# default is false.
|
3356
|
+
# structure if the changes leave the folders empty. If true, a .gitkeep
|
3357
|
+
# file is created for empty folders. The default is false.
|
2647
3358
|
#
|
2648
3359
|
# @option params [Types::ConflictResolution] :conflict_resolution
|
2649
|
-
#
|
2650
|
-
#
|
3360
|
+
# If AUTOMERGE is the conflict resolution strategy, a list of inputs to
|
3361
|
+
# use when resolving conflicts during a merge.
|
2651
3362
|
#
|
2652
3363
|
# @return [Types::MergePullRequestBySquashOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2653
3364
|
#
|
@@ -2709,6 +3420,17 @@ module Aws::CodeCommit
|
|
2709
3420
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
|
2710
3421
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
|
2711
3422
|
# resp.pull_request.client_request_token #=> String
|
3423
|
+
# resp.pull_request.revision_id #=> String
|
3424
|
+
# resp.pull_request.approval_rules #=> Array
|
3425
|
+
# resp.pull_request.approval_rules[0].approval_rule_id #=> String
|
3426
|
+
# resp.pull_request.approval_rules[0].approval_rule_name #=> String
|
3427
|
+
# resp.pull_request.approval_rules[0].approval_rule_content #=> String
|
3428
|
+
# resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
|
3429
|
+
# resp.pull_request.approval_rules[0].last_modified_date #=> Time
|
3430
|
+
# resp.pull_request.approval_rules[0].creation_date #=> Time
|
3431
|
+
# resp.pull_request.approval_rules[0].last_modified_user #=> String
|
3432
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
|
3433
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
|
2712
3434
|
#
|
2713
3435
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestBySquash AWS API Documentation
|
2714
3436
|
#
|
@@ -2739,37 +3461,36 @@ module Aws::CodeCommit
|
|
2739
3461
|
#
|
2740
3462
|
# @option params [String] :conflict_detail_level
|
2741
3463
|
# The level of conflict detail to use. If unspecified, the default
|
2742
|
-
# FILE\_LEVEL is used, which
|
2743
|
-
#
|
2744
|
-
#
|
2745
|
-
#
|
3464
|
+
# FILE\_LEVEL is used, which returns a not-mergeable result if the same
|
3465
|
+
# file has differences in both branches. If LINE\_LEVEL is specified, a
|
3466
|
+
# conflict is considered not mergeable if the same file in both branches
|
3467
|
+
# has differences on the same line.
|
2746
3468
|
#
|
2747
3469
|
# @option params [String] :conflict_resolution_strategy
|
2748
3470
|
# Specifies which branch to use when resolving conflicts, or whether to
|
2749
3471
|
# attempt automatically merging two versions of a file. The default is
|
2750
3472
|
# NONE, which requires any conflicts to be resolved manually before the
|
2751
|
-
# merge operation
|
3473
|
+
# merge operation is successful.
|
2752
3474
|
#
|
2753
3475
|
# @option params [String] :commit_message
|
2754
3476
|
# The commit message to include in the commit information for the merge.
|
2755
3477
|
#
|
2756
3478
|
# @option params [String] :author_name
|
2757
|
-
# The name of the author who created the commit. This information
|
2758
|
-
#
|
3479
|
+
# The name of the author who created the commit. This information is
|
3480
|
+
# used as both the author and committer for the commit.
|
2759
3481
|
#
|
2760
3482
|
# @option params [String] :email
|
2761
3483
|
# The email address of the person merging the branches. This information
|
2762
|
-
#
|
3484
|
+
# is used in the commit information for the merge.
|
2763
3485
|
#
|
2764
3486
|
# @option params [Boolean] :keep_empty_folders
|
2765
3487
|
# If the commit contains deletions, whether to keep a folder or folder
|
2766
|
-
# structure if the changes leave the folders empty. If
|
2767
|
-
#
|
2768
|
-
# default is false.
|
3488
|
+
# structure if the changes leave the folders empty. If true, a .gitkeep
|
3489
|
+
# file is created for empty folders. The default is false.
|
2769
3490
|
#
|
2770
3491
|
# @option params [Types::ConflictResolution] :conflict_resolution
|
2771
|
-
#
|
2772
|
-
#
|
3492
|
+
# If AUTOMERGE is the conflict resolution strategy, a list of inputs to
|
3493
|
+
# use when resolving conflicts during a merge.
|
2773
3494
|
#
|
2774
3495
|
# @return [Types::MergePullRequestByThreeWayOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2775
3496
|
#
|
@@ -2831,6 +3552,17 @@ module Aws::CodeCommit
|
|
2831
3552
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
|
2832
3553
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
|
2833
3554
|
# resp.pull_request.client_request_token #=> String
|
3555
|
+
# resp.pull_request.revision_id #=> String
|
3556
|
+
# resp.pull_request.approval_rules #=> Array
|
3557
|
+
# resp.pull_request.approval_rules[0].approval_rule_id #=> String
|
3558
|
+
# resp.pull_request.approval_rules[0].approval_rule_name #=> String
|
3559
|
+
# resp.pull_request.approval_rules[0].approval_rule_content #=> String
|
3560
|
+
# resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
|
3561
|
+
# resp.pull_request.approval_rules[0].last_modified_date #=> Time
|
3562
|
+
# resp.pull_request.approval_rules[0].creation_date #=> Time
|
3563
|
+
# resp.pull_request.approval_rules[0].last_modified_user #=> String
|
3564
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
|
3565
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
|
2834
3566
|
#
|
2835
3567
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByThreeWay AWS API Documentation
|
2836
3568
|
#
|
@@ -2841,6 +3573,44 @@ module Aws::CodeCommit
|
|
2841
3573
|
req.send_request(options)
|
2842
3574
|
end
|
2843
3575
|
|
3576
|
+
# Sets aside (overrides) all approval rule requirements for a specified
|
3577
|
+
# pull request.
|
3578
|
+
#
|
3579
|
+
# @option params [required, String] :pull_request_id
|
3580
|
+
# The system-generated ID of the pull request for which you want to
|
3581
|
+
# override all approval rule requirements. To get this information, use
|
3582
|
+
# GetPullRequest.
|
3583
|
+
#
|
3584
|
+
# @option params [required, String] :revision_id
|
3585
|
+
# The system-generated ID of the most recent revision of the pull
|
3586
|
+
# request. You cannot override approval rules for anything but the most
|
3587
|
+
# recent revision of a pull request. To get the revision ID, use
|
3588
|
+
# GetPullRequest.
|
3589
|
+
#
|
3590
|
+
# @option params [required, String] :override_status
|
3591
|
+
# Whether you want to set aside approval rule requirements for the pull
|
3592
|
+
# request (OVERRIDE) or revoke a previous override and apply approval
|
3593
|
+
# rule requirements (REVOKE). REVOKE status is not stored.
|
3594
|
+
#
|
3595
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3596
|
+
#
|
3597
|
+
# @example Request syntax with placeholder values
|
3598
|
+
#
|
3599
|
+
# resp = client.override_pull_request_approval_rules({
|
3600
|
+
# pull_request_id: "PullRequestId", # required
|
3601
|
+
# revision_id: "RevisionId", # required
|
3602
|
+
# override_status: "OVERRIDE", # required, accepts OVERRIDE, REVOKE
|
3603
|
+
# })
|
3604
|
+
#
|
3605
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/OverridePullRequestApprovalRules AWS API Documentation
|
3606
|
+
#
|
3607
|
+
# @overload override_pull_request_approval_rules(params = {})
|
3608
|
+
# @param [Hash] params ({})
|
3609
|
+
def override_pull_request_approval_rules(params = {}, options = {})
|
3610
|
+
req = build_request(:override_pull_request_approval_rules, params)
|
3611
|
+
req.send_request(options)
|
3612
|
+
end
|
3613
|
+
|
2844
3614
|
# Posts a comment on the comparison between two commits.
|
2845
3615
|
#
|
2846
3616
|
# @option params [required, String] :repository_name
|
@@ -2849,16 +3619,12 @@ module Aws::CodeCommit
|
|
2849
3619
|
#
|
2850
3620
|
# @option params [String] :before_commit_id
|
2851
3621
|
# To establish the directionality of the comparison, the full commit ID
|
2852
|
-
# of the
|
2853
|
-
#
|
2854
|
-
# <note markdown="1"> This is required for commenting on any commit unless that commit is
|
2855
|
-
# the initial commit.
|
2856
|
-
#
|
2857
|
-
# </note>
|
3622
|
+
# of the before commit. Required for commenting on any commit unless
|
3623
|
+
# that commit is the initial commit.
|
2858
3624
|
#
|
2859
3625
|
# @option params [required, String] :after_commit_id
|
2860
3626
|
# To establish the directionality of the comparison, the full commit ID
|
2861
|
-
# of the
|
3627
|
+
# of the after commit.
|
2862
3628
|
#
|
2863
3629
|
# @option params [Types::Location] :location
|
2864
3630
|
# The location of the comparison where you want to comment.
|
@@ -2867,11 +3633,11 @@ module Aws::CodeCommit
|
|
2867
3633
|
# The content of the comment you want to make.
|
2868
3634
|
#
|
2869
3635
|
# @option params [String] :client_request_token
|
2870
|
-
# A unique, client-generated idempotency token that when provided in a
|
3636
|
+
# A unique, client-generated idempotency token that, when provided in a
|
2871
3637
|
# request, ensures the request cannot be repeated with a changed
|
2872
3638
|
# parameter. If a request is received with the same parameters and a
|
2873
|
-
# token is included, the request
|
2874
|
-
#
|
3639
|
+
# token is included, the request returns information about the initial
|
3640
|
+
# request that used that token.
|
2875
3641
|
#
|
2876
3642
|
# **A suitable default value is auto-generated.** You should normally
|
2877
3643
|
# not need to pass this option.**
|
@@ -2950,19 +3716,19 @@ module Aws::CodeCommit
|
|
2950
3716
|
#
|
2951
3717
|
# @option params [Types::Location] :location
|
2952
3718
|
# The location of the change where you want to post your comment. If no
|
2953
|
-
# location is provided, the comment
|
2954
|
-
#
|
2955
|
-
#
|
3719
|
+
# location is provided, the comment is posted as a general comment on
|
3720
|
+
# the pull request difference between the before commit ID and the after
|
3721
|
+
# commit ID.
|
2956
3722
|
#
|
2957
3723
|
# @option params [required, String] :content
|
2958
3724
|
# The content of your comment on the change.
|
2959
3725
|
#
|
2960
3726
|
# @option params [String] :client_request_token
|
2961
|
-
# A unique, client-generated idempotency token that when provided in a
|
3727
|
+
# A unique, client-generated idempotency token that, when provided in a
|
2962
3728
|
# request, ensures the request cannot be repeated with a changed
|
2963
3729
|
# parameter. If a request is received with the same parameters and a
|
2964
|
-
# token is included, the request
|
2965
|
-
#
|
3730
|
+
# token is included, the request returns information about the initial
|
3731
|
+
# request that used that token.
|
2966
3732
|
#
|
2967
3733
|
# **A suitable default value is auto-generated.** You should normally
|
2968
3734
|
# not need to pass this option.**
|
@@ -3032,11 +3798,11 @@ module Aws::CodeCommit
|
|
3032
3798
|
# GetCommentsForPullRequest.
|
3033
3799
|
#
|
3034
3800
|
# @option params [String] :client_request_token
|
3035
|
-
# A unique, client-generated idempotency token that when provided in a
|
3801
|
+
# A unique, client-generated idempotency token that, when provided in a
|
3036
3802
|
# request, ensures the request cannot be repeated with a changed
|
3037
3803
|
# parameter. If a request is received with the same parameters and a
|
3038
|
-
# token is included, the request
|
3039
|
-
#
|
3804
|
+
# token is included, the request returns information about the initial
|
3805
|
+
# request that used that token.
|
3040
3806
|
#
|
3041
3807
|
# **A suitable default value is auto-generated.** You should normally
|
3042
3808
|
# not need to pass this option.**
|
@@ -3084,7 +3850,7 @@ module Aws::CodeCommit
|
|
3084
3850
|
#
|
3085
3851
|
# @option params [required, String] :branch_name
|
3086
3852
|
# The name of the branch where you want to add or update the file. If
|
3087
|
-
# this is an empty repository, this branch
|
3853
|
+
# this is an empty repository, this branch is created.
|
3088
3854
|
#
|
3089
3855
|
# @option params [required, String, IO] :file_content
|
3090
3856
|
# The content of the file, in binary object format.
|
@@ -3093,14 +3859,14 @@ module Aws::CodeCommit
|
|
3093
3859
|
# The name of the file you want to add or update, including the relative
|
3094
3860
|
# path to the file in the repository.
|
3095
3861
|
#
|
3096
|
-
# <note markdown="1"> If the path does not currently exist in the repository, the path
|
3097
|
-
#
|
3862
|
+
# <note markdown="1"> If the path does not currently exist in the repository, the path is
|
3863
|
+
# created as part of adding the file.
|
3098
3864
|
#
|
3099
3865
|
# </note>
|
3100
3866
|
#
|
3101
3867
|
# @option params [String] :file_mode
|
3102
3868
|
# The file mode permissions of the blob. Valid file mode permissions are
|
3103
|
-
# listed
|
3869
|
+
# listed here.
|
3104
3870
|
#
|
3105
3871
|
# @option params [String] :parent_commit_id
|
3106
3872
|
# The full commit ID of the head commit in the branch where you want to
|
@@ -3109,18 +3875,18 @@ module Aws::CodeCommit
|
|
3109
3875
|
# required.
|
3110
3876
|
#
|
3111
3877
|
# The commit ID must match the ID of the head commit at the time of the
|
3112
|
-
# operation,
|
3878
|
+
# operation. Otherwise, an error occurs, and the file is not added or
|
3113
3879
|
# updated.
|
3114
3880
|
#
|
3115
3881
|
# @option params [String] :commit_message
|
3116
|
-
# A message about why this file was added or updated.
|
3117
|
-
#
|
3118
|
-
# useful
|
3882
|
+
# A message about why this file was added or updated. Although it is
|
3883
|
+
# optional, a message makes the commit history for your repository more
|
3884
|
+
# useful.
|
3119
3885
|
#
|
3120
3886
|
# @option params [String] :name
|
3121
|
-
# The name of the person adding or updating the file.
|
3122
|
-
#
|
3123
|
-
#
|
3887
|
+
# The name of the person adding or updating the file. Although it is
|
3888
|
+
# optional, a name makes the commit history for your repository more
|
3889
|
+
# useful.
|
3124
3890
|
#
|
3125
3891
|
# @option params [String] :email
|
3126
3892
|
# An email address for the person adding or updating the file.
|
@@ -3160,8 +3926,8 @@ module Aws::CodeCommit
|
|
3160
3926
|
req.send_request(options)
|
3161
3927
|
end
|
3162
3928
|
|
3163
|
-
# Replaces all triggers for a repository.
|
3164
|
-
#
|
3929
|
+
# Replaces all triggers for a repository. Used to create or delete
|
3930
|
+
# triggers.
|
3165
3931
|
#
|
3166
3932
|
# @option params [required, String] :repository_name
|
3167
3933
|
# The name of the repository where you want to create or update the
|
@@ -3204,7 +3970,7 @@ module Aws::CodeCommit
|
|
3204
3970
|
|
3205
3971
|
# Adds or updates tags for a resource in AWS CodeCommit. For a list of
|
3206
3972
|
# valid resources in AWS CodeCommit, see [CodeCommit Resources and
|
3207
|
-
# Operations][1] in the AWS CodeCommit User Guide
|
3973
|
+
# Operations][1] in the *AWS CodeCommit User Guide*.
|
3208
3974
|
#
|
3209
3975
|
#
|
3210
3976
|
#
|
@@ -3239,8 +4005,8 @@ module Aws::CodeCommit
|
|
3239
4005
|
|
3240
4006
|
# Tests the functionality of repository triggers by sending information
|
3241
4007
|
# to the trigger target. If real data is available in the repository,
|
3242
|
-
# the test
|
3243
|
-
# sample data
|
4008
|
+
# the test sends data from the last commit. If no data is available,
|
4009
|
+
# sample data is generated.
|
3244
4010
|
#
|
3245
4011
|
# @option params [required, String] :repository_name
|
3246
4012
|
# The name of the repository in which to test the triggers.
|
@@ -3287,7 +4053,7 @@ module Aws::CodeCommit
|
|
3287
4053
|
|
3288
4054
|
# Removes tags for a resource in AWS CodeCommit. For a list of valid
|
3289
4055
|
# resources in AWS CodeCommit, see [CodeCommit Resources and
|
3290
|
-
# Operations][1] in the AWS CodeCommit User Guide
|
4056
|
+
# Operations][1] in the *AWS CodeCommit User Guide*.
|
3291
4057
|
#
|
3292
4058
|
#
|
3293
4059
|
#
|
@@ -3318,6 +4084,132 @@ module Aws::CodeCommit
|
|
3318
4084
|
req.send_request(options)
|
3319
4085
|
end
|
3320
4086
|
|
4087
|
+
# Updates the content of an approval rule template. You can change the
|
4088
|
+
# number of required approvals, the membership of the approval rule, and
|
4089
|
+
# whether an approval pool is defined.
|
4090
|
+
#
|
4091
|
+
# @option params [required, String] :approval_rule_template_name
|
4092
|
+
# The name of the approval rule template where you want to update the
|
4093
|
+
# content of the rule.
|
4094
|
+
#
|
4095
|
+
# @option params [required, String] :new_rule_content
|
4096
|
+
# The content that replaces the existing content of the rule. Content
|
4097
|
+
# statements must be complete. You cannot provide only the changes.
|
4098
|
+
#
|
4099
|
+
# @option params [String] :existing_rule_content_sha_256
|
4100
|
+
# The SHA-256 hash signature for the content of the approval rule. You
|
4101
|
+
# can retrieve this information by using GetPullRequest.
|
4102
|
+
#
|
4103
|
+
# @return [Types::UpdateApprovalRuleTemplateContentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4104
|
+
#
|
4105
|
+
# * {Types::UpdateApprovalRuleTemplateContentOutput#approval_rule_template #approval_rule_template} => Types::ApprovalRuleTemplate
|
4106
|
+
#
|
4107
|
+
# @example Request syntax with placeholder values
|
4108
|
+
#
|
4109
|
+
# resp = client.update_approval_rule_template_content({
|
4110
|
+
# approval_rule_template_name: "ApprovalRuleTemplateName", # required
|
4111
|
+
# new_rule_content: "ApprovalRuleTemplateContent", # required
|
4112
|
+
# existing_rule_content_sha_256: "RuleContentSha256",
|
4113
|
+
# })
|
4114
|
+
#
|
4115
|
+
# @example Response structure
|
4116
|
+
#
|
4117
|
+
# resp.approval_rule_template.approval_rule_template_id #=> String
|
4118
|
+
# resp.approval_rule_template.approval_rule_template_name #=> String
|
4119
|
+
# resp.approval_rule_template.approval_rule_template_description #=> String
|
4120
|
+
# resp.approval_rule_template.approval_rule_template_content #=> String
|
4121
|
+
# resp.approval_rule_template.rule_content_sha_256 #=> String
|
4122
|
+
# resp.approval_rule_template.last_modified_date #=> Time
|
4123
|
+
# resp.approval_rule_template.creation_date #=> Time
|
4124
|
+
# resp.approval_rule_template.last_modified_user #=> String
|
4125
|
+
#
|
4126
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateContent AWS API Documentation
|
4127
|
+
#
|
4128
|
+
# @overload update_approval_rule_template_content(params = {})
|
4129
|
+
# @param [Hash] params ({})
|
4130
|
+
def update_approval_rule_template_content(params = {}, options = {})
|
4131
|
+
req = build_request(:update_approval_rule_template_content, params)
|
4132
|
+
req.send_request(options)
|
4133
|
+
end
|
4134
|
+
|
4135
|
+
# Updates the description for a specified approval rule template.
|
4136
|
+
#
|
4137
|
+
# @option params [required, String] :approval_rule_template_name
|
4138
|
+
# The name of the template for which you want to update the description.
|
4139
|
+
#
|
4140
|
+
# @option params [required, String] :approval_rule_template_description
|
4141
|
+
# The updated description of the approval rule template.
|
4142
|
+
#
|
4143
|
+
# @return [Types::UpdateApprovalRuleTemplateDescriptionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4144
|
+
#
|
4145
|
+
# * {Types::UpdateApprovalRuleTemplateDescriptionOutput#approval_rule_template #approval_rule_template} => Types::ApprovalRuleTemplate
|
4146
|
+
#
|
4147
|
+
# @example Request syntax with placeholder values
|
4148
|
+
#
|
4149
|
+
# resp = client.update_approval_rule_template_description({
|
4150
|
+
# approval_rule_template_name: "ApprovalRuleTemplateName", # required
|
4151
|
+
# approval_rule_template_description: "ApprovalRuleTemplateDescription", # required
|
4152
|
+
# })
|
4153
|
+
#
|
4154
|
+
# @example Response structure
|
4155
|
+
#
|
4156
|
+
# resp.approval_rule_template.approval_rule_template_id #=> String
|
4157
|
+
# resp.approval_rule_template.approval_rule_template_name #=> String
|
4158
|
+
# resp.approval_rule_template.approval_rule_template_description #=> String
|
4159
|
+
# resp.approval_rule_template.approval_rule_template_content #=> String
|
4160
|
+
# resp.approval_rule_template.rule_content_sha_256 #=> String
|
4161
|
+
# resp.approval_rule_template.last_modified_date #=> Time
|
4162
|
+
# resp.approval_rule_template.creation_date #=> Time
|
4163
|
+
# resp.approval_rule_template.last_modified_user #=> String
|
4164
|
+
#
|
4165
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateDescription AWS API Documentation
|
4166
|
+
#
|
4167
|
+
# @overload update_approval_rule_template_description(params = {})
|
4168
|
+
# @param [Hash] params ({})
|
4169
|
+
def update_approval_rule_template_description(params = {}, options = {})
|
4170
|
+
req = build_request(:update_approval_rule_template_description, params)
|
4171
|
+
req.send_request(options)
|
4172
|
+
end
|
4173
|
+
|
4174
|
+
# Updates the name of a specified approval rule template.
|
4175
|
+
#
|
4176
|
+
# @option params [required, String] :old_approval_rule_template_name
|
4177
|
+
# The current name of the approval rule template.
|
4178
|
+
#
|
4179
|
+
# @option params [required, String] :new_approval_rule_template_name
|
4180
|
+
# The new name you want to apply to the approval rule template.
|
4181
|
+
#
|
4182
|
+
# @return [Types::UpdateApprovalRuleTemplateNameOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4183
|
+
#
|
4184
|
+
# * {Types::UpdateApprovalRuleTemplateNameOutput#approval_rule_template #approval_rule_template} => Types::ApprovalRuleTemplate
|
4185
|
+
#
|
4186
|
+
# @example Request syntax with placeholder values
|
4187
|
+
#
|
4188
|
+
# resp = client.update_approval_rule_template_name({
|
4189
|
+
# old_approval_rule_template_name: "ApprovalRuleTemplateName", # required
|
4190
|
+
# new_approval_rule_template_name: "ApprovalRuleTemplateName", # required
|
4191
|
+
# })
|
4192
|
+
#
|
4193
|
+
# @example Response structure
|
4194
|
+
#
|
4195
|
+
# resp.approval_rule_template.approval_rule_template_id #=> String
|
4196
|
+
# resp.approval_rule_template.approval_rule_template_name #=> String
|
4197
|
+
# resp.approval_rule_template.approval_rule_template_description #=> String
|
4198
|
+
# resp.approval_rule_template.approval_rule_template_content #=> String
|
4199
|
+
# resp.approval_rule_template.rule_content_sha_256 #=> String
|
4200
|
+
# resp.approval_rule_template.last_modified_date #=> Time
|
4201
|
+
# resp.approval_rule_template.creation_date #=> Time
|
4202
|
+
# resp.approval_rule_template.last_modified_user #=> String
|
4203
|
+
#
|
4204
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateName AWS API Documentation
|
4205
|
+
#
|
4206
|
+
# @overload update_approval_rule_template_name(params = {})
|
4207
|
+
# @param [Hash] params ({})
|
4208
|
+
def update_approval_rule_template_name(params = {}, options = {})
|
4209
|
+
req = build_request(:update_approval_rule_template_name, params)
|
4210
|
+
req.send_request(options)
|
4211
|
+
end
|
4212
|
+
|
3321
4213
|
# Replaces the contents of a comment.
|
3322
4214
|
#
|
3323
4215
|
# @option params [required, String] :comment_id
|
@@ -3325,8 +4217,7 @@ module Aws::CodeCommit
|
|
3325
4217
|
# ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
|
3326
4218
|
#
|
3327
4219
|
# @option params [required, String] :content
|
3328
|
-
# The updated content
|
3329
|
-
# content of the comment.
|
4220
|
+
# The updated content to replace the existing content of the comment.
|
3330
4221
|
#
|
3331
4222
|
# @return [Types::UpdateCommentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3332
4223
|
#
|
@@ -3391,6 +4282,123 @@ module Aws::CodeCommit
|
|
3391
4282
|
req.send_request(options)
|
3392
4283
|
end
|
3393
4284
|
|
4285
|
+
# Updates the structure of an approval rule created specifically for a
|
4286
|
+
# pull request. For example, you can change the number of required
|
4287
|
+
# approvers and the approval pool for approvers.
|
4288
|
+
#
|
4289
|
+
# @option params [required, String] :pull_request_id
|
4290
|
+
# The system-generated ID of the pull request.
|
4291
|
+
#
|
4292
|
+
# @option params [required, String] :approval_rule_name
|
4293
|
+
# The name of the approval rule you want to update.
|
4294
|
+
#
|
4295
|
+
# @option params [String] :existing_rule_content_sha_256
|
4296
|
+
# The SHA-256 hash signature for the content of the approval rule. You
|
4297
|
+
# can retrieve this information by using GetPullRequest.
|
4298
|
+
#
|
4299
|
+
# @option params [required, String] :new_rule_content
|
4300
|
+
# The updated content for the approval rule.
|
4301
|
+
#
|
4302
|
+
# <note markdown="1"> When you update the content of the approval rule, you can specify
|
4303
|
+
# approvers in an approval pool in one of two ways:
|
4304
|
+
#
|
4305
|
+
# * **CodeCommitApprovers**\: This option only requires an AWS account
|
4306
|
+
# and a resource. It can be used for both IAM users and federated
|
4307
|
+
# access users whose name matches the provided resource name. This is
|
4308
|
+
# a very powerful option that offers a great deal of flexibility. For
|
4309
|
+
# example, if you specify the AWS account *123456789012* and
|
4310
|
+
# *Mary\_Major*, all of the following are counted as approvals coming
|
4311
|
+
# from that user:
|
4312
|
+
#
|
4313
|
+
# * An IAM user in the account
|
4314
|
+
# (arn:aws:iam::*123456789012*\:user/*Mary\_Major*)
|
4315
|
+
#
|
4316
|
+
# * A federated user identified in IAM as Mary\_Major
|
4317
|
+
# (arn:aws:sts::*123456789012*\:federated-user/*Mary\_Major*)
|
4318
|
+
#
|
4319
|
+
# This option does not recognize an active session of someone assuming
|
4320
|
+
# the role of CodeCommitReview with a role session name of
|
4321
|
+
# *Mary\_Major*
|
4322
|
+
# (arn:aws:sts::*123456789012*\:assumed-role/CodeCommitReview/*Mary\_Major*)
|
4323
|
+
# unless you include a wildcard (*Mary\_Major).
|
4324
|
+
#
|
4325
|
+
# * **Fully qualified ARN**\: This option allows you to specify the
|
4326
|
+
# fully qualified Amazon Resource Name (ARN) of the IAM user or role.
|
4327
|
+
#
|
4328
|
+
# For more information about IAM ARNs, wildcards, and formats, see [IAM
|
4329
|
+
# Identifiers][1] in the *IAM User Guide*.
|
4330
|
+
#
|
4331
|
+
# </note>
|
4332
|
+
#
|
4333
|
+
#
|
4334
|
+
#
|
4335
|
+
# [1]: https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html
|
4336
|
+
#
|
4337
|
+
# @return [Types::UpdatePullRequestApprovalRuleContentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4338
|
+
#
|
4339
|
+
# * {Types::UpdatePullRequestApprovalRuleContentOutput#approval_rule #approval_rule} => Types::ApprovalRule
|
4340
|
+
#
|
4341
|
+
# @example Request syntax with placeholder values
|
4342
|
+
#
|
4343
|
+
# resp = client.update_pull_request_approval_rule_content({
|
4344
|
+
# pull_request_id: "PullRequestId", # required
|
4345
|
+
# approval_rule_name: "ApprovalRuleName", # required
|
4346
|
+
# existing_rule_content_sha_256: "RuleContentSha256",
|
4347
|
+
# new_rule_content: "ApprovalRuleContent", # required
|
4348
|
+
# })
|
4349
|
+
#
|
4350
|
+
# @example Response structure
|
4351
|
+
#
|
4352
|
+
# resp.approval_rule.approval_rule_id #=> String
|
4353
|
+
# resp.approval_rule.approval_rule_name #=> String
|
4354
|
+
# resp.approval_rule.approval_rule_content #=> String
|
4355
|
+
# resp.approval_rule.rule_content_sha_256 #=> String
|
4356
|
+
# resp.approval_rule.last_modified_date #=> Time
|
4357
|
+
# resp.approval_rule.creation_date #=> Time
|
4358
|
+
# resp.approval_rule.last_modified_user #=> String
|
4359
|
+
# resp.approval_rule.origin_approval_rule_template.approval_rule_template_id #=> String
|
4360
|
+
# resp.approval_rule.origin_approval_rule_template.approval_rule_template_name #=> String
|
4361
|
+
#
|
4362
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestApprovalRuleContent AWS API Documentation
|
4363
|
+
#
|
4364
|
+
# @overload update_pull_request_approval_rule_content(params = {})
|
4365
|
+
# @param [Hash] params ({})
|
4366
|
+
def update_pull_request_approval_rule_content(params = {}, options = {})
|
4367
|
+
req = build_request(:update_pull_request_approval_rule_content, params)
|
4368
|
+
req.send_request(options)
|
4369
|
+
end
|
4370
|
+
|
4371
|
+
# Updates the state of a user's approval on a pull request. The user is
|
4372
|
+
# derived from the signed-in account when the request is made.
|
4373
|
+
#
|
4374
|
+
# @option params [required, String] :pull_request_id
|
4375
|
+
# The system-generated ID of the pull request.
|
4376
|
+
#
|
4377
|
+
# @option params [required, String] :revision_id
|
4378
|
+
# The system-generated ID of the revision.
|
4379
|
+
#
|
4380
|
+
# @option params [required, String] :approval_state
|
4381
|
+
# The approval state to associate with the user on the pull request.
|
4382
|
+
#
|
4383
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4384
|
+
#
|
4385
|
+
# @example Request syntax with placeholder values
|
4386
|
+
#
|
4387
|
+
# resp = client.update_pull_request_approval_state({
|
4388
|
+
# pull_request_id: "PullRequestId", # required
|
4389
|
+
# revision_id: "RevisionId", # required
|
4390
|
+
# approval_state: "APPROVE", # required, accepts APPROVE, REVOKE
|
4391
|
+
# })
|
4392
|
+
#
|
4393
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestApprovalState AWS API Documentation
|
4394
|
+
#
|
4395
|
+
# @overload update_pull_request_approval_state(params = {})
|
4396
|
+
# @param [Hash] params ({})
|
4397
|
+
def update_pull_request_approval_state(params = {}, options = {})
|
4398
|
+
req = build_request(:update_pull_request_approval_state, params)
|
4399
|
+
req.send_request(options)
|
4400
|
+
end
|
4401
|
+
|
3394
4402
|
# Replaces the contents of the description of a pull request.
|
3395
4403
|
#
|
3396
4404
|
# @option params [required, String] :pull_request_id
|
@@ -3399,7 +4407,7 @@ module Aws::CodeCommit
|
|
3399
4407
|
#
|
3400
4408
|
# @option params [required, String] :description
|
3401
4409
|
# The updated content of the description for the pull request. This
|
3402
|
-
# content
|
4410
|
+
# content replaces the existing description.
|
3403
4411
|
#
|
3404
4412
|
# @return [Types::UpdatePullRequestDescriptionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3405
4413
|
#
|
@@ -3433,6 +4441,17 @@ module Aws::CodeCommit
|
|
3433
4441
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
|
3434
4442
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
|
3435
4443
|
# resp.pull_request.client_request_token #=> String
|
4444
|
+
# resp.pull_request.revision_id #=> String
|
4445
|
+
# resp.pull_request.approval_rules #=> Array
|
4446
|
+
# resp.pull_request.approval_rules[0].approval_rule_id #=> String
|
4447
|
+
# resp.pull_request.approval_rules[0].approval_rule_name #=> String
|
4448
|
+
# resp.pull_request.approval_rules[0].approval_rule_content #=> String
|
4449
|
+
# resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
|
4450
|
+
# resp.pull_request.approval_rules[0].last_modified_date #=> Time
|
4451
|
+
# resp.pull_request.approval_rules[0].creation_date #=> Time
|
4452
|
+
# resp.pull_request.approval_rules[0].last_modified_user #=> String
|
4453
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
|
4454
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
|
3436
4455
|
#
|
3437
4456
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestDescription AWS API Documentation
|
3438
4457
|
#
|
@@ -3452,7 +4471,7 @@ module Aws::CodeCommit
|
|
3452
4471
|
# @option params [required, String] :pull_request_status
|
3453
4472
|
# The status of the pull request. The only valid operations are to
|
3454
4473
|
# update the status from `OPEN` to `OPEN`, `OPEN` to `CLOSED` or from
|
3455
|
-
#
|
4474
|
+
# `CLOSED` to `CLOSED`.
|
3456
4475
|
#
|
3457
4476
|
# @return [Types::UpdatePullRequestStatusOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3458
4477
|
#
|
@@ -3486,6 +4505,17 @@ module Aws::CodeCommit
|
|
3486
4505
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
|
3487
4506
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
|
3488
4507
|
# resp.pull_request.client_request_token #=> String
|
4508
|
+
# resp.pull_request.revision_id #=> String
|
4509
|
+
# resp.pull_request.approval_rules #=> Array
|
4510
|
+
# resp.pull_request.approval_rules[0].approval_rule_id #=> String
|
4511
|
+
# resp.pull_request.approval_rules[0].approval_rule_name #=> String
|
4512
|
+
# resp.pull_request.approval_rules[0].approval_rule_content #=> String
|
4513
|
+
# resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
|
4514
|
+
# resp.pull_request.approval_rules[0].last_modified_date #=> Time
|
4515
|
+
# resp.pull_request.approval_rules[0].creation_date #=> Time
|
4516
|
+
# resp.pull_request.approval_rules[0].last_modified_user #=> String
|
4517
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
|
4518
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
|
3489
4519
|
#
|
3490
4520
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestStatus AWS API Documentation
|
3491
4521
|
#
|
@@ -3503,7 +4533,7 @@ module Aws::CodeCommit
|
|
3503
4533
|
# ListPullRequests.
|
3504
4534
|
#
|
3505
4535
|
# @option params [required, String] :title
|
3506
|
-
# The updated title of the pull request. This
|
4536
|
+
# The updated title of the pull request. This replaces the existing
|
3507
4537
|
# title.
|
3508
4538
|
#
|
3509
4539
|
# @return [Types::UpdatePullRequestTitleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -3538,6 +4568,17 @@ module Aws::CodeCommit
|
|
3538
4568
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
|
3539
4569
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
|
3540
4570
|
# resp.pull_request.client_request_token #=> String
|
4571
|
+
# resp.pull_request.revision_id #=> String
|
4572
|
+
# resp.pull_request.approval_rules #=> Array
|
4573
|
+
# resp.pull_request.approval_rules[0].approval_rule_id #=> String
|
4574
|
+
# resp.pull_request.approval_rules[0].approval_rule_name #=> String
|
4575
|
+
# resp.pull_request.approval_rules[0].approval_rule_content #=> String
|
4576
|
+
# resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
|
4577
|
+
# resp.pull_request.approval_rules[0].last_modified_date #=> Time
|
4578
|
+
# resp.pull_request.approval_rules[0].creation_date #=> Time
|
4579
|
+
# resp.pull_request.approval_rules[0].last_modified_user #=> String
|
4580
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
|
4581
|
+
# resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
|
3541
4582
|
#
|
3542
4583
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestTitle AWS API Documentation
|
3543
4584
|
#
|
@@ -3552,10 +4593,10 @@ module Aws::CodeCommit
|
|
3552
4593
|
#
|
3553
4594
|
# <note markdown="1"> The description field for a repository accepts all HTML characters and
|
3554
4595
|
# all valid Unicode characters. Applications that do not HTML-encode the
|
3555
|
-
# description and display it in a
|
4596
|
+
# description and display it in a webpage can expose users to
|
3556
4597
|
# potentially malicious code. Make sure that you HTML-encode the
|
3557
4598
|
# description field in any application that uses this API to display the
|
3558
|
-
# repository description on a
|
4599
|
+
# repository description on a webpage.
|
3559
4600
|
#
|
3560
4601
|
# </note>
|
3561
4602
|
#
|
@@ -3586,18 +4627,18 @@ module Aws::CodeCommit
|
|
3586
4627
|
end
|
3587
4628
|
|
3588
4629
|
# Renames a repository. The repository name must be unique across the
|
3589
|
-
# calling AWS account.
|
3590
|
-
#
|
3591
|
-
#
|
3592
|
-
#
|
3593
|
-
#
|
4630
|
+
# calling AWS account. Repository names are limited to 100 alphanumeric,
|
4631
|
+
# dash, and underscore characters, and cannot include certain
|
4632
|
+
# characters. The suffix .git is prohibited. For more information about
|
4633
|
+
# the limits on repository names, see [Limits][1] in the AWS CodeCommit
|
4634
|
+
# User Guide.
|
3594
4635
|
#
|
3595
4636
|
#
|
3596
4637
|
#
|
3597
4638
|
# [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
|
3598
4639
|
#
|
3599
4640
|
# @option params [required, String] :old_name
|
3600
|
-
# The
|
4641
|
+
# The current name of the repository.
|
3601
4642
|
#
|
3602
4643
|
# @option params [required, String] :new_name
|
3603
4644
|
# The new name for the repository.
|
@@ -3633,7 +4674,7 @@ module Aws::CodeCommit
|
|
3633
4674
|
params: params,
|
3634
4675
|
config: config)
|
3635
4676
|
context[:gem_name] = 'aws-sdk-codecommit'
|
3636
|
-
context[:gem_version] = '1.
|
4677
|
+
context[:gem_version] = '1.30.0'
|
3637
4678
|
Seahorse::Client::Request.new(handlers, context)
|
3638
4679
|
end
|
3639
4680
|
|