| 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 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 2 | ▶ | use version; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | # The following needs to be on one line because CPAN uses a particularly hacky | ||
| 22 | # eval() to determine module versions. | ||
| 23 | 2 | ▶ | use Google::Ads::Common::Constants; our $VERSION = ${Google::Ads::Common::Constants::VERSION}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | 2 | ▶ | use Class::Std::Fast; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | |||
| 27 | # Total length (in bytes) of the content already uploaded for the job. | ||
| 28 | 2 | my %total_content_length_of : ATTR(:name<total_content_length> :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 | 2 | my %resumable_upload_uri_of : ATTR(:name<resumable_upload_uri> :default<"">); | |
| 33 | |||
| 34 | 2 | 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 | |||