blib/lib/Paws/SageMaker/CreateCodeRepository.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SageMaker::CreateCodeRepository;
3 use Moose;
4 has CodeRepositoryName => (is => 'ro', isa => 'Str', required => 1);
5 has GitConfig => (is => 'ro', isa => 'Paws::SageMaker::GitConfig', required => 1);
6 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::SageMaker::Tag]');
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateCodeRepository');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SageMaker::CreateCodeRepositoryOutput');
12 class_has _result_key => (isa => 'Str', is => 'ro');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::SageMaker::CreateCodeRepository - Arguments for method CreateCodeRepository on L<Paws::SageMaker>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method CreateCodeRepository on the
24 L<Amazon SageMaker Service|Paws::SageMaker> service. Use the attributes of this class
25 as arguments to method CreateCodeRepository.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateCodeRepository.
28  
29 =head1 SYNOPSIS
30  
31 my $api.sagemaker = Paws->service('SageMaker');
32 my $CreateCodeRepositoryOutput = $api . sagemaker->CreateCodeRepository(
33 CodeRepositoryName => 'MyEntityName',
34 GitConfig => {
35 RepositoryUrl => 'MyGitConfigUrl',
36 Branch => 'MyBranch', # min: 1, max: 1024; OPTIONAL
37 SecretArn => 'MySecretArn', # min: 1, max: 2048; OPTIONAL
38 },
39 Tags => [
40 {
41 Key => 'MyTagKey', # min: 1, max: 128
42 Value => 'MyTagValue', # max: 256
43  
44 },
45 ...
46 ], # OPTIONAL
47 );
48  
49 # Results:
50 my $CodeRepositoryArn = $CreateCodeRepositoryOutput->CodeRepositoryArn;
51  
52 # Returns a L<Paws::SageMaker::CreateCodeRepositoryOutput> object.
53  
54 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.
55 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.sagemaker/CreateCodeRepository>
56  
57 =head1 ATTRIBUTES
58  
59  
60 =head2 B<REQUIRED> CodeRepositoryName => Str
61  
62 The name of the Git repository. The name must have 1 to 63 characters.
63 Valid characters are a-z, A-Z, 0-9, and - (hyphen).
64  
65  
66  
67 =head2 B<REQUIRED> GitConfig => L<Paws::SageMaker::GitConfig>
68  
69 Specifies details about the repository, including the URL where the
70 repository is located, the default branch, and credentials to use to
71 access the repository.
72  
73  
74  
75 =head2 Tags => ArrayRef[L<Paws::SageMaker::Tag>]
76  
77 An array of key-value pairs. You can use tags to categorize your Amazon
78 Web Services resources in different ways, for example, by purpose,
79 owner, or environment. For more information, see Tagging Amazon Web
80 Services Resources
81 (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html).
82  
83  
84  
85  
86 =head1 SEE ALSO
87  
88 This class forms part of L<Paws>, documenting arguments for method CreateCodeRepository in L<Paws::SageMaker>
89  
90 =head1 BUGS and CONTRIBUTIONS
91  
92 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
93  
94 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
95  
96 =cut
97