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

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CodeCommit::ListPullRequests;
3 use Moose;
4 has AuthorArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'authorArn' );
5 has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults' );
6 has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken' );
7 has PullRequestStatus => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'pullRequestStatus' );
8 has RepositoryName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'repositoryName' , required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListPullRequests');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeCommit::ListPullRequestsOutput');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::CodeCommit::ListPullRequests - Arguments for method ListPullRequests on L<Paws::CodeCommit>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method ListPullRequests on the
26 L<AWS CodeCommit|Paws::CodeCommit> service. Use the attributes of this class
27 as arguments to method ListPullRequests.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListPullRequests.
30  
31 =head1 SYNOPSIS
32  
33 my $codecommit = Paws->service('CodeCommit');
34 my $ListPullRequestsOutput = $codecommit->ListPullRequests(
35 RepositoryName => 'MyRepositoryName',
36 AuthorArn => 'MyArn', # OPTIONAL
37 MaxResults => 1, # OPTIONAL
38 NextToken => 'MyNextToken', # OPTIONAL
39 PullRequestStatus => 'OPEN', # OPTIONAL
40 );
41  
42 # Results:
43 my $NextToken = $ListPullRequestsOutput->NextToken;
44 my $PullRequestIds = $ListPullRequestsOutput->PullRequestIds;
45  
46 # Returns a L<Paws::CodeCommit::ListPullRequestsOutput> object.
47  
48 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.
49 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codecommit/ListPullRequests>
50  
51 =head1 ATTRIBUTES
52  
53  
54 =head2 AuthorArn => Str
55  
56 Optional. The Amazon Resource Name (ARN) of the user who created the
57 pull request. If used, this filters the results to pull requests
58 created by that user.
59  
60  
61  
62 =head2 MaxResults => Int
63  
64 A non-zero, non-negative integer used to limit the number of returned
65 results.
66  
67  
68  
69 =head2 NextToken => Str
70  
71 An enumeration token that, when provided in a request, returns the next
72 batch of the results.
73  
74  
75  
76 =head2 PullRequestStatus => Str
77  
78 Optional. The status of the pull request. If used, this refines the
79 results to the pull requests that match the specified status.
80  
81 Valid values are: C<"OPEN">, C<"CLOSED">
82  
83 =head2 B<REQUIRED> RepositoryName => Str
84  
85 The name of the repository for which you want to list pull requests.
86  
87  
88  
89  
90 =head1 SEE ALSO
91  
92 This class forms part of L<Paws>, documenting arguments for method ListPullRequests in L<Paws::CodeCommit>
93  
94 =head1 BUGS and CONTRIBUTIONS
95  
96 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
97  
98 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
99  
100 =cut
101