« blib/lib/Paws/CodeCommit/MergeBranchesBySquashOutput.pm
↑ Summary
blib/lib/Paws/CodeCommit/MergeBranchesByThreeWayOutput.pm »
| 1 | |||
| 2 | package Paws::CodeCommit::MergeBranchesByThreeWay; | ||
| 3 | use Moose; | ||
| 4 | has AuthorName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'authorName' ); | ||
| 5 | has CommitMessage => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'commitMessage' ); | ||
| 6 | has ConflictDetailLevel => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'conflictDetailLevel' ); | ||
| 7 | has ConflictResolution => (is => 'ro', isa => 'Paws::CodeCommit::ConflictResolution', traits => ['NameInRequest'], request_name => 'conflictResolution' ); | ||
| 8 | has ConflictResolutionStrategy => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'conflictResolutionStrategy' ); | ||
| 9 | has DestinationCommitSpecifier => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'destinationCommitSpecifier' , required => 1); | ||
| 10 | has Email => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'email' ); | ||
| 11 | has KeepEmptyFolders => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'keepEmptyFolders' ); | ||
| 12 | has RepositoryName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'repositoryName' , required => 1); | ||
| 13 | has SourceCommitSpecifier => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sourceCommitSpecifier' , required => 1); | ||
| 14 | has TargetBranch => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'targetBranch' ); | ||
| 15 | |||
| 16 | use MooseX::ClassAttribute; | ||
| 17 | |||
| 18 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'MergeBranchesByThreeWay'); | ||
| 19 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeCommit::MergeBranchesByThreeWayOutput'); | ||
| 20 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 21 | 1; | ||
| 22 | |||
| 23 | ### main pod documentation begin ### | ||
| 24 | |||
| 25 | =head1 NAME | ||
| 26 | |||
| 27 | Paws::CodeCommit::MergeBranchesByThreeWay - Arguments for method MergeBranchesByThreeWay on L<Paws::CodeCommit> | ||
| 28 | |||
| 29 | =head1 DESCRIPTION | ||
| 30 | |||
| 31 | This class represents the parameters used for calling the method MergeBranchesByThreeWay on the | ||
| 32 | L<AWS CodeCommit|Paws::CodeCommit> service. Use the attributes of this class | ||
| 33 | as arguments to method MergeBranchesByThreeWay. | ||
| 34 | |||
| 35 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to MergeBranchesByThreeWay. | ||
| 36 | |||
| 37 | =head1 SYNOPSIS | ||
| 38 | |||
| 39 | my $codecommit = Paws->service('CodeCommit'); | ||
| 40 | my $MergeBranchesByThreeWayOutput = $codecommit->MergeBranchesByThreeWay( | ||
| 41 | DestinationCommitSpecifier => 'MyCommitName', | ||
| 42 | RepositoryName => 'MyRepositoryName', | ||
| 43 | SourceCommitSpecifier => 'MyCommitName', | ||
| 44 | AuthorName => 'MyName', # OPTIONAL | ||
| 45 | CommitMessage => 'MyMessage', # OPTIONAL | ||
| 46 | ConflictDetailLevel => 'FILE_LEVEL', # OPTIONAL | ||
| 47 | ConflictResolution => { | ||
| 48 | DeleteFiles => [ | ||
| 49 | { | ||
| 50 | FilePath => 'MyPath', | ||
| 51 | |||
| 52 | }, | ||
| 53 | ... | ||
| 54 | ], # OPTIONAL | ||
| 55 | ReplaceContents => [ | ||
| 56 | { | ||
| 57 | FilePath => 'MyPath', | ||
| 58 | ReplacementType => 'KEEP_BASE' | ||
| 59 | , # values: KEEP_BASE, KEEP_SOURCE, KEEP_DESTINATION, USE_NEW_CONTENT | ||
| 60 | Content => 'BlobFileContent', # max: 6291456; OPTIONAL | ||
| 61 | FileMode => | ||
| 62 | 'EXECUTABLE', # values: EXECUTABLE, NORMAL, SYMLINK; OPTIONAL | ||
| 63 | }, | ||
| 64 | ... | ||
| 65 | ], # OPTIONAL | ||
| 66 | SetFileModes => [ | ||
| 67 | { | ||
| 68 | FileMode => | ||
| 69 | 'EXECUTABLE', # values: EXECUTABLE, NORMAL, SYMLINK; OPTIONAL | ||
| 70 | FilePath => 'MyPath', | ||
| 71 | |||
| 72 | }, | ||
| 73 | ... | ||
| 74 | ], # OPTIONAL | ||
| 75 | }, # OPTIONAL | ||
| 76 | ConflictResolutionStrategy => 'NONE', # OPTIONAL | ||
| 77 | Email => 'MyEmail', # OPTIONAL | ||
| 78 | KeepEmptyFolders => 1, # OPTIONAL | ||
| 79 | TargetBranch => 'MyBranchName', # OPTIONAL | ||
| 80 | ); | ||
| 81 | |||
| 82 | # Results: | ||
| 83 | my $CommitId = $MergeBranchesByThreeWayOutput->CommitId; | ||
| 84 | my $TreeId = $MergeBranchesByThreeWayOutput->TreeId; | ||
| 85 | |||
| 86 | # Returns a L<Paws::CodeCommit::MergeBranchesByThreeWayOutput> object. | ||
| 87 | |||
| 88 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 89 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codecommit/MergeBranchesByThreeWay> | ||
| 90 | |||
| 91 | =head1 ATTRIBUTES | ||
| 92 | |||
| 93 | |||
| 94 | =head2 AuthorName => Str | ||
| 95 | |||
| 96 | The name of the author who created the commit. This information is used | ||
| 97 | as both the author and committer for the commit. | ||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | =head2 CommitMessage => Str | ||
| 102 | |||
| 103 | The commit message to include in the commit information for the merge. | ||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | =head2 ConflictDetailLevel => Str | ||
| 108 | |||
| 109 | The level of conflict detail to use. If unspecified, the default | ||
| 110 | FILE_LEVEL is used, which returns a not-mergeable result if the same | ||
| 111 | file has differences in both branches. If LINE_LEVEL is specified, a | ||
| 112 | conflict is considered not mergeable if the same file in both branches | ||
| 113 | has differences on the same line. | ||
| 114 | |||
| 115 | Valid values are: C<"FILE_LEVEL">, C<"LINE_LEVEL"> | ||
| 116 | |||
| 117 | =head2 ConflictResolution => L<Paws::CodeCommit::ConflictResolution> | ||
| 118 | |||
| 119 | If AUTOMERGE is the conflict resolution strategy, a list of inputs to | ||
| 120 | use when resolving conflicts during a merge. | ||
| 121 | |||
| 122 | |||
| 123 | |||
| 124 | =head2 ConflictResolutionStrategy => Str | ||
| 125 | |||
| 126 | Specifies which branch to use when resolving conflicts, or whether to | ||
| 127 | attempt automatically merging two versions of a file. The default is | ||
| 128 | NONE, which requires any conflicts to be resolved manually before the | ||
| 129 | merge operation is successful. | ||
| 130 | |||
| 131 | Valid values are: C<"NONE">, C<"ACCEPT_SOURCE">, C<"ACCEPT_DESTINATION">, C<"AUTOMERGE"> | ||
| 132 | |||
| 133 | =head2 B<REQUIRED> DestinationCommitSpecifier => Str | ||
| 134 | |||
| 135 | The branch, tag, HEAD, or other fully qualified reference used to | ||
| 136 | identify a commit (for example, a branch name or a full commit ID). | ||
| 137 | |||
| 138 | |||
| 139 | |||
| 140 | =head2 Email => Str | ||
| 141 | |||
| 142 | The email address of the person merging the branches. This information | ||
| 143 | is used in the commit information for the merge. | ||
| 144 | |||
| 145 | |||
| 146 | |||
| 147 | =head2 KeepEmptyFolders => Bool | ||
| 148 | |||
| 149 | If the commit contains deletions, whether to keep a folder or folder | ||
| 150 | structure if the changes leave the folders empty. If true, a .gitkeep | ||
| 151 | file is created for empty folders. The default is false. | ||
| 152 | |||
| 153 | |||
| 154 | |||
| 155 | =head2 B<REQUIRED> RepositoryName => Str | ||
| 156 | |||
| 157 | The name of the repository where you want to merge two branches. | ||
| 158 | |||
| 159 | |||
| 160 | |||
| 161 | =head2 B<REQUIRED> SourceCommitSpecifier => Str | ||
| 162 | |||
| 163 | The branch, tag, HEAD, or other fully qualified reference used to | ||
| 164 | identify a commit (for example, a branch name or a full commit ID). | ||
| 165 | |||
| 166 | |||
| 167 | |||
| 168 | =head2 TargetBranch => Str | ||
| 169 | |||
| 170 | The branch where the merge is applied. | ||
| 171 | |||
| 172 | |||
| 173 | |||
| 174 | |||
| 175 | =head1 SEE ALSO | ||
| 176 | |||
| 177 | This class forms part of L<Paws>, documenting arguments for method MergeBranchesByThreeWay in L<Paws::CodeCommit> | ||
| 178 | |||
| 179 | =head1 BUGS and CONTRIBUTIONS | ||
| 180 | |||
| 181 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 182 | |||
| 183 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 184 | |||
| 185 | =cut | ||
| 186 |