* $mybusinessverificationsService = new Google\Service\MyBusinessVerifications(...); * $verifications = $mybusinessverificationsService->verifications; * */ class LocationsVerifications extends \Google\Service\Resource { /** * Completes a `PENDING` verification. It is only necessary for non `AUTO` * verification methods. `AUTO` verification request is instantly `VERIFIED` * upon creation. (verifications.complete) * * @param string $name Required. Resource name of the verification to complete. * @param CompleteVerificationRequest $postBody * @param array $optParams Optional parameters. * @return CompleteVerificationResponse */ public function complete($name, CompleteVerificationRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('complete', [$params], CompleteVerificationResponse::class); } /** * List verifications of a location, ordered by create time. * (verifications.listLocationsVerifications) * * @param string $parent Required. Resource name of the location that * verification requests belong to. * @param array $optParams Optional parameters. * * @opt_param int pageSize How many verification to include per page. Minimum is * 1, and the default and maximum page size is 100. * @opt_param string pageToken If specified, returns the next page of * verifications. * @return ListVerificationsResponse */ public function listLocationsVerifications($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListVerificationsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(LocationsVerifications::class, 'Google_Service_MyBusinessVerifications_Resource_LocationsVerifications');