1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service\MyBusinessVerifications\Resource; 19 20use Google\Service\MyBusinessVerifications\CompleteVerificationRequest; 21use Google\Service\MyBusinessVerifications\CompleteVerificationResponse; 22use Google\Service\MyBusinessVerifications\ListVerificationsResponse; 23 24/** 25 * The "verifications" collection of methods. 26 * Typical usage is: 27 * <code> 28 * $mybusinessverificationsService = new Google\Service\MyBusinessVerifications(...); 29 * $verifications = $mybusinessverificationsService->verifications; 30 * </code> 31 */ 32class LocationsVerifications extends \Google\Service\Resource 33{ 34 /** 35 * Completes a `PENDING` verification. It is only necessary for non `AUTO` 36 * verification methods. `AUTO` verification request is instantly `VERIFIED` 37 * upon creation. (verifications.complete) 38 * 39 * @param string $name Required. Resource name of the verification to complete. 40 * @param CompleteVerificationRequest $postBody 41 * @param array $optParams Optional parameters. 42 * @return CompleteVerificationResponse 43 */ 44 public function complete($name, CompleteVerificationRequest $postBody, $optParams = []) 45 { 46 $params = ['name' => $name, 'postBody' => $postBody]; 47 $params = array_merge($params, $optParams); 48 return $this->call('complete', [$params], CompleteVerificationResponse::class); 49 } 50 /** 51 * List verifications of a location, ordered by create time. 52 * (verifications.listLocationsVerifications) 53 * 54 * @param string $parent Required. Resource name of the location that 55 * verification requests belong to. 56 * @param array $optParams Optional parameters. 57 * 58 * @opt_param int pageSize How many verification to include per page. Minimum is 59 * 1, and the default and maximum page size is 100. 60 * @opt_param string pageToken If specified, returns the next page of 61 * verifications. 62 * @return ListVerificationsResponse 63 */ 64 public function listLocationsVerifications($parent, $optParams = []) 65 { 66 $params = ['parent' => $parent]; 67 $params = array_merge($params, $optParams); 68 return $this->call('list', [$params], ListVerificationsResponse::class); 69 } 70} 71 72// Adding a class alias for backwards compatibility with the previous class name. 73class_alias(LocationsVerifications::class, 'Google_Service_MyBusinessVerifications_Resource_LocationsVerifications'); 74