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