blib/lib/Paws/MediaLive/PurchaseOffering.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::MediaLive::PurchaseOffering;
3 use Moose;
4 has Count => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'count', required => 1);
5 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name');
6 has RequestId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'requestId');
7 has Start => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'start');
8 has Tags => (is => 'ro', isa => 'Paws::MediaLive::Tags', traits => ['NameInRequest'], request_name => 'tags');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PurchaseOffering');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/prod/offerings/{offeringId}/purchase');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MediaLive::PurchaseOfferingResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::MediaLive::PurchaseOffering - Arguments for method PurchaseOffering on L<Paws::MediaLive>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method PurchaseOffering on the
27 L<AWS Elemental MediaLive|Paws::MediaLive> service. Use the attributes of this class
28 as arguments to method PurchaseOffering.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PurchaseOffering.
31  
32 =head1 SYNOPSIS
33  
34 my $medialive = Paws->service('MediaLive');
35 my $PurchaseOfferingResponse = $medialive->PurchaseOffering(
36 Count => 1,
37 Name => 'My__string', # OPTIONAL
38 RequestId => 'My__string', # OPTIONAL
39 Start => 'My__string', # OPTIONAL
40 Tags => { 'My__string' => 'My__string', }, # OPTIONAL
41 );
42  
43 # Results:
44 my $Reservation = $PurchaseOfferingResponse->Reservation;
45  
46 # Returns a L<Paws::MediaLive::PurchaseOfferingResponse> 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/medialive/PurchaseOffering>
50  
51 =head1 ATTRIBUTES
52  
53  
54 =head2 B<REQUIRED> Count => Int
55  
56 Number of resources
57  
58  
59  
60 =head2 Name => Str
61  
62 Name for the new reservation
63  
64  
65  
66 =head2 RequestId => Str
67  
68 Unique request ID to be specified. This is needed to prevent retries
69 from creating multiple resources.
70  
71  
72  
73 =head2 Start => Str
74  
75 Requested reservation start time (UTC) in ISO-8601 format. The
76 specified time must be between the first day of the current month and
77 one year from now. If no value is given, the default is now.
78  
79  
80  
81 =head2 Tags => L<Paws::MediaLive::Tags>
82  
83 A collection of key-value pairs
84  
85  
86  
87  
88 =head1 SEE ALSO
89  
90 This class forms part of L<Paws>, documenting arguments for method PurchaseOffering in L<Paws::MediaLive>
91  
92 =head1 BUGS and CONTRIBUTIONS
93  
94 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
95  
96 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
97  
98 =cut
99