blib/lib/Paws/CodeCommit/CreateCommit.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::CreateCommit;
3 use Moose;
4 has AuthorName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'authorName' );
5 has BranchName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'branchName' , required => 1);
6 has CommitMessage => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'commitMessage' );
7 has DeleteFiles => (is => 'ro', isa => 'ArrayRef[Paws::CodeCommit::DeleteFileEntry]', traits => ['NameInRequest'], request_name => 'deleteFiles' );
8 has Email => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'email' );
9 has KeepEmptyFolders => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'keepEmptyFolders' );
10 has ParentCommitId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'parentCommitId' );
11 has PutFiles => (is => 'ro', isa => 'ArrayRef[Paws::CodeCommit::PutFileEntry]', traits => ['NameInRequest'], request_name => 'putFiles' );
12 has RepositoryName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'repositoryName' , required => 1);
13 has SetFileModes => (is => 'ro', isa => 'ArrayRef[Paws::CodeCommit::SetFileModeEntry]', traits => ['NameInRequest'], request_name => 'setFileModes' );
14  
15 use MooseX::ClassAttribute;
16  
17 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateCommit');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeCommit::CreateCommitOutput');
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::CreateCommit - Arguments for method CreateCommit on L<Paws::CodeCommit>
27  
28 =head1 DESCRIPTION
29  
30 This class represents the parameters used for calling the method CreateCommit on the
31 L<AWS CodeCommit|Paws::CodeCommit> service. Use the attributes of this class
32 as arguments to method CreateCommit.
33  
34 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateCommit.
35  
36 =head1 SYNOPSIS
37  
38 my $codecommit = Paws->service('CodeCommit');
39 my $CreateCommitOutput = $codecommit->CreateCommit(
40 BranchName => 'MyBranchName',
41 RepositoryName => 'MyRepositoryName',
42 AuthorName => 'MyName', # OPTIONAL
43 CommitMessage => 'MyMessage', # OPTIONAL
44 DeleteFiles => [
45 {
46 FilePath => 'MyPath',
47  
48 },
49 ...
50 ], # OPTIONAL
51 Email => 'MyEmail', # OPTIONAL
52 KeepEmptyFolders => 1, # OPTIONAL
53 ParentCommitId => 'MyCommitId', # OPTIONAL
54 PutFiles => [
55 {
56 FilePath => 'MyPath',
57 FileContent => 'BlobFileContent', # max: 6291456; OPTIONAL
58 FileMode =>
59 'EXECUTABLE', # values: EXECUTABLE, NORMAL, SYMLINK; OPTIONAL
60 SourceFile => {
61 FilePath => 'MyPath',
62 IsMove => 1, # OPTIONAL
63 }, # OPTIONAL
64 },
65 ...
66 ], # OPTIONAL
67 SetFileModes => [
68 {
69 FileMode =>
70 'EXECUTABLE', # values: EXECUTABLE, NORMAL, SYMLINK; OPTIONAL
71 FilePath => 'MyPath',
72  
73 },
74 ...
75 ], # OPTIONAL
76 );
77  
78 # Results:
79 my $CommitId = $CreateCommitOutput->CommitId;
80 my $FilesAdded = $CreateCommitOutput->FilesAdded;
81 my $FilesDeleted = $CreateCommitOutput->FilesDeleted;
82 my $FilesUpdated = $CreateCommitOutput->FilesUpdated;
83 my $TreeId = $CreateCommitOutput->TreeId;
84  
85 # Returns a L<Paws::CodeCommit::CreateCommitOutput> object.
86  
87 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.
88 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codecommit/CreateCommit>
89  
90 =head1 ATTRIBUTES
91  
92  
93 =head2 AuthorName => Str
94  
95 The name of the author who created the commit. This information is used
96 as both the author and committer for the commit.
97  
98  
99  
100 =head2 B<REQUIRED> BranchName => Str
101  
102 The name of the branch where you create the commit.
103  
104  
105  
106 =head2 CommitMessage => Str
107  
108 The commit message you want to include in the commit. Commit messages
109 are limited to 256 KB. If no message is specified, a default message is
110 used.
111  
112  
113  
114 =head2 DeleteFiles => ArrayRef[L<Paws::CodeCommit::DeleteFileEntry>]
115  
116 The files to delete in this commit. These files still exist in earlier
117 commits.
118  
119  
120  
121 =head2 Email => Str
122  
123 The email address of the person who created the commit.
124  
125  
126  
127 =head2 KeepEmptyFolders => Bool
128  
129 If the commit contains deletions, whether to keep a folder or folder
130 structure if the changes leave the folders empty. If true, a ..gitkeep
131 file is created for empty folders. The default is false.
132  
133  
134  
135 =head2 ParentCommitId => Str
136  
137 The ID of the commit that is the parent of the commit you create. Not
138 required if this is an empty repository.
139  
140  
141  
142 =head2 PutFiles => ArrayRef[L<Paws::CodeCommit::PutFileEntry>]
143  
144 The files to add or update in this commit.
145  
146  
147  
148 =head2 B<REQUIRED> RepositoryName => Str
149  
150 The name of the repository where you create the commit.
151  
152  
153  
154 =head2 SetFileModes => ArrayRef[L<Paws::CodeCommit::SetFileModeEntry>]
155  
156 The file modes to update for files in this commit.
157  
158  
159  
160  
161 =head1 SEE ALSO
162  
163 This class forms part of L<Paws>, documenting arguments for method CreateCommit in L<Paws::CodeCommit>
164  
165 =head1 BUGS and CONTRIBUTIONS
166  
167 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
168  
169 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
170  
171 =cut
172