| 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 | # The request message for OperationService.poll_until_done() method. | ||
| 16 | |||
| 17 | package Google::Ads::GoogleAds::LongRunning::PollOperationRequest; | ||
| 18 | |||
| 19 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 1 | ▶ | use base qw(Google::Ads::GoogleAds::BaseEntity); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | 1 | ▶ | use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 26 | 0 | my ($class, $args) = @_; | |
| 27 | my $self = { | ||
| 28 | name => $args->{name}, | ||
| 29 | pollFrequencySeconds => $args->{pollFrequencySeconds}, | ||
| 30 | 0 | pollTimeoutSeconds => $args->{pollTimeoutSeconds}}; | |
| 31 | |||
| 32 | # Delete the unassigned fields in this object for a more concise JSON payload | ||
| 33 | 0 | remove_unassigned_fields($self, $args); | |
| 34 | |||
| 35 | 0 | bless $self, $class; | |
| 36 | 0 | return $self; | |
| 37 | } | ||
| 38 | |||
| 39 | 1 | 1; | |
| 40 | |||
| 41 | =pod | ||
| 42 | |||
| 43 | =head1 NAME | ||
| 44 | |||
| 45 | Google::Ads::GoogleAds::LongRunning::PollOperationRequest | ||
| 46 | |||
| 47 | =head1 DESCRIPTION | ||
| 48 | |||
| 49 | The request message for OperationService.poll_until_done() method. | ||
| 50 | |||
| 51 | =head1 ATTRIBUTES | ||
| 52 | |||
| 53 | =head2 name | ||
| 54 | |||
| 55 | The name of the operation resource. | ||
| 56 | |||
| 57 | =head2 pollFrequencySeconds | ||
| 58 | |||
| 59 | The poll requests frequency in seconds. | ||
| 60 | |||
| 61 | =head2 pollTimeoutSeconds | ||
| 62 | |||
| 63 | The maximum duration to wait before timing out in seconds. | ||
| 64 | |||
| 65 | =head1 LICENSE AND COPYRIGHT | ||
| 66 | |||
| 67 | Copyright 2019 Google LLC | ||
| 68 | |||
| 69 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 70 | you may not use this file except in compliance with the License. | ||
| 71 | You may obtain a copy of the License at | ||
| 72 | |||
| 73 | http://www.apache.org/licenses/LICENSE-2.0 | ||
| 74 | |||
| 75 | Unless required by applicable law or agreed to in writing, software | ||
| 76 | distributed under the License is distributed on an "AS IS" BASIS, | ||
| 77 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 78 | See the License for the specific language governing permissions and | ||
| 79 | limitations under the License. | ||
| 80 | |||
| 81 | =head1 REPOSITORY INFORMATION | ||
| 82 | |||
| 83 | $Rev: $ | ||
| 84 | $LastChangedBy: $ | ||
| 85 | $Id: $ | ||
| 86 | |||
| 87 | =cut | ||