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

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CodeCommit::PostCommentForComparedCommit;
3 use Moose;
4 has AfterCommitId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'afterCommitId' , required => 1);
5 has BeforeCommitId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'beforeCommitId' );
6 has ClientRequestToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientRequestToken' );
7 has Content => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'content' , required => 1);
8 has Location => (is => 'ro', isa => 'Paws::CodeCommit::Location', traits => ['NameInRequest'], request_name => 'location' );
9 has RepositoryName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'repositoryName' , required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PostCommentForComparedCommit');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeCommit::PostCommentForComparedCommitOutput');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::CodeCommit::PostCommentForComparedCommit - Arguments for method PostCommentForComparedCommit on L<Paws::CodeCommit>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method PostCommentForComparedCommit on the
27 L<AWS CodeCommit|Paws::CodeCommit> service. Use the attributes of this class
28 as arguments to method PostCommentForComparedCommit.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PostCommentForComparedCommit.
31  
32 =head1 SYNOPSIS
33  
34 my $codecommit = Paws->service('CodeCommit');
35 my $PostCommentForComparedCommitOutput =
36 $codecommit->PostCommentForComparedCommit(
37 AfterCommitId => 'MyCommitId',
38 Content => 'MyContent',
39 RepositoryName => 'MyRepositoryName',
40 BeforeCommitId => 'MyCommitId', # OPTIONAL
41 ClientRequestToken => 'MyClientRequestToken', # OPTIONAL
42 Location => {
43 FilePath => 'MyPath', # OPTIONAL
44 FilePosition => 1, # OPTIONAL
45 RelativeFileVersion => 'BEFORE', # values: BEFORE, AFTER; OPTIONAL
46 }, # OPTIONAL
47 );
48  
49 # Results:
50 my $AfterBlobId = $PostCommentForComparedCommitOutput->AfterBlobId;
51 my $AfterCommitId = $PostCommentForComparedCommitOutput->AfterCommitId;
52 my $BeforeBlobId = $PostCommentForComparedCommitOutput->BeforeBlobId;
53 my $BeforeCommitId = $PostCommentForComparedCommitOutput->BeforeCommitId;
54 my $Comment = $PostCommentForComparedCommitOutput->Comment;
55 my $Location = $PostCommentForComparedCommitOutput->Location;
56 my $RepositoryName = $PostCommentForComparedCommitOutput->RepositoryName;
57  
58 # Returns a L<Paws::CodeCommit::PostCommentForComparedCommitOutput> object.
59  
60 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.
61 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codecommit/PostCommentForComparedCommit>
62  
63 =head1 ATTRIBUTES
64  
65  
66 =head2 B<REQUIRED> AfterCommitId => Str
67  
68 To establish the directionality of the comparison, the full commit ID
69 of the after commit.
70  
71  
72  
73 =head2 BeforeCommitId => Str
74  
75 To establish the directionality of the comparison, the full commit ID
76 of the before commit. Required for commenting on any commit unless that
77 commit is the initial commit.
78  
79  
80  
81 =head2 ClientRequestToken => Str
82  
83 A unique, client-generated idempotency token that, when provided in a
84 request, ensures the request cannot be repeated with a changed
85 parameter. If a request is received with the same parameters and a
86 token is included, the request returns information about the initial
87 request that used that token.
88  
89  
90  
91 =head2 B<REQUIRED> Content => Str
92  
93 The content of the comment you want to make.
94  
95  
96  
97 =head2 Location => L<Paws::CodeCommit::Location>
98  
99 The location of the comparison where you want to comment.
100  
101  
102  
103 =head2 B<REQUIRED> RepositoryName => Str
104  
105 The name of the repository where you want to post a comment on the
106 comparison between commits.
107  
108  
109  
110  
111 =head1 SEE ALSO
112  
113 This class forms part of L<Paws>, documenting arguments for method PostCommentForComparedCommit in L<Paws::CodeCommit>
114  
115 =head1 BUGS and CONTRIBUTIONS
116  
117 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
118  
119 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
120  
121 =cut
122