| 1 | # Copyright 2019, Google LLC | ||
| 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 | # Represents a long-running operation that is the result of a network | ||
| 16 | # API call. | ||
| 17 | |||
| 18 | package Google::Ads::GoogleAds::LongRunning::Operation; | ||
| 19 | |||
| 20 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 1 | ▶ | use base qw(Google::Ads::GoogleAds::BaseEntity); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 1 | ▶ | use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | |||
| 26 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 27 | 0 | my ($class, $args) = @_; | |
| 28 | my $self = { | ||
| 29 | name => $args->{name}, | ||
| 30 | metadata => $args->{metadata}, | ||
| 31 | done => $args->{done}, | ||
| 32 | error => $args->{error}, | ||
| 33 | 0 | response => $args->{response}}; | |
| 34 | |||
| 35 | # Delete the unassigned fields in this object for a more concise JSON payload | ||
| 36 | 0 | remove_unassigned_fields($self, $args); | |
| 37 | |||
| 38 | 0 | bless $self, $class; | |
| 39 | 0 | return $self; | |
| 40 | } | ||
| 41 | |||
| 42 | 1 | 1; | |
| 43 | |||
| 44 | =pod | ||
| 45 | |||
| 46 | =head1 NAME | ||
| 47 | |||
| 48 | Google::Ads::GoogleAds::LongRunning::Operation | ||
| 49 | |||
| 50 | =head1 DESCRIPTION | ||
| 51 | |||
| 52 | Represents a long-running operation that is the result of a network API call. | ||
| 53 | |||
| 54 | =head1 ATTRIBUTES | ||
| 55 | |||
| 56 | =head2 name | ||
| 57 | |||
| 58 | The server-assigned name, which is only unique within the same service that | ||
| 59 | originally returns it. | ||
| 60 | |||
| 61 | =head2 metadata | ||
| 62 | |||
| 63 | Service-specific metadata associated with the operation. It typically contains | ||
| 64 | progress information and common metadata such as create time. | ||
| 65 | |||
| 66 | =head2 done | ||
| 67 | |||
| 68 | If the value is "false", it means the operation is still in progress. If "true", | ||
| 69 | the operation is completed. | ||
| 70 | |||
| 71 | =head2 error | ||
| 72 | |||
| 73 | The error result of the operation in case of failure or cancellation. | ||
| 74 | |||
| 75 | =head2 response | ||
| 76 | |||
| 77 | The normal response of the operation in case of success. | ||
| 78 | |||
| 79 | =head1 LICENSE AND COPYRIGHT | ||
| 80 | |||
| 81 | Copyright 2019 Google LLC | ||
| 82 | |||
| 83 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 84 | you may not use this file except in compliance with the License. | ||
| 85 | You may obtain a copy of the License at | ||
| 86 | |||
| 87 | http://www.apache.org/licenses/LICENSE-2.0 | ||
| 88 | |||
| 89 | Unless required by applicable law or agreed to in writing, software | ||
| 90 | distributed under the License is distributed on an "AS IS" BASIS, | ||
| 91 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 92 | See the License for the specific language governing permissions and | ||
| 93 | limitations under the License. | ||
| 94 | |||
| 95 | =head1 REPOSITORY INFORMATION | ||
| 96 | |||
| 97 | $Rev: $ | ||
| 98 | $LastChangedBy: $ | ||
| 99 | $Id: $ | ||
| 100 | |||
| 101 | =cut | ||