File Coverage

lib/Google/Ads/AdWords/Utilities/BatchJobHandlerStatus.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             # Copyright 2016, Google Inc. All Rights Reserved.
2             #
3             # Licensed under the Apache License, Version 2.0 (the "License");
4             # you may not use this file except in compliance with the License.
5             # You may obtain a copy of the License at
6             #
7             # http://www.apache.org/licenses/LICENSE-2.0
8             #
9             # Unless required by applicable law or agreed to in writing, software
10             # distributed under the License is distributed on an "AS IS" BASIS,
11             # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12             # See the License for the specific language governing permissions and
13             # limitations under the License.
14              
15             package Google::Ads::AdWords::Utilities::BatchJobHandlerStatus;
16              
17 2     2   893 use strict;
  2         8  
  2         74  
18 2     2   11 use warnings;
  2         6  
  2         51  
19 2     2   10 use version;
  2         5  
  2         16  
20              
21             # The following needs to be on one line because CPAN uses a particularly hacky
22             # eval() to determine module versions.
23 2     2   136 use Google::Ads::Common::Constants; our $VERSION = ${Google::Ads::Common::Constants::VERSION};
  2         8  
  2         92  
24              
25 2     2   10 use Class::Std::Fast;
  2         13  
  2         15  
26              
27             # Total length (in bytes) of the content already uploaded for the job.
28             my %total_content_length_of : ATTR(:name :default<"0">);
29              
30             # The resumable upload URI of the job. If this is the first upload in a series
31             # of uploads, pass the BatchJob.uploadUrl.
32             my %resumable_upload_uri_of : ATTR(:name :default<"">);
33              
34             return 1;
35              
36             =pod
37              
38             =head1 NAME
39              
40             Google::Ads::AdWords::Utilities::BatchJobHandlerStatus
41              
42             =head1 DESCRIPTION
43              
44             Data object that holds the information of a batch job's status that occurs
45             during a batch job upload request.
46              
47             =head1 ATTRIBUTES
48              
49             There is a get_ and set_ method associated with each attribute for retrieving or
50             setting them dynamically.
51              
52             =head2 total_content_length
53              
54             Total length (in bytes) of the content already uploaded for the job.
55              
56             =head2 resumable_upload_uri
57              
58             The resumable upload URI of the job. If this is the first upload in a series
59             of uploads, pass the BatchJob.uploadUrl.
60              
61             =head1 LICENSE AND COPYRIGHT
62              
63             Copyright 2016 Google Inc.
64              
65             Licensed under the Apache License, Version 2.0 (the "License");
66             you may not use this file except in compliance with the License.
67             You may obtain a copy of the License at
68              
69             http://www.apache.org/licenses/LICENSE-2.0
70              
71             Unless required by applicable law or agreed to in writing, software
72             distributed under the License is distributed on an "AS IS" BASIS,
73             WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
74             See the License for the specific language governing permissions and
75             limitations under the License.
76              
77             =head1 REPOSITORY INFORMATION
78              
79             $Rev: $
80             $LastChangedBy: $
81             $Id: $
82              
83             =cut
84