blib/lib/Paws/CodeBuild/ImportSourceCredentials.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::CodeBuild::ImportSourceCredentials;
3 use Moose;
4 has AuthType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'authType' , required => 1);
5 has ServerType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'serverType' , required => 1);
6 has ShouldOverwrite => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'shouldOverwrite' );
7 has Token => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'token' , required => 1);
8 has Username => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'username' );
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ImportSourceCredentials');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeBuild::ImportSourceCredentialsOutput');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::CodeBuild::ImportSourceCredentials - Arguments for method ImportSourceCredentials on L<Paws::CodeBuild>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method ImportSourceCredentials on the
26 L<AWS CodeBuild|Paws::CodeBuild> service. Use the attributes of this class
27 as arguments to method ImportSourceCredentials.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ImportSourceCredentials.
30  
31 =head1 SYNOPSIS
32  
33 my $codebuild = Paws->service('CodeBuild');
34 my $ImportSourceCredentialsOutput = $codebuild->ImportSourceCredentials(
35 AuthType => 'OAUTH',
36 ServerType => 'GITHUB',
37 Token => 'MySensitiveNonEmptyString',
38 ShouldOverwrite => 1, # OPTIONAL
39 Username => 'MyNonEmptyString', # OPTIONAL
40 );
41  
42 # Results:
43 my $Arn = $ImportSourceCredentialsOutput->Arn;
44  
45 # Returns a L<Paws::CodeBuild::ImportSourceCredentialsOutput> object.
46  
47 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.
48 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codebuild/ImportSourceCredentials>
49  
50 =head1 ATTRIBUTES
51  
52  
53 =head2 B<REQUIRED> AuthType => Str
54  
55 The type of authentication used to connect to a GitHub, GitHub
56 Enterprise, or Bitbucket repository. An OAUTH connection is not
57 supported by the API and must be created using the CodeBuild console.
58  
59 Valid values are: C<"OAUTH">, C<"BASIC_AUTH">, C<"PERSONAL_ACCESS_TOKEN">
60  
61 =head2 B<REQUIRED> ServerType => Str
62  
63 The source provider used for this project.
64  
65 Valid values are: C<"GITHUB">, C<"BITBUCKET">, C<"GITHUB_ENTERPRISE">
66  
67 =head2 ShouldOverwrite => Bool
68  
69 Set to C<false> to prevent overwriting the repository source
70 credentials. Set to C<true> to overwrite the repository source
71 credentials. The default value is C<true>.
72  
73  
74  
75 =head2 B<REQUIRED> Token => Str
76  
77 For GitHub or GitHub Enterprise, this is the personal access token. For
78 Bitbucket, this is the app password.
79  
80  
81  
82 =head2 Username => Str
83  
84 The Bitbucket username when the C<authType> is BASIC_AUTH. This
85 parameter is not valid for other types of source providers or
86 connections.
87  
88  
89  
90  
91 =head1 SEE ALSO
92  
93 This class forms part of L<Paws>, documenting arguments for method ImportSourceCredentials in L<Paws::CodeBuild>
94  
95 =head1 BUGS and CONTRIBUTIONS
96  
97 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
98  
99 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
100  
101 =cut
102