blib/lib/Paws/CodeCommit/MergePullRequestByThreeWay.pm untested

filter: Statementstmt 0.0% 0 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 31 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CodeCommit::MergePullRequestByThreeWay;
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 Email => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'email' );
10 has KeepEmptyFolders => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'keepEmptyFolders' );
11 has PullRequestId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'pullRequestId' , required => 1);
12 has RepositoryName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'repositoryName' , required => 1);
13 has SourceCommitId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sourceCommitId' );
14  
15 use MooseX::ClassAttribute;
16  
17 class_has _api_call => (isa => 'Str', is => 'ro', default => 'MergePullRequestByThreeWay');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeCommit::MergePullRequestByThreeWayOutput');
19 class_has _result_key => (isa => 'Str', is => 'ro');
20 1;
21  
22 ### main pod documentation begin ###
23  
24 =head1 NAME
25  
26 Paws::CodeCommit::MergePullRequestByThreeWay - Arguments for method MergePullRequestByThreeWay on L<Paws::CodeCommit>
27  
28 =head1 DESCRIPTION
29  
30 This class represents the parameters used for calling the method MergePullRequestByThreeWay on the
31 L<AWS CodeCommit|Paws::CodeCommit> service. Use the attributes of this class
32 as arguments to method MergePullRequestByThreeWay.
33  
34 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to MergePullRequestByThreeWay.
35  
36 =head1 SYNOPSIS
37  
38 my $codecommit = Paws->service('CodeCommit');
39 my $MergePullRequestByThreeWayOutput =
40 $codecommit->MergePullRequestByThreeWay(
41 PullRequestId => 'MyPullRequestId',
42 RepositoryName => 'MyRepositoryName',
43 AuthorName => 'MyName', # OPTIONAL
44 CommitMessage => 'MyMessage', # OPTIONAL
45 ConflictDetailLevel => 'FILE_LEVEL', # OPTIONAL
46 ConflictResolution => {
47 DeleteFiles => [
48 {
49 FilePath => 'MyPath',
50  
51 },
52 ...
53 ], # OPTIONAL
54 ReplaceContents => [
55 {
56 FilePath => 'MyPath',
57 ReplacementType => 'KEEP_BASE'
58 , # values: KEEP_BASE, KEEP_SOURCE, KEEP_DESTINATION, USE_NEW_CONTENT
59 Content => 'BlobFileContent', # max: 6291456; OPTIONAL
60 FileMode =>
61 'EXECUTABLE', # values: EXECUTABLE, NORMAL, SYMLINK; OPTIONAL
62 },
63 ...
64 ], # OPTIONAL
65 SetFileModes => [
66 {
67 FileMode =>
68 'EXECUTABLE', # values: EXECUTABLE, NORMAL, SYMLINK; OPTIONAL
69 FilePath => 'MyPath',
70  
71 },
72 ...
73 ], # OPTIONAL
74 }, # OPTIONAL
75 ConflictResolutionStrategy => 'NONE', # OPTIONAL
76 Email => 'MyEmail', # OPTIONAL
77 KeepEmptyFolders => 1, # OPTIONAL
78 SourceCommitId => 'MyObjectId', # OPTIONAL
79 );
80  
81 # Results:
82 my $PullRequest = $MergePullRequestByThreeWayOutput->PullRequest;
83  
84 # Returns a L<Paws::CodeCommit::MergePullRequestByThreeWayOutput> object.
85  
86 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.
87 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codecommit/MergePullRequestByThreeWay>
88  
89 =head1 ATTRIBUTES
90  
91  
92 =head2 AuthorName => Str
93  
94 The name of the author who created the commit. This information is used
95 as both the author and committer for the commit.
96  
97  
98  
99 =head2 CommitMessage => Str
100  
101 The commit message to include in the commit information for the merge.
102  
103  
104  
105 =head2 ConflictDetailLevel => Str
106  
107 The level of conflict detail to use. If unspecified, the default
108 FILE_LEVEL is used, which returns a not-mergeable result if the same
109 file has differences in both branches. If LINE_LEVEL is specified, a
110 conflict is considered not mergeable if the same file in both branches
111 has differences on the same line.
112  
113 Valid values are: C<"FILE_LEVEL">, C<"LINE_LEVEL">
114  
115 =head2 ConflictResolution => L<Paws::CodeCommit::ConflictResolution>
116  
117 If AUTOMERGE is the conflict resolution strategy, a list of inputs to
118 use when resolving conflicts during a merge.
119  
120  
121  
122 =head2 ConflictResolutionStrategy => Str
123  
124 Specifies which branch to use when resolving conflicts, or whether to
125 attempt automatically merging two versions of a file. The default is
126 NONE, which requires any conflicts to be resolved manually before the
127 merge operation is successful.
128  
129 Valid values are: C<"NONE">, C<"ACCEPT_SOURCE">, C<"ACCEPT_DESTINATION">, C<"AUTOMERGE">
130  
131 =head2 Email => Str
132  
133 The email address of the person merging the branches. This information
134 is used in the commit information for the merge.
135  
136  
137  
138 =head2 KeepEmptyFolders => Bool
139  
140 If the commit contains deletions, whether to keep a folder or folder
141 structure if the changes leave the folders empty. If true, a .gitkeep
142 file is created for empty folders. The default is false.
143  
144  
145  
146 =head2 B<REQUIRED> PullRequestId => Str
147  
148 The system-generated ID of the pull request. To get this ID, use
149 ListPullRequests.
150  
151  
152  
153 =head2 B<REQUIRED> RepositoryName => Str
154  
155 The name of the repository where the pull request was created.
156  
157  
158  
159 =head2 SourceCommitId => Str
160  
161 The full commit ID of the original or updated commit in the pull
162 request source branch. Pass this value if you want an exception thrown
163 if the current commit ID of the tip of the source branch does not match
164 this commit ID.
165  
166  
167  
168  
169 =head1 SEE ALSO
170  
171 This class forms part of L<Paws>, documenting arguments for method MergePullRequestByThreeWay in L<Paws::CodeCommit>
172  
173 =head1 BUGS and CONTRIBUTIONS
174  
175 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
176  
177 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
178  
179 =cut
180