blib/lib/Paws/Honeycode/BatchCreateTableRows.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Honeycode::BatchCreateTableRows;
3 use Moose;
4 has ClientRequestToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientRequestToken');
5 has RowsToCreate => (is => 'ro', isa => 'ArrayRef[Paws::Honeycode::CreateRowData]', traits => ['NameInRequest'], request_name => 'rowsToCreate', required => 1);
6 has TableId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'tableId', required => 1);
7 has WorkbookId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'workbookId', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'BatchCreateTableRows');
12 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/workbooks/{workbookId}/tables/{tableId}/rows/batchcreate');
13 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Honeycode::BatchCreateTableRowsResult');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::Honeycode::BatchCreateTableRows - Arguments for method BatchCreateTableRows on L<Paws::Honeycode>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method BatchCreateTableRows on the
26 L<Amazon Honeycode|Paws::Honeycode> service. Use the attributes of this class
27 as arguments to method BatchCreateTableRows.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to BatchCreateTableRows.
30  
31 =head1 SYNOPSIS
32  
33 my $honeycode = Paws->service('Honeycode');
34 my $BatchCreateTableRowsResult = $honeycode->BatchCreateTableRows(
35 RowsToCreate => [
36 {
37 BatchItemId => 'MyBatchItemId', # min: 1, max: 64
38 CellsToCreate => {
39 'MyResourceId' => {
40 Fact => 'MyFact', # max: 8192; OPTIONAL
41 }, # key: min: 36, max: 36
42 }, # min: 1, max: 100
43  
44 },
45 ...
46 ],
47 TableId => 'MyResourceId',
48 WorkbookId => 'MyResourceId',
49 ClientRequestToken => 'MyClientRequestToken', # OPTIONAL
50 );
51  
52 # Results:
53 my $CreatedRows = $BatchCreateTableRowsResult->CreatedRows;
54 my $FailedBatchItems = $BatchCreateTableRowsResult->FailedBatchItems;
55 my $WorkbookCursor = $BatchCreateTableRowsResult->WorkbookCursor;
56  
57 # Returns a L<Paws::Honeycode::BatchCreateTableRowsResult> object.
58  
59 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.
60 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/honeycode/BatchCreateTableRows>
61  
62 =head1 ATTRIBUTES
63  
64  
65 =head2 ClientRequestToken => Str
66  
67 The request token for performing the batch create operation. Request
68 tokens help to identify duplicate requests. If a call times out or
69 fails due to a transient error like a failed network connection, you
70 can retry the call with the same request token. The service ensures
71 that if the first call using that request token is successfully
72 performed, the second call will not perform the operation again.
73  
74 Note that request tokens are valid only for a few minutes. You cannot
75 use request tokens to dedupe requests spanning hours or days.
76  
77  
78  
79 =head2 B<REQUIRED> RowsToCreate => ArrayRef[L<Paws::Honeycode::CreateRowData>]
80  
81 The list of rows to create at the end of the table. Each item in this
82 list needs to have a batch item id to uniquely identify the element in
83 the request and the cells to create for that row. You need to specify
84 at least one item in this list.
85  
86 Note that if one of the column ids in any of the rows in the request
87 does not exist in the table, then the request fails and no updates are
88 made to the table.
89  
90  
91  
92 =head2 B<REQUIRED> TableId => Str
93  
94 The ID of the table where the new rows are being added.
95  
96 If a table with the specified ID could not be found, this API throws
97 ResourceNotFoundException.
98  
99  
100  
101 =head2 B<REQUIRED> WorkbookId => Str
102  
103 The ID of the workbook where the new rows are being added.
104  
105 If a workbook with the specified ID could not be found, this API throws
106 ResourceNotFoundException.
107  
108  
109  
110  
111 =head1 SEE ALSO
112  
113 This class forms part of L<Paws>, documenting arguments for method BatchCreateTableRows in L<Paws::Honeycode>
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