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